Uwe Stöhr
2011-07-18 23:40:43 UTC
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
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