brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
942 stars 101 forks source link

aastex62 email-author association #2091

Open nschloe opened 1 year ago

nschloe commented 1 year ago

With aastex62, e-mail addresses are not associated with authors, but rather appear as a list at the bottom of the front page. LaTeXML however associates them with with an author, namely always the most recently defined. That's not always correct, e.g.,:

\documentclass{aastex62}

\begin{document}
\title{Lorem ipsum}

\author{Jane Doe} 

\author{Max Mustermann}

\author{Jeanne Dupont}

\email{jane.doe@example.com}
\email{max.mustermann@example.com}

\section{Introduction}

\end{document}

LaTeX output:

screenshot_2023-07-27-093908

LaTeXML output:

  <creator role="author">
    <personname>Jane Doe</personname>
    <picture height="9.46" tex="\@@personname{Jane Doe}" width="56.5" xml:id="pic1">
      <text>)</text>
    </picture>
  </creator>
  <creator role="author">
    <personname>Max Mustermann</personname>
    <picture height="9.46" tex="\@@personname{Max Mustermann}" width="108.12" xml:id="pic2">
      <text>)</text>
    </picture>
  </creator>
  <creator role="author">
    <personname>Jeanne Dupont</personname>
    <picture height="12.15" tex="\@@personname{Jeanne Dupont}" width="92.25" xml:id="pic3">
      <text>)</text>
    </picture>
    <contact role="email">jane.doe@example.com</contact>
    <contact role="email">max.mustermann@example.com</contact>
  </creator>
  <section inlist="toc" xml:id="S1">
    <tags>
      <tag>1</tag>
      <tag role="autoref">section 1</tag>
      <tag role="refnum">1</tag>
      <tag role="typerefnum">§1</tag>
    </tags>
    <title><tag close=" ">1</tag>Introduction</title>
  </section>

Changing this heuristic to associate e-mail addresses one-by-one to the list of authors would work here, but fail if there's an article where one author has multiple addresses. Not sure how common that would be though.

brucemiller commented 1 year ago

Yuck; Is this lack of connection only in aastex62, or is it true for all aastex.(cls|sty)?

nschloe commented 1 year ago

aastex (without version) doesn't typeset the email addresses at all, other versions (aastex61, aastex62, aastex63) all show the addresses at the bottom of the page (as in the original post).