LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

formatting in thanks in author disappears

Open teepeemm opened this issue 2 years ago • 1 comments

The following TeX:

\documentclass{article}
\usepackage[text={2in,2in},centering]{geometry}
\title{Title}
\author{Author\thanks{1 \texttt{2} 3 \textbf{4} 5 \emph{6} 7}}
\begin{document}
\maketitle
\end{document}

has the pdf: Screen Shot 2022-12-11 at 5 31 52 PM We have the html:

<div class="ltx_authors">
 <span class="ltx_creator ltx_role_author">
  <span class="ltx_personname">Author</span>
  <span class="ltx_author_notes">
   <span>
    1 <span class="ltx_text ltx_font_typewriter">2</span> 3
    <span class="ltx_text ltx_font_bold">4</span> 5
    <em class="ltx_emph ltx_font_italic">6</em> 7
   </span>
  </span>
 </span>
</div>

Hovering over the askterisk for the thanks, we see Screen Shot 2022-12-11 at 5 31 33 PM If I adjust the selectors at lib/LaTeXML/resources/CSS/LaTeXML.css#L74 to be

.ltx_authors_1line .ltx_author_notes > span
.ltx_authors_1line .ltx_author_notes:hover > span

then I get Screen Shot 2022-12-11 at 5 31 15 PM

Would this change have any other consequences? Are there occasions where we have .ltx_authors_1line .ltx_author_notes > (notspan) span that we don't want to display?

teepeemm avatar Dec 12 '22 00:12 teepeemm

It looks like 0.8.7 has removed the .ltx_author_notes > span, so my proposal no longer works. On the other hand, we now have Screen Shot 2023-01-12 at 8 26 53 PM where "1 3 5 6 7" is always present, and "4" shows up on hover. I'm not sure if this is what we wanted to happen with removing the span tag.

teepeemm avatar Jan 13 '23 02:01 teepeemm