Discussion:
about the initials module
(too old to reply)
Uwe Stöhr
2011-07-18 23:40:43 UTC
Permalink
Hi Pavel,

in the page http://wiki.lyx.org/LyX/NewInLyX20 there was the icon that the initial module is
documented. Where is it, I cannot find it?

I now wrote its documentation from scratch and saw that your module did not work. \lettrine takes a
mandatory and an optional argument, but you didn't allow to use arguments. Therefore the resulting
LaTeX code was incorrect and the output therefore too. Moreover, this could lead to LaTeX errors,
depending which style the user used behind a paragraph with an initial.
Without the arguments one can also not use all of lettrines features. I think it is important to
offer as much possibilities as possible when implementing things. When we offer something, it should
be better than using TeX code directly.

However, I fixed the module now by adding a style that allows to use all features of lettrine. The
only problem is that we don't yet support arguments for InsetLayouts, only for styles (see my post
from today about this topic. I was therefore forced to use two TeX code braces. But have a look at
sec. 6.3 of the EmbeddedObjects manual to see my implementation. I think this solution is better
than directly using TeX code.

For compatibility reasons I left your style definition but I think we should remove it. It is not
usable and users who use it, would get LaTeX troubles. We should also add a note in the release
notes that people should switch to the initials style. What do you think?

regards Uwe
Pavel Sanda
2011-07-19 09:55:38 UTC
Permalink
Post by Uwe Stöhr
Hi Pavel,
in the page http://wiki.lyx.org/LyX/NewInLyX20 there was the icon that the
initial module is documented. Where is it, I cannot find it?
i put the tickmark of documented feature when the module description inside settings
dialog is enough to grab all information needed.

as sidecomment i dont think that adding specific features which pull extra
packages into our manuals is a healthy thing. they are not compilable on
various situations then and produce strange errors like when we added mchem
notion into math manual and instant preview stop to work or even compile
for some users.

i will review your current changes soon.
pavel
Jean-Marc Lasgouttes
2011-07-19 10:11:14 UTC
Permalink
Post by Pavel Sanda
as sidecomment i dont think that adding specific features which pull extra
packages into our manuals is a healthy thing. they are not compilable on
various situations then and produce strange errors like when we added mchem
notion into math manual and instant preview stop to work or even compile
for some users.
Indeed.

JMarc

PS: BTW Uwe, did you see my messages about the \LyX macro? Since r37164
it is robust under hyperref and it is not necessary to redefine it in
preamble.
Uwe Stöhr
2011-07-19 17:57:59 UTC
Permalink
PS: BTW Uwe, did you see my messages about the \LyX macro? Since r37164 it is robust under hyperref
and it is not necessary to redefine it in preamble.
Not yes. Thanks for the hint, I'll remove the corresponding preamble code now.

regards Uwe

Uwe Stöhr
2011-07-19 12:07:18 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...