Re: [jats-list] Seeking assistance with simple LaTeX mathematical equations in XML JATS

Subject: Re: [jats-list] Seeking assistance with simple LaTeX mathematical equations in XML JATS
From: "Michael Boudreau mboudreau@xxxxxxxxxxxx" <jats-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Mar 2021 22:17:34 -0000
Hi Mario,

Although Oxygen will not render LaTeX, this should work: \[F_{2,1045} =
24.942, p < .001\]

You can check it at https://www.mathjax.org/#demo

--
Michael R. Boudreau
Electronic Publishing Technology Manager
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637
www.journals.uchicago.edu<http://www.journals.uchicago.edu>


From: "Mario Pallua pallua@xxxxxxxxx"
<jats-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Reply-To: "jats-list@xxxxxxxxxxxxxxxxxxxxxx"
<jats-list@xxxxxxxxxxxxxxxxxxxxxx>
Date: Friday, March 19, 2021 at 5:01 PM
To: "jats-list@xxxxxxxxxxxxxxxxxxxxxx" <jats-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [jats-list] Seeking assistance with simple LaTeX mathematical
equations in XML JATS

Dear all,

I am converting doc/pdf versions of academic articles into XML JATS for a
Croatian scholarly journal. I just started using XML a few months ago, with no
prior knowledge of programming, and this is only my second article - so I'm
pretty much a noob. I use Oxygen.

The problem is, I cannot get a few very simple mathematical formulas to work
using LaTeX in XML JATS. I also cannot find any tutorials or example articles
online. I would like to use LaTeX, and not MathML.

Would anyone be willing to help me? Basically, right now I just need to learn
how to make a subscript, but am also interested to learn more for future
articles.

This is an example formula that I've written based on one tutorial I found.
Everything works alright (the formula is inline, it's italic, looks nice), but
it does not want to make the "2,1045" a subscript as it should. Other
operators (such as "to the power of" also don't seem to work).

<inline-formula>
          <tex-math notation="LaTeX">
            <![CDATA[/F_{(2,1045)}= 24.942, p<.001]]>
          </tex-math>
</inline-formula>

This is the data at the beginning of my XML doc in case the problem lies
there:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD
with OASIS Tables with MathML3 v1.1 20151215//EN"
"JATS-journalpublishing-oasis-article1-mathml3.dtd">

<article article-type="research article" xml:lang="en" dtd-version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink<https://urldefense.com/v3/__http:/w
ww.w3.org/1999/xlink__;!!BpyFHLRN4TMTrA!srvdf_wWtBmWElGP9v_fgJmYXX2XkfTbSHQlj
0bQeZX946b60ruxy-5yOl9uDVKpwfrQ$>"
xmlns:mml="http://www.w3.org/1998/Math/MathML<https://urldefense.com/v3/__htt
p:/www.w3.org/1998/Math/MathML__;!!BpyFHLRN4TMTrA!srvdf_wWtBmWElGP9v_fgJmYXX2
XkfTbSHQlj0bQeZX946b60ruxy-5yOl9uDSzrPBLS$>">

Many many thanks for any ideas or suggestions!

Thank you,
Mario Pallua (Croatia)
JATS-List info and
archive<https://urldefense.com/v3/__http:/www.mulberrytech.com/JATS/JATS-List
/__;!!BpyFHLRN4TMTrA!srvdf_wWtBmWElGP9v_fgJmYXX2XkfTbSHQlj0bQeZX946b60ruxy-5y
Ol9uDZ1D12N5$>
EasyUnsubscribe<https://urldefense.com/v3/__http:/lists.mulberrytech.com/unsu
b/jats-list/2986360__;!!BpyFHLRN4TMTrA!srvdf_wWtBmWElGP9v_fgJmYXX2XkfTbSHQlj0
bQeZX946b60ruxy-5yOl9uDeXrBWi1$> (by email<>)

Current Thread