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: "Mario Pallua pallua@xxxxxxxxx" <jats-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 20 Mar 2021 16:00:09 -0000
Thank you Michael, much appreciated! I'll use the simple form for this
article, and check out the plugin for later ones. as suggested. Best, Mario

On Fri, 19 Mar 2021 at 23:43, Mario Pallua pallua@xxxxxxxxx <
jats-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hi Michael,
>
> Many thanks for your reply! So, what you're saying is that the code below
> is alright, it's just not showing up in Oxygen author mode?
>
> This is an example code in text mode - in the example you sent I had to
> change the final \ into ] otherwise it's green until the end of the file
>
> [image: math code example.png]
> This is how it shows up in author mode:
>
> [image: math code in author mode.png]
>
> On Fri, 19 Mar 2021 at 23:17, Michael Boudreau mboudreau@xxxxxxxxxxxx <
> jats-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>> 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
>>
>>
>>
>>
>>
>> *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:/www.w3.org/1999/xlink__;!!BpyFHLRN4TMTrA!srvdf_wWtBmWElGP9v_fgJmYXX2XkfTbSHQlj0bQeZX946b60ruxy-5yOl9uDVKpwfrQ$>"
>> xmlns:mml="http://www.w3.org/1998/Math/MathML
>> <https://urldefense.com/v3/__http:/www.w3.org/1998/Math/MathML__;!!BpyFHLRN4TMTrA!srvdf_wWtBmWElGP9v_fgJmYXX2XkfTbSHQlj0bQeZX946b60ruxy-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-5yOl9uDZ1D12N5$>
>>
>> EasyUnsubscribe
>> <https://urldefense.com/v3/__http:/lists.mulberrytech.com/unsub/jats-list/2986360__;!!BpyFHLRN4TMTrA!srvdf_wWtBmWElGP9v_fgJmYXX2XkfTbSHQlj0bQeZX946b60ruxy-5yOl9uDeXrBWi1$>
>> (by email)
>>
> JATS-List info and archive <http://www.mulberrytech.com/JATS/JATS-List/>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/jats-list/3431131> (by
> email <>)

[demime 1.01d removed an attachment of type image/png which had a name of math code example.png]

[demime 1.01d removed an attachment of type image/png which had a name of math code in author mode.png]

Current Thread