On 21/12/2010 5:18 AM, Helge Hafting wrote:
On 20. des. 2010 22:20, Guenter Milde wrote:
I wonder why/if it is necessary to change src/LaTeXFeatures.cpp.
I did not see changing scr/LaTeXFeatures.cpp mentioned in the
Customization guide.

It is necessary in order to have LyX "support" multicol.sty. So LyX
will check to see that the .sty is actually present, and say you can't
use the module if it isn't.


Not quite, as configure.py will check the module dependencies for you and you can add \usepackage{multicol} in a preamble tag in the module file. So you don't need to touch c++ source.

And I believe supporting multicol.sty in LaTeXFeatures.cpp will ensure
the latex packages are loaded in correct order. Don't know if there
are any constraints on multicol.sty, but some packages have
such constraints. LaTeXFeatures.cpp takes care of that.


That could very well be.

[...]

I see. But it'd be such a kludge for the users. If they want anything
but two columns they will have to insert a "short title" and make sure
they never ever type in front of that.


"short title" is completely misleading and should be changed, but LyX takes care to properly output its content first in the latex output, so there is no need for the user to "make sure they never type in front of that."

I rather program this capability into LyX, improving the usefulness of
modules in general. But the timing is such that it will be for LyX 2.1,
I guess. I hoped this module would be useful in the meantime.


That would be great!

--
Julien

Reply via email to