/itexToMML

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/itexToMML/

« back to all changes in this revision

Viewing changes to itex-src/itex2MML.l

  • Committer: Jacques Distler
  • Date: 2007-10-05 12:54:53 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20071005125453-t5md7altdhllrldg
\binom
Fixed \binom{m}{n} to produce binomial coefficients, as it does in AMSLaTeX.
Added \atop, so {m \atop n} reproduces the old behaviour.
\operatorname does what you think it does (a synonym for the mis-named \mathop).

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.2.5a
2
 
 *   itex2MML.l last modified 9/21/2007
 
1
/*             itex2MML 1.2.6
 
2
 *   itex2MML.l last modified 10/5/2007
3
3
 */
4
4
 
5
5
%{
691
691
"\\overset"      {return OVER;}
692
692
 
693
693
"\\over"         {return TEXOVER;}
 
694
"\\atop"         {return TEXATOP;}
694
695
 
695
696
"\\underoverset"  {return UNDEROVER;}
696
697
 
798
799
 
799
800
"\\href"        {BEGIN(PLAINTEXT); return HREF;}
800
801
 
801
 
 
 
802
"\\operatorname" |
802
803
"\\mathop"       {BEGIN(PLAINTEXT); return MATHOP;}
803
804
 
804
805
"\\"[a-zA-Z]+    {yylval=itex2MML_copy_string(yytext+1); return MOP;}