summaryrefslogtreecommitdiff
path: root/manual/preamble.tex
diff options
context:
space:
mode:
authorMartin Arver <martin.arver@gmail.com>2006-06-07 20:01:27 +0000
committerMartin Arver <martin.arver@gmail.com>2006-06-07 20:01:27 +0000
commit1dbb2d27293679876a8446a646980804d7a727ee (patch)
treece4f5b8d0f4325ff0d12c2e8de0374f3c1bb0966 /manual/preamble.tex
parent1c03ab4f0b7745d9e490ee82f09ad02fff7e6a32 (diff)
downloadrockbox-1dbb2d27293679876a8446a646980804d7a727ee.tar.gz
rockbox-1dbb2d27293679876a8446a646980804d7a727ee.zip
New super-useful command from Dominik - \nopt. Use this to exclude sections of text for a specific target/feature. Example of use in system options.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10089 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 69cf5aa244..7b1927cee5 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -49,6 +49,7 @@
49\usepackage{url} 49\usepackage{url}
50\urlstyle{sf} 50\urlstyle{sf}
51\usepackage{marvosym} 51\usepackage{marvosym}
52\usepackage{ifthen}
52 53
53% new \ifpdf to check if running in pdf mode. Helps for html generation. 54% new \ifpdf to check if running in pdf mode. Helps for html generation.
54\newif\ifpdf\ifx\pdfoutput\undefined\pdffalse\else\pdfoutput=1\pdftrue\fi 55\newif\ifpdf\ifx\pdfoutput\undefined\pdffalse\else\pdfoutput=1\pdftrue\fi
@@ -239,3 +240,12 @@
239 commandchars=\\\{\}% 240 commandchars=\\\{\}%
240 } 241 }
241 242
243
244% Use the nopt command to exclude a certain defined feature from a sectio
245% Example:
246% \nopt{ondio}{This text will be excluded for ondios}
247\newcommand{\optnvalue}{0}
248 \newcommand{\nopt}[2]{%
249 \renewcommand{\optnvalue}{0}\opt{#1}{\renewcommand{\optnvalue}{1}}%
250 \ifthenelse{\optnvalue > 0}{}{#2}
251 }