>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:

Georg> Jacek M. Holeczek wrote:
>> Hi, I've recently been using "tex2lyx" (lyx-1.4.3) to lyx'ify a
>> revtex4 file. I have noticed some inconveniences: 1. the current
>> LyX does not understand: \email[optional text]{e-mail address} (The
>> "[optional text]" breaks LyX, note that also "\homepage",
>> "\altaffiliation", and some another commands, can have it.)

Georg> You can easily change that if you edit the file
Georg> "syntax.default" in your LyX directory. Add the lines

Georg> \email[]{} \homepage[]{}

Georg> etc. to the command list in that file, and tex2lyx will
Georg> correctly translate these commands. Where are they defined? Do
Georg> we want to add them to the LyX sources?

Georg, I think we should add these as optargs in revtex4.layout. Then
the question is whether tex2lyx is able to honor this and create
optarg insets.

Jacek, what is the complete list of tevtex command that take an
optional argument?

Georg> I just fixed the import of \l{} and \L{} in 1.5svn. Jean-Marc,
Georg> should it also go in 1.4.4? Jacek, do you see other characters
Georg> that are imported as ERT but could be imported natively
Georg> instead?

Georg, are you sure that your patch creates correct code? I see
-               else if (t.cs() == "i" || t.cs() == "j") {
+               else if (t.cs() == "i" || t.cs() == "j" || t.cs() == "l" ||
+                        t.cs() == "L") {
                        context.check_layout(os);
                        os << "\\" << t.cs() << ' ';
                        skip_braces(p); // eat {}

I do not understand what these things do not output an
insetlatexaccent. Actually, I am not sure the lyx syntax is correct.

JMarc

Reply via email to