summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2006-07-17 19:10:31 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2006-07-17 19:10:31 +0000
commit6424c5095264cc32274a8222eef9bc3060fb6c14 (patch)
tree9c41fa2db37d90ff5c1502e39b8908ee4c6a6100
parent184c3da1a5f7481a25536caacb1339515349095b (diff)
downloadrockbox-6424c5095264cc32274a8222eef9bc3060fb6c14.tar.gz
rockbox-6424c5095264cc32274a8222eef9bc3060fb6c14.tar.bz2
rockbox-6424c5095264cc32274a8222eef9bc3060fb6c14.zip
our \ifpdf is useless as KOMA-Script provides \ifpdfoutput. Don't output the warn and note symbols when not generating pdf output, also don't format the rockbox title as chapter*. Fixes some issues with tex4ht (and brings us closer to the html manual)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10223 a1c6a512-1295-4272-9138-f99709370657
-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