Micha Feigin wrote:

> [...]
>> 
>> Ok, I tried going a different approach of modifying tex2lyx to achieve
>> the expected results when importing documents.

That would probably be wrong. Unless somebody changed tex2lyx it converts
all possible arguments of parboxes and minipages correctly to LyX.

> I've managed to add a None unit option to the dialog by changing
> lengthcommon.cpp but I can't make it catch on, if I pick it, it defaults
> back to 0pt instead of setting Length::empty() to true (UNIT_NONE). Where
> is that check performed? (I need to add the extra state)

Changing the dialog is the right way IMHO. If you change the LaTeX output of
LyX you introduce a file format change. The only change that would be
possible without fileformat change is to omit an optional argument if it
would be equivalent to the default used by LaTeX.


Georg

Reply via email to