/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: 2009-10-12 14:52:59 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20091012145259-y31c5ov2msky76b8
Tags: 1.3.15
itex2MML 1.3.15: \mathrel and its cousins

I've been meaning to fix the misnamed \mathop for a while.
We now have separate

\operatorname{}
\mathop{}
\mathbin{}
\mathrel{}

commands.

Show diffs side-by-side

added added

removed removed

855
855
 
856
856
"\\href"        {BEGIN(PLAINTEXT); return HREF;}
857
857
 
858
 
"\\operatorname" |
859
 
"\\mathop"       {BEGIN(PLAINTEXT); return MATHOP;}
 
858
"\\operatorname"  {BEGIN(PLAINTEXT); return OPERATORNAME;}
 
859
"\\mathop"        {BEGIN(PLAINTEXT); return MATHOP;}
 
860
"\\mathbin"       {BEGIN(PLAINTEXT); return MATHBIN;}
 
861
"\\mathrel"       {BEGIN(PLAINTEXT); return MATHREL;}
860
862
 
861
863
"\\includegraphics"(\[[^\]]*\])?\{[^}]*\}       ;
862
864
 
930
932
}
931
933
 
932
934
<PLAINTEXT>{
933
 
\{[^\}]*\}  {yylval=itex2MML_copy_string(yytext+1); if ((yyleng > 1) && (yylval != itex2MML_empty_string)) yylval[yyleng-2]='\0'; BEGIN(MATH); return TEXTSTRING;}
 
935
\{[^\}]*?\}  {yylval=itex2MML_copy_string(yytext+1); if ((yyleng > 1) && (yylval != itex2MML_empty_string)) yylval[yyleng-2]='\0'; BEGIN(MATH); return TEXTSTRING;}
934
936
}
935
937
 
936
938
<INT1>{