brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
957 stars 101 forks source link

remove redundant \expandafter definition #2368

Closed dginev closed 5 months ago

dginev commented 5 months ago

Spotted while porting. There appear to be two \expandafter definitions following each other.

As the first one wasn't getting used (immediately overwritten by the second), this PR removes it for clarity.

dginev commented 5 months ago

I also removed a redundant \relpenalty (TeXbook value seems to be 500)

dginev commented 5 months ago

There are also two definitions of \newread and \newwrite in plain.pool.ltxml, but I am not sure which of the two variants should be kept? May be worth a look.

brucemiller commented 5 months ago

I'll have to remember to take a look at \newread & \newrite, as there are some subtle differences between plain.tex and plain.pool approaches which need sorting.

brucemiller commented 5 months ago

Looks good; thanks!