summaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/intro/main.tex2
-rw-r--r--manual/preamble.tex15
2 files changed, 9 insertions, 8 deletions
diff --git a/manual/intro/main.tex b/manual/intro/main.tex
index 8ff24241ac..12ce9abc4d 100644
--- a/manual/intro/main.tex
+++ b/manual/intro/main.tex
@@ -1,5 +1,5 @@
% $Id$ %
-\chapter*{\centering{Rockbox}}
+\ifpdfoutput{\chapter*{\centering{Rockbox}}}{\begin{center}{\Large{Rockbox}}\end{center}}
\vspace{1cm}
\noindent
diff --git a/manual/preamble.tex b/manual/preamble.tex
index 5de3180adc..ed8c52429c 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -51,15 +51,12 @@
\usepackage{marvosym}
\usepackage{ifthen}
-% new \ifpdf to check if running in pdf mode. Helps for html generation.
-%\newif\ifpdf\ifx\pdfoutput\undefined\pdffalse\else\pdfoutput=1\pdftrue\fi
-
% mark this ad draft version (only for pdflatex) -- comment this out at release
-%\ifpdf
+\ifpdfoutput{
\usepackage{pdfdraftcopy}
\draftstring{DRAFT VERSION}
% \draftangle{45}
-%\fi
+ }
% fancy header style adjustments
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
@@ -133,20 +130,24 @@
% command to display a note.
% Usage: \note{text of your note}
% Note: do NOT use \textbf or similar to emphasize text, use \emph!
+\ifpdfoutput{
\newcommand{\note}[1]{
\ifinner\else\par\noindent\fi
\textbf{Note:}\ %
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}#1\par\fi%
-}
+}}
+{\newcommand{\note}[1]{\ifinner\else\par\noindent\fi\textbf{Note:{} }#1\par}}
% command to display a warning.
% Usage: \warn{text of your warning}
% Note: do NOT use \textbf or similar to emphasize text!
+\ifpdfoutput{
\newcommand{\warn}[1]{
\ifinner\else\par\noindent\fi
\textbf{Warning:\ }%
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}#1\par\fi%
-}
+}}
+{\newcommand{\warn}[1]{\ifinner\else\par\noindent\fi\textbf{Warning:{} }#1}}
% make table floats use "H" (as for screenshots) as default positioning
\makeatletter\renewcommand{\fps@table}{H}\makeatother