Here's something I hacked together for my new Troubleshooting book. This is
a note, but tip, warning, caution, etc are similar. I think you could do
better by using a minipage or maybe a frame to get away from the top and
bottom lines, which tend to widow/orphan:
Preamble
\newlength{\scratchLength}% scratch variable used later
EndPreamble
Style Note
LatexType Environment
LatexName note_l
LabelType Centered_Top_Environment
LabelString "NOTE"
AlignPossible Left
LeftMargin "MMMMM"
RightMargin "MMMMM"
ParSkip 0.7
ParSep 0.7
TopSep 0.7
BottomSep 0.7
Font
EndFont
Preamble
\setlength{\scratchLength}{\leftmargin}
\addtolength{\scratchLength}{1cm}
\newenvironment{note_l}
{
\begin{list}{}
{
\setlength{\leftmargin}{\scratchLength}
\setlength{\rightmargin}{\leftmargin}
\setlength{\parsep}{1cm}
}
\item[]
\hrulefill
\\[0.1cm]
{\centering\large NOTE \\[0.2cm]}
}
{
\\[0.2cm] .\hrulefill \\
\par
\end{list}
}
EndPreamble
End
��@�Gh��@�
On Saturday 13 October 2001 00:55, Dave Chapeskie wrote:
> 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.
>
> NOTE: For those that don't know DocBook, a <note> is
> basicly a paragraph with changed margins that looks
> something like this one. Warnings, important, etc
> often use different fonts and/or include a graphic
> in the margin.
>
> Thanks!
--
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.