Open abhineetgupta opened 11 months ago
I've encountered this SI + math mode issue as well - a somewhat annoying workaround is to try and regex the \SI{}{} pieces out of $$ in the tex file before running tex2jats. A simple example of this is in seismica-sce/extras/clean_tex_submission.py. It only really works when the \SI{}{} part is at the end of in-line math, though, and that specific python script will likely need ad hoc changes for what is allowed to be in the rest of the math mode section.
Use of \siunitx package is partially supported, and can cause uncaught errors that create rendering issues.
\sim 10 km
in XML, which is not as intended.\DeclareSIUnit\year{yr}
in the Latex file worked correctly in the PDF, butyr
symbol was completely missing in the converted xml.