You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frontmatter author block is not separated out correctly.
Problem details
Studying the source, the issue is the custom use of \And via an attached arxiv.sty dependency. In the pdflatex flow, the definition of \And is localized in arxiv.sty as part of the custom \@maketitle internals. The \@maketitle redefinition is currently unused/ignored by latexml.
Instead, what currently happens during latexml conversion, is that the visible \And definition comes from amsmath.sty.ltxml, which deposits the & character. As all author frontmatter is actually deposited in a single long \author{} macro call, no further chunking is performed.
Here is a sample anonymized document that reproduces that exactly:
\documentclass{article}
\usepackage{amsmath}
\makeatletter% rules for title box at top of first page\newcommand{\@toptitlebar}{
\hrule height 2\p@\vskip 0.25in
\vskip -\parskip%
}
\newcommand{\@bottomtitlebar}{
\vskip 0.29in
\vskip -\parskip\hrule height 2\p@\vskip 0.09in%
}
\newcommand{\undertitle}{A Preprint}
% create title (includes both anonymized and non-anonymized versions)\providecommand{\@maketitle}{}
\renewcommand{\@maketitle}{%\vbox{%\hsize\textwidth\linewidth\hsize\vskip 0.1in
\@toptitlebar\centering
{\LARGE\sc\@title\par}
\@bottomtitlebar\textsc{\undertitle}\\\vskip 0.1in
\def\And{%\end{tabular}\hfil\linebreak[0]\hfil%\begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
}
\def\AND{%\end{tabular}\hfil\linebreak[4]\hfil%\begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
}
\begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\@author\end{tabular}%\vskip 0.4in \@minus 0.1in \center{\@date} \vskip 0.2in
}
}
\makeatother\title{Unchunked frontmatter example}
\author{
First Name \\
Affiliation Name\\
Location \\\texttt{[email protected]} \\%% examples of more authors\And
Second Name \\
Affiliation Name\\
Location \\\texttt{[email protected]} \\\And
Third Name \\
Affiliation Name\\
Location \\\texttt{[email protected]} \\\And
Fourth Name \\
Affiliation Name\\
Location \\\texttt{[email protected]} \\\And
Sixth Name \\
Affiliation Name\\
Location \\\texttt{[email protected]} \\\And
Seventh Name \\
Affiliation Name\\
Location \\\texttt{[email protected]} \\
}
\begin{document}
\maketitle\end{document}
I suspect we'd need much more faithful emulation of \@maketitle internals to get nicely structured HTML here. But naturally not full emulation, as we don't want to reproduce the {tabular} layout.
The text was updated successfully, but these errors were encountered:
Exact location of issue
Frontmatter author block is not separated out correctly.
Problem details
Studying the source, the issue is the custom use of
\And
via an attachedarxiv.sty
dependency. In the pdflatex flow, the definition of\And
is localized inarxiv.sty
as part of the custom\@maketitle
internals. The\@maketitle
redefinition is currently unused/ignored by latexml.Instead, what currently happens during latexml conversion, is that the visible
\And
definition comes fromamsmath.sty.ltxml
, which deposits the&
character. As all author frontmatter is actually deposited in a single long\author{}
macro call, no further chunking is performed.Here is a sample anonymized document that reproduces that exactly:
I suspect we'd need much more faithful emulation of
\@maketitle
internals to get nicely structured HTML here. But naturally not full emulation, as we don't want to reproduce the{tabular}
layout.The text was updated successfully, but these errors were encountered: