forked from len0rd/rockbox
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
This commit is contained in:
parent
de6230153e
commit
df91a9b011
1 changed files with 8 additions and 6 deletions
|
@ -103,15 +103,17 @@
|
||||||
% Usage: \note{text of your note}
|
% Usage: \note{text of your note}
|
||||||
% Note: do NOT use \textbf or similar to emphasize text, use \emph!
|
% Note: do NOT use \textbf or similar to emphasize text, use \emph!
|
||||||
\newcommand{\note}[1]{
|
\newcommand{\note}[1]{
|
||||||
\noindent\\%
|
\ifinner\else\par\noindent\fi
|
||||||
\textbf{Note:}\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}\ #1%
|
\textbf{Note:}\ %
|
||||||
\newline
|
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Writinghand}}#1\par\fi%
|
||||||
}
|
}
|
||||||
|
|
||||||
% command to display a warning.
|
% command to display a warning.
|
||||||
% Usage: \warn{text of your warning}
|
% Usage: \warn{text of your warning}
|
||||||
% Note: do NOT use \textbf or similar to emphasize text!
|
% Note: do NOT use \textbf or similar to emphasize text!
|
||||||
\newcommand{\warn}[1]{
|
\newcommand{\warn}[1]{
|
||||||
\noindent\textbf{Warning:}\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}\ #1%
|
\ifinner\else\par\noindent\fi
|
||||||
\newline
|
\textbf{Warning:\ }%
|
||||||
|
\ifinner#1\else\marginpar{\raisebox{-6pt}{\Huge\Stopsign}}#1\par\fi%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue