note and warnings macro from Dominik Riebeling. (Patch #4974)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9389 a1c6a512-1295-4272-9138-f99709370657
diff --git a/manual/preamble.tex b/manual/preamble.tex
index c07178f..1a10de7 100644
--- a/manual/preamble.tex
+++ b/manual/preamble.tex
@@ -42,6 +42,7 @@
\usepackage{longtable}
\usepackage{url}
\urlstyle{sf}
+\usepackage{marvosym}
% fancy header style adjustments
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
@@ -98,3 +99,19 @@
\end{figure}
}
+% command to display a note.
+% Usage: \note{text of your note}
+% Note: do NOT use \textbf or similar to emphasize text, use \emph!
+\newcommand{\note}[1]{
+ \noindent\\%
+ \textbf{Note:}\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}\ #1%
+ \newline
+}
+
+% command to display a warning.
+% Usage: \warn{text of your warning}
+% Note: do NOT use \textbf or similar to emphasize text!
+\newcommand{\warn}[1]{
+ \noindent\textbf{Warning:}\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}\ #1%
+ \newline
+}
\ No newline at end of file