texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Latex->Texmacs conversion


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] Latex->Texmacs conversion
Date: Mon, 26 Aug 2002 11:10:37 +0200 (MET DST)

>    I've worked some more on the Latex converter:
> (1) Accented i (like \^i, \"i ...) are not correctly translated. In 
> parsetex.cc the line 507:
>   'e', 'e', 'e', 'e', 16 , 16 , 16 , 16 ,
> should be replaced by:
>   'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i',

I believe that the current version is correct,
because 16 stands for an i without the dot.

> (2) Spaces after commands are deleted. For instance the LaTeX content:
> \cite{Newton} abcde
> is translated
> [1]abcde
> This is due to the following part of fromtex.cc:243
>     if ((s[0]=='\\') && (s!="\\end-math") && (s!="\\end-displaymath"))
>       if ((arity(t[i-1])==1) || (command_type[s]=="command"))
>       continue;
> With TeX, only a space following a command with no argument is ignored, so 
> the 
> code should be:
>     if ((s[0]=='\\') && (s!="\\end-math") && (s!="\\end-displaymath"))
>       if ((arity(t[i-1])==1) && (command_type[s]=="command"))
>       continue;

This indeed seems to be a good bug fix; thanks.

> (3) Some math symbols are not defined. I've corrected some math font encoding 
> files: msam.enc, msbm.enc, cmsy.enc and wasy.enc (see attached files). The 
> following symbols are now defined:
> dagger, ddagger, rhd, lhd, unlhd, unrhd, risingdotseq, fallingdotseq, 
> smallsmile, smallfrown, Game, Finv, eth, Bbbk...

Great; I will include these into the new version.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]