Kevin Paunovic writes: > > I start from a .tex latex file that contains: > \lipsum[11] blahblah > > I import this in LyX. > > Then I export the .lyx file to plain latex (.tex) and I find this line: > \lipsum{[}11] > > This seems to be due to the fact \lipsum command don't take arguments > but a unique optional argument (between square brackets). So LyX may > consider, as no '{' was found after \lipsum, that lipsum command > takes the next char as argument (the opening square bracket) and puts > it between accolades. Maybe there is a way to fix this a simple way?
You must teach LyX the syntax of your command. The most simple way is copying the syntax.default file from the system directory to your personal .lyx directory and add at the very bottom the single line \lipsum[] However, if you do so, from now on the system syntax.default file is not read anymore, which may be a problem when you upgrade. So, it is better that you create a file containing only the line above and then modify the LaTeX->LyX converter in Tools->Preferences->Converters. Most probably this converter is defined as "tex2lyx -f $$i $$o" and you should change it to read "tex2lyx -s /path/to/your/syntax.file -f $$i $$o", where /path/to/your/syntax.file is the file above containing that single line (of course you can also add to it the syntax of other commands, one per line). If you are on *nix, "man tex2lyx" is your friend. HTH -- Enrico