From 6424c5095264cc32274a8222eef9bc3060fb6c14 Mon Sep 17 00:00:00 2001
From: Dominik Riebeling <Dominik.Riebeling@gmail.com>
Date: Mon, 17 Jul 2006 19:10:31 +0000
Subject: 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
---
 manual/preamble.tex | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

(limited to 'manual/preamble.tex')

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
-- 
cgit v1.2.3

