Currently, "statement" is handled with the default encoder in the JATS codec.
This doesn't catch the label/id of a "statement" environment.
E.g. in LaTeX:
The Theorem~\ref{thm:ref} is below.
\begin{theorem}\label{thm:ref}
Let it be.
\end{theorem}
As JATS XML:
<p id="p1">The Theorem <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#Thmtheorem1">1</ext-link> is below.</p>
<statement id="Thmtheorem1">
<title><bold>Theorem 1</bold>.</title>
<p id="Thmtheorem1.p1">
<italic>Let it be.</italic>
</p>
</statement>
As JSON:
{
"type": "Paragraph",
"id": "p1",
"content": [
"The Theorem ",
{
"type": "Link",
"target": "#Thmtheorem1",
"content": [
"1"
]
},
" is below."
]
},
{
"type": "Heading",
"depth": 1,
"content": [
{
"type": "Strong",
"content": [
"Theorem 1"
]
},
"."
]
},
{
"type": "Paragraph",
"id": "Thmtheorem1.p1",
"content": [
{
"type": "Emphasis",
"content": [
"Let it be."
]
}
]
}
Should there be a separate "statement" element?
JATS defines it as:
Theorem, Lemma, Proof, Postulate, Hypothesis, Proposition, Corollary, or other formal statement, identified as such with a label and usually made typographically distinct from the surrounding text.
https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/statement.html
In LaTeX this would be a "theorem" and one of the many variants.
https://www.overleaf.com/learn/latex/theorems_and_proofs
Typically theorem titles are rendered inline, so another solution might be to just have a Block element wrapper (with id and some kind of information about the type) around the statement content.
Currently, "statement" is handled with the default encoder in the JATS codec.
This doesn't catch the label/id of a "statement" environment.
E.g. in LaTeX:
As JATS XML:
As JSON:
{ "type": "Paragraph", "id": "p1", "content": [ "The Theorem ", { "type": "Link", "target": "#Thmtheorem1", "content": [ "1" ] }, " is below." ] }, { "type": "Heading", "depth": 1, "content": [ { "type": "Strong", "content": [ "Theorem 1" ] }, "." ] }, { "type": "Paragraph", "id": "Thmtheorem1.p1", "content": [ { "type": "Emphasis", "content": [ "Let it be." ] } ] }Should there be a separate "statement" element?
JATS defines it as:
https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/statement.html
In LaTeX this would be a "theorem" and one of the many variants.
https://www.overleaf.com/learn/latex/theorems_and_proofs
Typically theorem titles are rendered inline, so another solution might be to just have a Block element wrapper (with id and some kind of information about the type) around the statement content.