texmacs-dev
[Top][All Lists]
Advanced

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

[Texmacs-dev] Latex->Texmacs conversion


From: Gwenael Gabard
Subject: [Texmacs-dev] Latex->Texmacs conversion
Date: Sun, 25 Aug 2002 16:14:44 +0200
User-agent: KMail/1.4.2

   Hi,

   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',

(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;

(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...

   This modifications refer to 1.0.0.15.

Gwenael

Attachment: cmsy.enc
Description: Text document

Attachment: msbm.enc
Description: Text document

Attachment: msam.enc
Description: Text document

Attachment: wasy.enc
Description: Text document


reply via email to

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