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
This commit is contained in:
Dominik Riebeling 2006-07-17 19:10:31 +00:00
parent 184c3da1a5
commit 6424c50952
2 changed files with 9 additions and 8 deletions

View file

@ -1,5 +1,5 @@
% $Id$ %
\chapter*{\centering{Rockbox}}
\ifpdfoutput{\chapter*{\centering{Rockbox}}}{\begin{center}{\Large{Rockbox}}\end{center}}
\vspace{1cm}
\noindent

View file

@ -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