diff options
Diffstat (limited to 'manual/preamble.tex')
-rw-r--r-- | manual/preamble.tex | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex index 08d1f0dc0a..4fc5f2be10 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex | |||
@@ -76,7 +76,7 @@ | |||
76 | \usepackage{makeidx} | 76 | \usepackage{makeidx} |
77 | \usepackage{fancyvrb} | 77 | \usepackage{fancyvrb} |
78 | \usepackage{color} | 78 | \usepackage{color} |
79 | \ifpdfoutput{\usepackage{booktabs}}% | 79 | \Ifpdfoutput{\usepackage{booktabs}}% |
80 | {\newcommand{% | 80 | {\newcommand{% |
81 | \toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}% | 81 | \toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}% |
82 | } | 82 | } |
@@ -90,7 +90,7 @@ | |||
90 | % pdf output: try pdf first, then png and jpg as file format | 90 | % pdf output: try pdf first, then png and jpg as file format |
91 | % html output: try png first, then jpg. Ignore pdf files | 91 | % html output: try png first, then jpg. Ignore pdf files |
92 | % this only applies if no file extension is given! | 92 | % this only applies if no file extension is given! |
93 | \ifpdfoutput{\DeclareGraphicsExtensions{.pdf,.png,.jpg}}% | 93 | \Ifpdfoutput{\DeclareGraphicsExtensions{.pdf,.png,.jpg}}% |
94 | {\DeclareGraphicsExtensions{.png,.jpg}} | 94 | {\DeclareGraphicsExtensions{.png,.jpg}} |
95 | 95 | ||
96 | % fancy header style adjustments | 96 | % fancy header style adjustments |
@@ -107,7 +107,7 @@ | |||
107 | \setlength{\headheight}{18.5pt} | 107 | \setlength{\headheight}{18.5pt} |
108 | \newcounter{example}[chapter] | 108 | \newcounter{example}[chapter] |
109 | 109 | ||
110 | \ifpdfoutput{% | 110 | \Ifpdfoutput{% |
111 | \renewcommand{\toprule}{\specialrule{\heavyrulewidth}{\abovetopsep}{0pt}} | 111 | \renewcommand{\toprule}{\specialrule{\heavyrulewidth}{\abovetopsep}{0pt}} |
112 | \renewcommand{\midrule}{\specialrule{\lightrulewidth}{0pt}{\belowrulesep}} | 112 | \renewcommand{\midrule}{\specialrule{\lightrulewidth}{0pt}{\belowrulesep}} |
113 | }{} | 113 | }{} |
@@ -198,7 +198,7 @@ | |||
198 | % command to display a note. | 198 | % command to display a note. |
199 | % Usage: \note{text of your note} | 199 | % Usage: \note{text of your note} |
200 | % Note: do NOT use \textbf or similar to emphasize text, use \emph! | 200 | % Note: do NOT use \textbf or similar to emphasize text, use \emph! |
201 | \ifpdfoutput{ | 201 | \Ifpdfoutput{ |
202 | \newcommand{\note}[1]{ | 202 | \newcommand{\note}[1]{ |
203 | \ifinner\else\vspace{1ex}\par\noindent\fi | 203 | \ifinner\else\vspace{1ex}\par\noindent\fi |
204 | \textbf{Note:}\ % | 204 | \textbf{Note:}\ % |
@@ -209,7 +209,7 @@ | |||
209 | % command to display a warning. | 209 | % command to display a warning. |
210 | % Usage: \warn{text of your warning} | 210 | % Usage: \warn{text of your warning} |
211 | % Note: do NOT use \textbf or similar to emphasize text! | 211 | % Note: do NOT use \textbf or similar to emphasize text! |
212 | \ifpdfoutput{ | 212 | \Ifpdfoutput{ |
213 | \newcommand{\warn}[1]{ | 213 | \newcommand{\warn}[1]{ |
214 | \ifinner\else\par\noindent\fi | 214 | \ifinner\else\par\noindent\fi |
215 | \textbf{Warning:\ }% | 215 | \textbf{Warning:\ }% |
@@ -219,7 +219,7 @@ | |||
219 | 219 | ||
220 | % command to mark a text block as intended especially for blind people | 220 | % command to mark a text block as intended especially for blind people |
221 | % Usage: \blind{text} | 221 | % Usage: \blind{text} |
222 | \ifpdfoutput{ | 222 | \Ifpdfoutput{ |
223 | \newcommand{\blind}[1]{\mbox{}\marginpar{\raisebox{-1ex}{\Huge{\ForwardToEnd}}}#1} | 223 | \newcommand{\blind}[1]{\mbox{}\marginpar{\raisebox{-1ex}{\Huge{\ForwardToEnd}}}#1} |
224 | } | 224 | } |
225 | {\newcommand{\blind}[1]{\ifinner\else\par\noindent\fi#1}} | 225 | {\newcommand{\blind}[1]{\ifinner\else\par\noindent\fi#1}} |
@@ -299,7 +299,7 @@ | |||
299 | % When creating HTML, use the soul package. | 299 | % When creating HTML, use the soul package. |
300 | % This produces much nicer HTML code (textsc results in each character being | 300 | % This produces much nicer HTML code (textsc results in each character being |
301 | % put in a separate <span>). | 301 | % put in a separate <span>). |
302 | \ifpdfoutput{\newcommand{\caps}[1]{\textsc{#1}}}{\usepackage{soul}} | 302 | \Ifpdfoutput{\newcommand{\caps}[1]{\textsc{#1}}}{\usepackage{soul}} |
303 | \newcommand{\setting}[1]{\caps{#1}} | 303 | \newcommand{\setting}[1]{\caps{#1}} |
304 | 304 | ||
305 | \newcommand{\config}[1]{\texttt{#1}} | 305 | \newcommand{\config}[1]{\texttt{#1}} |
@@ -314,7 +314,7 @@ | |||
314 | % Usage: \wikilink{WebHome} | 314 | % Usage: \wikilink{WebHome} |
315 | % with "WebHome" being the wiki page name | 315 | % with "WebHome" being the wiki page name |
316 | \newcommand{\wikibaseurl}{http://www.rockbox.org/wiki/} | 316 | \newcommand{\wikibaseurl}{http://www.rockbox.org/wiki/} |
317 | \ifpdfoutput{\newcommand{\wikiicon}{\Pointinghand}} | 317 | \Ifpdfoutput{\newcommand{\wikiicon}{\Pointinghand}} |
318 | {\newcommand{\wikiicon}{}} | 318 | {\newcommand{\wikiicon}{}} |
319 | \newcommand{\wikilink}[1]{\wikiicon{}\href{\wikibaseurl#1}{#1}} | 319 | \newcommand{\wikilink}[1]{\wikiicon{}\href{\wikibaseurl#1}{#1}} |
320 | %\newcommand{\wikilink}[1]{\url{http://www.rockbox.org/wiki/#1}} | 320 | %\newcommand{\wikilink}[1]{\url{http://www.rockbox.org/wiki/#1}} |
@@ -355,15 +355,15 @@ | |||
355 | 355 | ||
356 | % Use the reference to handle get a flexible reference command | 356 | % Use the reference to handle get a flexible reference command |
357 | % usage \reference{ref_section} | 357 | % usage \reference{ref_section} |
358 | \ifpdfoutput{% | 358 | \Ifpdfoutput{% |
359 | \newcommand{\reference}[1]{% | 359 | \newcommand{\reference}[1]{% |
360 | section~\ref{#1} (page~\pageref{#1})% | 360 | section~\ref{#1} (page~\pageref{#1})% |
361 | }} | 361 | }} |
362 | {\newcommand{\reference}[1]{section~\ref{#1}}} | 362 | {\newcommand{\reference}[1]{section~\ref{#1}}} |
363 | 363 | ||
364 | % special HTML output adjustments | 364 | % special HTML output adjustments |
365 | \ifpdfoutput{}{\setlength{\parindent}{0mm}} | 365 | \Ifpdfoutput{}{\setlength{\parindent}{0mm}} |
366 | \ifpdfoutput{}{\renewcommand{\Forward}[1]{$\triangleright${}#1}} | 366 | \Ifpdfoutput{}{\renewcommand{\Forward}[1]{$\triangleright${}#1}} |
367 | 367 | ||
368 | \newcommand{\btnfnt}[1]{\textbf{#1}} | 368 | \newcommand{\btnfnt}[1]{\textbf{#1}} |
369 | %\hfuzz=2pt | 369 | %\hfuzz=2pt |