On 3.05.05, Gunnar wrote:
> > Try, export to LaTeX and have a look.
> > (And tell us about your findings.)
> There was not a single trace of the short-title in the latex file.
I see. In my testing revealed, optional arguments only show up if the
LatexType is "command".
* So one possibility is to use the "free environment" wrappers (see
below) but these are not failproof (you always need to pair them an put
the stuff that should go into the environment into Standard (or
whatever) paragraphs inside.
* Another one would be to set up your EE environment as a command. (I.e.
use \newcommand to define it and LatexType command in the Style)
However, this might prevent some stuff from being nested into it.
BTW: do you know you can define the command in the Style, so the
definition gets only inserted into the tex file if needed? (see
"Itemize-Dense" below for an example, this also contains the
non-working OptionalArgs)
* The third one is to file a bug/wish on bugzilla.lyx.org and wait...
Hej d�
G�nter
# A set of generic container environment commands:
# !!!Attention: Must be closed with EndEnvironment!!!
# Begin an environment
Style BeginEnvironment
LatexType Command
LatexName begin
OptionalArgs 1
NextNoIndent 1
Margin First_Dynamic
LabelType Static
LabelString "begin: "
Font
Family Sans
Size small
Color blue
EndFont
LabelFont
Family Sans
Size small
Color blue
EndFont
End
# !!! Attention: Use only for environments started with BeginEnvironment!!!
# End an environment
Style EndEnvironment
CopyStyle BeginEnvironment
LatexName end
LabelString "end: "
End
# condensed itemize style definition
Style Itemize-Dense
CopyStyle Itemize
LatexName citemize
OptionalArgs 1
ParSep 0
Preamble
\newenvironment{citemize}% See "LaTeX-Begleiter" S. 62
{%
\setlength{\topsep}{0ex}%
\setlength{\partopsep}{-\parskip}%
\begin{itemize}
\setlength{\itemsep}{0pt}%
\setlength{\parskip}{0ex}%
}%
{\end{itemize}}
EndPreamble
End
--
G.Milde web.de