brucemiller / LaTeXML

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

JATS: article title appears at end of body of text #2348

Open castedo opened 2 months ago

castedo commented 2 months ago

REPRO STEPS: For intput.tex:

\documentclass[]{article}
\title{A Test Case}
\begin{document}
\maketitle
\section{Introduction}
Here is some of the main text.
\end{document}

with latexmlc --format=jats input.tex GOT:

...
  <front>
...
      <title-group>
        <article-title>A Test Case</article-title>
      </title-group>
...
  </front>
  <body>
    <sec id="S1">
      <title>1 Introduction</title>
      <p id="S1.p1">Here is some of the main text.</p>
    </sec>
    <title>A Test Case</title>
  </body>
...

EXPECTED:

No <title>A Test Case</title> at the end of the body.

VERSION: 0.8.8