diff options
-rwxr-xr-x | manual/configure_rockbox/system_options.tex | 2 | ||||
-rw-r--r-- | manual/preamble.tex | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/manual/configure_rockbox/system_options.tex b/manual/configure_rockbox/system_options.tex index 155fb6d078..17566e740b 100755 --- a/manual/configure_rockbox/system_options.tex +++ b/manual/configure_rockbox/system_options.tex | |||
@@ -25,12 +25,14 @@ | |||
25 | Options relating to the hard disk. | 25 | Options relating to the hard disk. |
26 | 26 | ||
27 | \begin{description} | 27 | \begin{description} |
28 | \nopt{ondio}{ | ||
28 | \item [Disk Spindown: ]Rockbox has a timer that makes it spin down the | 29 | \item [Disk Spindown: ]Rockbox has a timer that makes it spin down the |
29 | hard disk after it is idle for a certain amount of time. This setting | 30 | hard disk after it is idle for a certain amount of time. This setting |
30 | controls the amount of time between the last user activity and the time | 31 | controls the amount of time between the last user activity and the time |
31 | that the disk spins down. This idle time is only affected by user | 32 | that the disk spins down. This idle time is only affected by user |
32 | activity, like navigating through file browser. When the hard disk spins | 33 | activity, like navigating through file browser. When the hard disk spins |
33 | up to fill mp3 buffer, it automatically spins down afterwards. | 34 | up to fill mp3 buffer, it automatically spins down afterwards. |
35 | } | ||
34 | \opt{recorder,h1xx,h300}{ | 36 | \opt{recorder,h1xx,h300}{ |
35 | \item [Disk Poweroff: ]This setting controls whether the disk is powered | 37 | \item [Disk Poweroff: ]This setting controls whether the disk is powered |
36 | off or only set to ``sleep'' when spun down. If this setting is YES, | 38 | off or only set to ``sleep'' when spun down. If this setting is YES, |
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 | } | ||