From 7a47313a21c23b7e3e3ce69c6e799beb6bbf3548 Mon Sep 17 00:00:00 2001
From: Martin Arver <martin.arver@gmail.com>
Date: Mon, 31 Jul 2006 12:21:57 +0000
Subject: 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
---
 manual/preamble.tex | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'manual/preamble.tex')

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 @@
    \renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}%
    \ifthenelse{\optnvalue > 0}{}{#2}
  }
+
+
+
+% Use the rockref to handle get a flexible reference command
+% usage \rockref{ref_section}
+\ifpdfoutput{
+  \newcommand{\rockref}[1]{%
+    section \ref{#1} (page \pageref{#1})
+}}
+{\newcommand{\rockref}[1]{section \ref{#1}}}
-- 
cgit v1.2.3

