Skip to content

Commit

Permalink
Update LaTeX, \rm -> \mathrm (#3039)
Browse files Browse the repository at this point in the history
* Update LaTeX, \rm -> \mathrm

Per #3037, update the LateX to change from the deprecated \rm
to the official \mathrm{...}.

I started this using this regular expression:
sed -E -i '' -e '/latexdef/s/\\rm (\\?[A-Za-z0-9\-^\.\[\]\;]+) *\}/\\mathrm{\1}}/g' set.mm iset.mm

.. and then fixed others by hand. I fixed all the entries in
set.mm, and many in iset.mm. If this approach seems reasonable we can fix
the rest of iset.mm.

* Fix long lines

* Remove unnecessary {..} around TeX \methrm

In TeX, \mathrm{...} is a single unit.

This removes the unnecessary {...} surrounding them in many cases.
This was done by:

~~~~sh
sed -E -e 's/\{\\mathrm\{([A-Za-z0-9;\\</#]+)\}\}/\\mathrm\{\1\}/g' set.mm \
  > ,set
mv ,set set.mm
~~~~~

Signed-off-by: David A. Wheeler <[email protected]>

* Remove unnecessary {...} in TeX on iset.mm

Signed-off-by: David A. Wheeler <[email protected]>
  • Loading branch information
david-a-wheeler authored Feb 20, 2023
1 parent 3c59fac commit f5a861f
Show file tree
Hide file tree
Showing 2 changed files with 889 additions and 887 deletions.
Loading

0 comments on commit f5a861f

Please sign in to comment.