On Sun, 05 May 2002 10:00:26 +0300 wrote Amir Seginer <[EMAIL PROTECTED]>:
> - In letter style (any language), can two "paragraph styles" be added,
> the \begin{letter}{} and the \end{letter}?
Try this: copy stdletter.inc from the LyX layout directory to your layout
directory and add the following:
# begin/end letter environment commands:
# !!!Attention: Must be closed with EndLetter!!!
# Begin an environment
Style BeginLetter
LatexType Command
LatexName begin{letter}
KeepEmpty 1
# NextNoIndent 1
LabelType Centered_Top_Environment
LabelString "_____ Letter Text (use EndLetter to close!) _____"
LabelFont
Family Sans
Size small
Color blue
EndFont
End
# !!! Attention: Use only for Letters started with BeginLetter!!!
# End an Letter
Style EndLetter
CopyStyle BeginLetter
LatexName end{letter}
LabelString "_____ end of letter text ______"
End
Disclaimer: This is untested, may not work.
Warning: LyX will not tell you about unbalanced begin/end (but TeX will
complain, of course).
Another option (besides ERT) would be a generic begin/end environment style:
(put somewhere where all document layouts can reach it)
# A set of generic container environment commands:
# !!!Attention: Must be closed with EndEnvironment!!!
# Begin an environment
Style BeginEnvironment
LatexType Command
LatexName begin
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
--
[EMAIL PROTECTED]