From a2ea136a60f12d1d696d5e9548330b23fe242bdd Mon Sep 17 00:00:00 2001 From: "Igor B. Poretsky" Date: Sun, 29 Nov 2020 05:01:19 +0300 Subject: [PATCH] PDF documentation build fix --- manual/appendix/config_file_options.tex | 2 +- manual/frontpage/frontpage.tex | 2 +- manual/getting_started/main.tex | 6 +++--- manual/intro/main.tex | 4 ++-- manual/preamble.tex | 22 +++++++++++----------- manual/rockbox_interface/main.tex | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/manual/appendix/config_file_options.tex b/manual/appendix/config_file_options.tex index 87e8a2ab968..117d6f90fe7 100644 --- a/manual/appendix/config_file_options.tex +++ b/manual/appendix/config_file_options.tex @@ -4,7 +4,7 @@ \chapter{\label{ref:config_file_options}Config file options} % define a local version of endhead, as using the output distinction adds % an unwanted newline. endhead breaks with htlatex so we need to remove it % for the html output. -\Ifpdfoutput{\newcommand{\localendhead}{\endhead}}% +\ifpdfoutput{\newcommand{\localendhead}{\endhead}}% {\newcommand{\localendhead}{}} \rowcolors{2}{tbloddrowbgcolor}{tblevenrowbgcolor} \begin{longtable}{>{\raggedright}p{.3\textwidth}>{\raggedright}p{.4\textwidth}p{.2\textwidth}} diff --git a/manual/frontpage/frontpage.tex b/manual/frontpage/frontpage.tex index d343d4cf0ce..1b451d5cbb4 100644 --- a/manual/frontpage/frontpage.tex +++ b/manual/frontpage/frontpage.tex @@ -1,7 +1,7 @@ \thispagestyle{empty} \vspace*{0.3cm} \begin{center} -\Ifpdfoutput{\includegraphics[width=10cm]{frontpage/rockboxlogo.pdf}} +\ifpdfoutput{\includegraphics[width=10cm]{frontpage/rockboxlogo.pdf}} {\includegraphics{frontpage/rockbox-web.png}}\\ \vspace{2cm} \huge{\textsf{\textbf{The Rockbox Manual\\for\\\playername}}}\vspace{1cm}\\ diff --git a/manual/getting_started/main.tex b/manual/getting_started/main.tex index 947be98d9ec..01101d6bef5 100644 --- a/manual/getting_started/main.tex +++ b/manual/getting_started/main.tex @@ -65,7 +65,7 @@ \section{Naming conventions and marks} thus are written beginning with a capital letter. % write a bit more about names etc. here. -\Ifpdfoutput{ +\ifpdfoutput{ This manual has some parts that are marked with icons on the margin to help you finding important parts or parts you could skip. The following icons are used: @@ -91,14 +91,14 @@ \section{Naming conventions and marks} icon shown in the margin on the right. \\ } -}{}% end Ifpdfoutput +}{}% end ifpdfoutput Links to the wiki are abbreviated by the name of the wiki page. Those names are still linked so you can simply follow them like any other link in this manual. If you want to access a wiki page manually go to \wikiicon{} \href{\wikibaseurl}{\wikibaseurl} and type the page name in the ``Go'' box at the top of the page. -\Ifpdfoutput{Links to wiki pages are also indicated by the symbol \wikiicon{} +\ifpdfoutput{Links to wiki pages are also indicated by the symbol \wikiicon{} in front of the page name.}{} \input{getting_started/installation.tex} diff --git a/manual/intro/main.tex b/manual/intro/main.tex index fb794b9cce8..85e35a1f55e 100644 --- a/manual/intro/main.tex +++ b/manual/intro/main.tex @@ -18,11 +18,11 @@ % Contributors are listed in the file docs/CREDITS-MANUAL % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\Ifpdfoutput{ +\ifpdfoutput{ \newcommand{\latexbuild}{pdf\LaTeX}} {\newcommand{\latexbuild}{\TeX4ht}} -\Ifpdfoutput{\chapter*{\centering{Rockbox\\}}}% +\ifpdfoutput{\chapter*{\centering{Rockbox\\}}}% {\begin{center}{\Large{Rockbox}}\end{center}} \vspace{1cm} diff --git a/manual/preamble.tex b/manual/preamble.tex index 9dc67dd25a7..649c1011a68 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex @@ -77,7 +77,7 @@ \usepackage{makeidx} \usepackage{fancyvrb} \usepackage{color} -\Ifpdfoutput{\usepackage{booktabs}}% +\ifpdfoutput{\usepackage{booktabs}}% {\newcommand{% \toprule}{}\newcommand{\midrule}{\hline}\newcommand{\bottomrule}{}% } @@ -91,7 +91,7 @@ % pdf output: try pdf first, then png and jpg as file format % html output: try png first, then jpg. Ignore pdf files % this only applies if no file extension is given! -\Ifpdfoutput{\DeclareGraphicsExtensions{.pdf,.png,.jpg}}% +\ifpdfoutput{\DeclareGraphicsExtensions{.pdf,.png,.jpg}}% {\DeclareGraphicsExtensions{.png,.jpg}} % fancy header style adjustments @@ -108,7 +108,7 @@ \setlength{\headheight}{18.5pt} \newcounter{example}[chapter] -\Ifpdfoutput{% +\ifpdfoutput{% \renewcommand{\toprule}{\specialrule{\heavyrulewidth}{\abovetopsep}{0pt}} \renewcommand{\midrule}{\specialrule{\lightrulewidth}{0pt}{\belowrulesep}} }{} @@ -199,7 +199,7 @@ % command to display a note. % Usage: \note{text of your note} % Note: do NOT use \textbf or similar to emphasize text, use \emph! -\Ifpdfoutput{ +\ifpdfoutput{ \newcommand{\note}[1]{ \ifinner\else\vspace{1ex}\par\noindent\fi \textbf{Note:}\ % @@ -210,7 +210,7 @@ % command to display a warning. % Usage: \warn{text of your warning} % Note: do NOT use \textbf or similar to emphasize text! -\Ifpdfoutput{ +\ifpdfoutput{ \newcommand{\warn}[1]{ \ifinner\else\par\noindent\fi \textbf{Warning:\ }% @@ -220,7 +220,7 @@ % command to mark a text block as intended especially for blind people % Usage: \blind{text} -\Ifpdfoutput{ +\ifpdfoutput{ \newcommand{\blind}[1]{\mbox{}\marginpar{\raisebox{-1ex}{\Huge{\ForwardToEnd}}}#1} } {\newcommand{\blind}[1]{\ifinner\else\par\noindent\fi#1}} @@ -300,7 +300,7 @@ % When creating HTML, use the soul package. % This produces much nicer HTML code (textsc results in each character being % put in a separate ). -\Ifpdfoutput{\newcommand{\caps}[1]{\textsc{#1}}}{\usepackage{soul}} +\ifpdfoutput{\newcommand{\caps}[1]{\textsc{#1}}}{\usepackage{soul}} \newcommand{\setting}[1]{\caps{#1}} \newcommand{\config}[1]{\texttt{#1}} @@ -315,7 +315,7 @@ % Usage: \wikilink{WebHome} % with "WebHome" being the wiki page name \newcommand{\wikibaseurl}{https://www.rockbox.org/wiki/} -\Ifpdfoutput{\newcommand{\wikiicon}{\Pointinghand}} +\ifpdfoutput{\newcommand{\wikiicon}{\Pointinghand}} {\newcommand{\wikiicon}{}} \newcommand{\wikilink}[1]{\wikiicon{}\href{\wikibaseurl#1}{#1}} %\newcommand{\wikilink}[1]{\url{https://www.rockbox.org/wiki/#1}} @@ -356,15 +356,15 @@ % Use the reference to handle get a flexible reference command % usage \reference{ref_section} -\Ifpdfoutput{% +\ifpdfoutput{% \newcommand{\reference}[1]{% section~\ref{#1} (page~\pageref{#1})% }} {\newcommand{\reference}[1]{section~\ref{#1}}} % special HTML output adjustments -\Ifpdfoutput{}{\setlength{\parindent}{0mm}} -\Ifpdfoutput{}{\renewcommand{\Forward}[1]{$\triangleright${}#1}} +\ifpdfoutput{}{\setlength{\parindent}{0mm}} +\ifpdfoutput{}{\renewcommand{\Forward}[1]{$\triangleright${}#1}} \newcommand{\btnfnt}[1]{\textbf{#1}} %\hfuzz=2pt diff --git a/manual/rockbox_interface/main.tex b/manual/rockbox_interface/main.tex index 0f381ee58c1..27c6b56e8fb 100644 --- a/manual/rockbox_interface/main.tex +++ b/manual/rockbox_interface/main.tex @@ -5,7 +5,7 @@ \subsection{The \daps{} controls} % include the front image. Using \specimg makes this fairly easy, % but requires to use the exact value of \specimg in the filename! -% The extension is selected in the preamble, so no further \Ifpdfoutput +% The extension is selected in the preamble, so no further \ifpdfoutput % is necessary. % % The check looks for a png file -- we use png for the HTML manual, so that