/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 plugin/itex2MML/itex2MML.pl

  • Committer: Jacques Distler
  • Date: 2007-01-17 23:44:40 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20070117234440-fzpjflt8hnepu3nx
Fix to allow numbered equations to be entered without being separated by a newline from the rest of the text.

Show diffs side-by-side

added added

removed removed

101
101
 
102
102
  # add equation numbers to \[...\]
103
103
  #  - introduce a wrapper-<div> and a <span> with the equation number
104
 
  while (s/\\\[(.*?)\\\]/\n<div class=\"$cls\"><span>\($eqno\)<\/span>\$\$$1\$\$<\/div>\n/s) {
 
104
  while (s/\\\[(.*?)\\\]/\n\n<div class=\"$cls\"><span>\($eqno\)<\/span>\$\$$1\$\$<\/div>\n\n/s) {
105
105
    $eqno++;
106
106
  }
107
107