part of *.tex header is printed at start of html
- Dominant language
- No language data
- Stars
- 42
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### Description
The top of my html-document is:
\AANum
A123 \yearCop=2026 \authorlink=Markus Schmassmann, Nazaret Bello Gonzales, Rolf Schlichenmaier, Jan Jurcak
In my *.tex I have:
```
\AANum{A123} %A???
\newcommand*\myFullArticleNumber{A\&A, 708, A123 (2026)}
\yearCop={2026}
\authorlink={Markus Schmassmann, Nazaret Bello Gonzales, Rolf Schlichenmaier, Jan Jurcak}
%\latexmltrue
\AddToHook{shipout/lastpage}{\label{LastPage}}
\begin{document}
\makeatletter
\renewcommand*\aa@pageof{, page \thepage{} of \pageref{LastPage}} %must be placed after \begin{document}
\makeatother
%%% only for final arXiv/HTML version: corrected header
\makeatletter\ifaa@online\iflatexml\latexMLheader\else\fi\else\fi\makeatother
```
Why is this my header printed there?
Furthermore in my *.tex:
```
\makeatletter
%....
%%% only for final arXiv/HTML version: corrected header
\newcommand{\latexMLheader}{\myFullArticleNumber\hfill\href{https://www.aanda.org}{Astronomy \& Astrophysics}\\\aa@doi\\\copyright~The Authors \the\year}
\makeatother
```
But my corrected header does not appear in the HTML,
---
HTML id location: p1.1
### (Optional:) Please add any files, screenshots, or other information here.
I get in HTML:
I should get in HTML, only get in PDF `\iflatemltrue`:
### (Required) What is this issue most closely related to? Select one.
Other
### Internal issue ID
7aee08a1-54c0-4c32-a02f-f8f9a050e6fe
### Paper URL
https://services.arxiv.org/html/submission/7433177/view
### Browser
Chrome/146.0.0.0
### Device Type
Desktop
Contributor guide
Research direction
Reproduce the HTML output from the linked paper URL and inspect element p1.1 alongside the reported .tex source and its LaTeX/LaTeXML conditionals. Compare the leaked header commands with the expected header image; done means the source commands no longer print at the start of the HTML and the corrected header appears there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100