Hi,
what I like especially in Lyx is the ability to define 'layouts'. I have
already done several of them but I'd like to have more...:
1) Why not use the boxes which you can insert e.g. with Insert->cite? You
could specify them in a layout as "LabelType" or "LabelBox". This would
make defining layouts for Tex-commands much nicer. Imagine a LabelBox
textbf, defined yourself.
2) I have defined a 'usepackage' layout (see below), but it does not work,
since I can use it only after '\begin{document}' currently. Wouldnt't it be
better to also allow that the Latex preamble can be edited as normal Lyx
document, and that 'usepackage' instructions are put there in 'label boxes'
as proposed in 1)?
# has to be mapped to \input; \usepackage can only be used for preamble..
Style UsePackage
Margin Dynamic
LatexType Command
LatexName usepackage
LabelSep xxx
ParSkip 0.4
TopSep 0.9
BottomSep 0.5
ParSep 1
Align Center
AlignPossible Center
LabelType Static
LabelString ">>>>>>> -------------- UsePackage:"
# standard font definition
Font
Size Large
Family Typewriter
Color magenta
EndFont
LabelFont
Family Roman
EndFont
End
3) I have defined also two other layouts 'Begin' and 'End' which just
compile to '\begin{}' and '\end{}' commands. They are quite useful when you
want to nest latex environments (which Lyx does not allow). E.g. you can
write
<begin: comment> % the begin paragraph compiled to
\begin{comment}
lsjflajsdf
alsdjfal % all other paragraphs
<end: comment> % the end paragraph which compiles to
\end{comment}
In this way, you can set environments as brackets around a lot of text, e.g
in this case for commenting out things. Here come the layouts:
Style Begin
Margin Dynamic
LatexType Command
LatexName begin
LabelSep xxx
ParSkip 0.4
TopSep 0.9
BottomSep 0.5
ParSep 1
Align Center
AlignPossible Center
LabelType Static
LabelString ">>>>>>> -------------- begin:"
# standard font definition
Font
Size Large
Family Typewriter
Color magenta
EndFont
LabelFont
Family Roman
EndFont
End
Style End
Margin Dynamic
LatexType Command
LatexName end
LabelSep xxx
ParSkip 0.4
TopSep 0.9
BottomSep 0.5
ParSep 1
Align Center
AlignPossible Center
LabelType Static
LabelString "<<<<<< -------------- end:"
Font
Size Large
Family Typewriter
Color magenta
EndFont
LabelFont
Family Roman
EndFont
End
Would you mind to assemble them into the distribution?
4) Of course, arbitrary nesting of environments for text sections would be
better. Lyx could support this by brackets at the border of the text:
-------------------------------- env 1
| ------------------------------ env 2
| @
| @ ---------------------------- env 3
| @ +
| @ +
| @ ----------------------------
| @
| @
| ------------------------------
|-------------------------------
And of course, this would also be nice for plain tex commands.
so, what do you think?
/Uwe
--
Dr. Uwe Assmann Universit�t Karlsruhe, Institut f�r Programmstrukturen,
Am Zirkel 2, Postfach 69 80, 76128 Karlsruhe, Germany
tel:+49/721/608-6088 http://i44www.info.uni-karlsruhe.de/~assmann
fax:+49/721/30047 mailto:[EMAIL PROTECTED]