brucemiller / LaTeXML

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

support for changes.sty #2123

Open Ramnath-Karthikesan opened 1 year ago

Ramnath-Karthikesan commented 1 year ago

the \replaced, \added, and \deleted are undefined while converting latex to html.

\documentclass{article}
\usepackage{changes}

\title{\replaced{High-resolution volumetric imaging constrains compartmental models to explore synaptic integration and temporal processing by cochlear nucleus globular bushy cells}{Two Synaptic Convergence Motifs Define Functional Roles for Inputs to Cochlear Nucleus Bushy Cells}}

\begin{document}
Because \added{the density of} synapse\added{s} \deleted{density}  showed only a small decrease with increasing ASA (\FIG{Figure1}F), we used the average density to estimate the synapses
\end{document}
teepeemm commented 1 year ago

@Ramnath-Karthikesan FYI, the more relevant message is Warning:missing_file:changes Can't find binding for package changes at filename.tex; line 3 col 0. The log file follows this up with "Anticipate undefined macros or environments". LaTeXML doesn't know what to do for the changes package, so any changes commands are undefined. (The currently supported bindings are at https://math.nist.gov/~BMiller/LaTeXML/manual/included.bindings/)

Sometimes when a package isn't supported, you can compile with the flag --includestyles to have LaTeXML read the style file and have a go at it. That doesn't work in this case.

dginev commented 10 months ago

@teepeemm since you mentioned you are experimenting with writing a binding here, let me opine that it is probably more versatile to provide a high-level set of definitions in Perl that emit higher-level markup, and then doing the styling work for HTML via CSS.

Interpreting changes.sty raw - even if successful - is likely to produce markup that is too low-level (likely a variant on styled span soup).