diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2006-04-01 15:35:30 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2006-04-01 15:35:30 +0000 |
commit | df91a9b01172d7b28c64d4d70888d0e9dd286aa9 (patch) | |
tree | 4c7026654694d6bb5f7d6005039747fa67b7b38b /manual | |
parent | de6230153e114575a20c27eaf47a903f7846ced1 (diff) | |
download | rockbox-df91a9b01172d7b28c64d4d70888d0e9dd286aa9.tar.gz rockbox-df91a9b01172d7b28c64d4d70888d0e9dd286aa9.zip |
extend note and warn macro not to fail when outside par mode. Now they also set a new paragraph. Still has problems from within tables though
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9400 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual')
-rw-r--r-- | manual/preamble.tex | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/manual/preamble.tex b/manual/preamble.tex index 1a10de713b..138d9830ec 100644 --- a/manual/preamble.tex +++ b/manual/preamble.tex | |||
@@ -103,15 +103,17 @@ | |||
103 | % Usage: \note{text of your note} | 103 | % Usage: \note{text of your note} |
104 | % Note: do NOT use \textbf or similar to emphasize text, use \emph! | 104 | % Note: do NOT use \textbf or similar to emphasize text, use \emph! |
105 | \newcommand{\note}[1]{ | 105 | \newcommand{\note}[1]{ |
106 | \noindent\\% | 106 | \ifinner\else\par\noindent\fi |
107 | \textbf{Note:}\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}\ #1% | 107 | \textbf{Note:}\ % |
108 | \newline | 108 | \ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}#1\par\fi% |
109 | } | 109 | } |
110 | 110 | ||
111 | % command to display a warning. | 111 | % command to display a warning. |
112 | % Usage: \warn{text of your warning} | 112 | % Usage: \warn{text of your warning} |
113 | % Note: do NOT use \textbf or similar to emphasize text! | 113 | % Note: do NOT use \textbf or similar to emphasize text! |
114 | \newcommand{\warn}[1]{ | 114 | \newcommand{\warn}[1]{ |
115 | \noindent\textbf{Warning:}\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}\ #1% | 115 | \ifinner\else\par\noindent\fi |
116 | \newline | 116 | \textbf{Warning:\ }% |
117 | } \ No newline at end of file | 117 | \ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}#1\par\fi% |
118 | } | ||
119 | |||