summaryrefslogtreecommitdiff
path: root/manual/preamble.tex
diff options
context:
space:
mode:
authorMartin Arver <martin.arver@gmail.com>2006-07-31 12:21:57 +0000
committerMartin Arver <martin.arver@gmail.com>2006-07-31 12:21:57 +0000
commit7a47313a21c23b7e3e3ce69c6e799beb6bbf3548 (patch)
treeb7750e1518f77a6884e1c1883f8c654971c8e609 /manual/preamble.tex
parent69a09fb9059c3df12d5803f569317257318e697f (diff)
downloadrockbox-7a47313a21c23b7e3e3ce69c6e799beb6bbf3548.tar.gz
rockbox-7a47313a21c23b7e3e3ce69c6e799beb6bbf3548.zip
Introduce new reference command; \rockref. Use this to get references right in both the pdf and the html manuals
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10375 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r--manual/preamble.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 056cd5c84b..d79655a540 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -259,3 +259,13 @@
259 \renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}% 259 \renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}%
260 \ifthenelse{\optnvalue > 0}{}{#2} 260 \ifthenelse{\optnvalue > 0}{}{#2}
261 } 261 }
262
263
264
265% Use the rockref to handle get a flexible reference command
266% usage \rockref{ref_section}
267\ifpdfoutput{
268 \newcommand{\rockref}[1]{%
269 section \ref{#1} (page \pageref{#1})
270}}
271{\newcommand{\rockref}[1]{section \ref{#1}}}