/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.y

  • 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.y last modified 9/7/2011
 
1
/*             itex2MML 1.4.8
 
2
 *   itex2MML.y last modified 9/21/2011
3
3
 */
4
4
 
5
5
%{
917
917
  itex2MML_free_string($2);
918
918
};
919
919
 
920
 
displaystyle: DISPLAY closedTerm {
 
920
displaystyle: DISPLAY compoundTermList {
921
921
  $$ = itex2MML_copy3("<mstyle displaystyle=\"true\">", $2, "</mstyle>");
922
922
  itex2MML_free_string($2);
923
923
};
924
924
 
925
 
textstyle: TEXTSTY closedTerm {
 
925
textstyle: TEXTSTY compoundTermList {
926
926
  $$ = itex2MML_copy3("<mstyle displaystyle=\"false\">", $2, "</mstyle>");
927
927
  itex2MML_free_string($2);
928
928
};
929
929
 
930
 
textsize: TEXTSIZE closedTerm {
 
930
textsize: TEXTSIZE compoundTermList {
931
931
  $$ = itex2MML_copy3("<mstyle scriptlevel=\"0\">", $2, "</mstyle>");
932
932
  itex2MML_free_string($2);
933
933
};
934
934
 
935
 
scriptsize: SCSIZE closedTerm {
 
935
scriptsize: SCSIZE compoundTermList {
936
936
  $$ = itex2MML_copy3("<mstyle scriptlevel=\"1\">", $2, "</mstyle>");
937
937
  itex2MML_free_string($2);
938
938
};
939
939
 
940
 
scriptscriptsize: SCSCSIZE closedTerm {
 
940
scriptscriptsize: SCSCSIZE compoundTermList {
941
941
  $$ = itex2MML_copy3("<mstyle scriptlevel=\"2\">", $2, "</mstyle>");
942
942
  itex2MML_free_string($2);
943
943
};