Hi all,
My Story environment seems to work, and that's great news because almost all
my custom environments will be similar. This was created by cannibalizing
Herbert's LyX-Code-Layout at the top of Herbert's lyx/layouts/layouts.html
page, and some code in Herbert's lyx/layouts/myClass.inc file.
But some questions remain. Why is it necessary to bring up lists and items?
In fact it must be necessary because when they were taken out the Environment
margins were no longer controllable, but aren't lists and items for bulleted
lists and the like? This environment has nothing to do with bulleted lists.
My other question is how to place a centered title for the story. Would this
be a label? I might put some of these environments in a framebox, so the
title and the text must be together.
Anyway, here's the Story environment:
Style Story
LatexType Environment
LatexName story_l
Align Left
AlignPossible Left
LeftMargin "MMMMM"
RightMargin "MMMMM"
ParSkip 0.7
ParSep 0.7
TopSep 0.7
BottomSep 0.7
Font
Shape Italic
EndFont
Preamble
\newlength{\storyIndent}
\setlength{\storyIndent}{\leftmargin}
\addtolength{\storyIndent}{1cm}
\newenvironment{story_l}
{
\begin{list}{} {
\setlength{\leftmargin}{\storyIndent}
\setlength{\rightmargin}{\leftmargin}
\setlength{\parsep}{1cm}
\itshape
}
\item[]
} {
\end{list}
}
EndPreamble
End
Thanks
Steve
--
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.