/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: 2010-09-29 20:44:12 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20100929204412-1mx4dpbzubk0nlm7
Tags: 1.4.3
itex2MML 1.4.3: Better extensible arrows

Per a suggestion by Frederic Wang, allow
the optional argument to contain square
bracket(s) *provided* they are "protected"
by braces. This is the LaTeX behaviour, and
we should follow it.

Also, fix a bug when the mandatory argument
is blank.

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.4.2
2
 
 *   itex2MML.y last modified 9/12/2010
 
1
/*             itex2MML 1.4.3
 
2
 *   itex2MML.y last modified 9/29/2010
3
3
 */
4
4
 
5
5
%{
1313
1313
};
1314
1314
 
1315
1315
munder: XARROW OPTARGOPEN compoundTermList OPTARGCLOSE EMPTYMROW {
1316
 
  char * s1 = itex2MML_copy3("<munder><mrow>", $3, "</mrow>");
1317
 
  $$ = itex2MML_copy3(s1, $1, "</munder>");
 
1316
  char * s1 = itex2MML_copy3("<munder><mo>", $1, "</mo><mrow>");
 
1317
  $$ = itex2MML_copy3(s1, $3, "</mrow></munder>");
1318
1318
  itex2MML_free_string(s1);
1319
1319
  itex2MML_free_string($1);
1320
1320
  itex2MML_free_string($3);