dginev / ar5iv

A web service offering HTML5 articles from arXiv.org as converted with latexml
https://ar5iv.org
MIT License
739 stars 21 forks source link

Improve article 1308.2118 (amsrefs.sty, \item customization) #406

Open dginev opened 7 months ago

dginev commented 7 months ago

Exact location of issue

Errors from missing tikz-cd support and advanced list bullet customization.

Also, \bibselect needs to be added to the amsrefs.sty.ltxml binding.

Problem details

An interesting detail is how closely we would need to emulate \item customization to get this article right. It uses:

\newcommand{\N}{\mathbb N}

\section{Notation}
The following notation will be used throughout the text:

\renewcommand{\descriptionlabel}[1]{\hspace{\labelsep}$#1\,=$}
\begin{description}
\item[\N] the natural numbers $\{0,1,\dots\}$
% ... long list of such entries follows
\end{description}

So latexml would need to tightly use \descriptionlabel for {description} items to avoid the implied math mode error. Edit: after a quick look at the code, the $tag used for the \typerefnum@... device seems to get set to \mathbb N, without any available math mode switch. I wonder if it wouldn't be better to Digest the $formatter and reconstruct a tag from there in such cases...

dginev commented 3 months ago

tikz-cd figures are now largely healthy SVG.

\bibselect and bibliography entries remain an issue.