Dave Chapeskie a écrit : > I imaging this is trivial to do in TeX but I really don't know enough. > I've searched on CTAN but I've found nothing appropriate. > > What I'm looking for is something that'll give me LaTeX environments > like the DocBook <tip>, <note>, <warning>, <caution>, and <important> > tags. And if I can find someone that's already done the appropriate > layout entries for LyX that'd be even better.
I've written this. That's not perfect... The environment allows to add a figure, but I haven't good looking figures about warning, tips. It would be great if someone could provide them :-)... BG
%% %% notes/warnings/tips, etc. %% %% Examples: %% %% \begin{TASadmonition}{none}{Note} %% Example of note, without graphic. %% \end{TASadmonition} %% %% \begin{TASadmonition}{warning.eps}{WARNING} %% This is a warning, with a graphic. %% \end{TASadmonition} %% \newlength{\admlength} \newenvironment{TASadmonition}[2] { \begin{center} \hspace{0mm}%\newline \noindent \setlength{\fboxsep}{5pt} \setlength{\admlength}{\linewidth} \addtolength{\admlength}{-4mm} \sffamily \begin{minipage}{\admlength} \hrule \vspace{2mm} \ifthenelse{\equal{#1}{none}}{ \def\admgraph{false} }{ \def\admgraph{true} \includegraphics[width=10mm]{#1}\hspace{1mm} \addtolength{\admlength}{-11mm} \begin{minipage}{\admlength} } \textbf{#2}% }{ \ifthenelse{\equal{\admgraph}{false}}{}{ \end{minipage}\newline } \vspace{3mm} \hrule \end{minipage}\newline \end{center} }