/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: 2011-09-21 16:25:27 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20110921162527-w1xf06yo4kae0hoi
Tags: 1.4.8
Fix bug in \displaystyle | \textstyle

These should now work as they do in LaTeX.

Reported by Andrew Stacey

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.4.7
2
 
 *   itex2MML.l last modified 9/7/2011
 
1
/*             itex2MML 1.4.8
 
2
 *   itex2MML.l last modified 9/21/2011
3
3
 */
4
4
 
5
5
%{
826
826
"\\color"        {BEGIN(ATTRIBUTELIST); return COLOR;}
827
827
"\\bgcolor"        {BEGIN(ATTRIBUTELIST); return BGCOLOR;}
828
828
 
829
 
"\\displaystyle"  {itex2MML_rowposn=2; return DISPLAY;}
 
829
"\\displaystyle"  {itex2MML_displaymode=1; itex2MML_rowposn=2; return DISPLAY;}
830
830
 
831
 
"\\textstyle"     {itex2MML_rowposn=2; return TEXTSTY;}
 
831
"\\textstyle"     {itex2MML_displaymode=0; itex2MML_rowposn=2; return TEXTSTY;}
832
832
 
833
833
"\\textsize"     {return TEXTSIZE;}
834
834