stefano franchi wrote:

> On Wed, Feb 26, 2014 at 9:46 AM, Wilfried <[email protected]> wrote:
>>
>> The question is whether we want to support the full set of (AMS)LaTeX
>> commands -- see e.g. the amsmath user's guide (amsldoc.pdf)
>> and the Short Math Guide for LaTeX (short-math-guide.pdf) on page
>>  http://www.ams.org/publications/authors/tex/amslatex --
>> which seems to require also enhancing the LaTeX2LyX importer,
>> or restrict import and export to the markup set which is currently
>> implemented in LyX.

I'd use the AMS math test document testmath.tex, this one does not contain 
too much fancy text stuff. I just fixed some obvious bugs in the LyX math 
parser. Now there is one problem left (LyX misparses align and align* if 
they come inside gather, which is allowed by amsmath). There are two 
occurences of that in testmath.tex, if you comment these out the result 
looks quite good, although there is one more crash which I did not find yet. 
I believe that tex2lyx is correct here as well and that the crash is also in 
the LyX math parser. I am pretty sure that I coulds fix that in a couple of 
hours, so for now you can assume that all amsmath commands can be supported 
if wanted.

> Well, eqn.tex and eqn2.tex are orthogonal then. I would say we start we
> eqn.tex, and perhaps prune it from the latex/AMS commands not currently
> supported by tex2lyx.
> 
> I'd welcome help on the latter point.

Strip the \verb commands, all the formulas should stay as they are. I 
already have a patch to support \notag which I will submit once 2.1.0 is 
released. Also \hbox is probably easy to implement as a math box inset, and 
even if it is not, it is correctly parsed, and the PDF output is correct, so 
there is no reason not to keep it.

> Also, I had a quick look at the equation editor for LibreOffice (the
> LO's Math component accessible from Insert>>Object>>Formula). It seems
> incredibly primitive. But perhaps it's just the interface that gives
> that impression. Before I spend some time getting into it, could
> anyone confirm that LO's Math is actually the proper module to create
> equations in LibreOffice? Or are there other ways (e.g importing them
> from outside programs)?

Unfortunately I don't know.


Georg

Reply via email to