On Sat, Oct 13, 2001 at 06:22:09AM -0400, Steve Litt wrote:
> 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:
Thanks for the example! I don't know enough LaTeX to make a minipage
or anything. I couldn't get rid of the '.' at the beginning of your
trailing hrule and it wasn't exactly what I was looking for. However it
showed me enough LyX and LaTeX to do this:
Style Tip
LatexType Environment
LatexName tip_l
NextNoIndent 1
LabelSep Tip:
LabelType Static
LabelString "Tip:"
Align Block
AlignPossible Block, Left
LeftMargin "MMMMMMM"
RightMargin "MMMMM"
ParSkip 0.7
ParSep 0.7
TopSep 0.7
BottomSep 0.7
LabelFont
Series Bold
EndFont
Preamble
\newlength{\tipleftmargin}
\newenvironment{tip_l} {
\begin{list}{\bfseries{Tip:}} {
\setlength{\tipleftmargin}{\leftmargin}
\addtolength{\tipleftmargin}{1cm}
\setlength{\leftmargin}{\tipleftmargin}
\setlength{\rightmargin}{\leftmargin}
}
\item
} {
\end{list}
}
EndPreamble
End
Still not perfect, but it's close enough for now. The main thing it
does is allow me to mark all the appropriate paragraphs as Tips and
worry about changing just this one single bit to fix the layout later.
--
Dave Chapeskie
OpenPGP Key KeyId: 3D2B6B34