Hi John,

I may not be an "expert" in JATS but as far as I know, numbered sections in JATS are as follows:

<sec sec-type="intro">
    <label>1</label>
    <title>Introduction</title>
    <p>...</p>
</sec>
<sec sec-type="methods">
    <label>2</label>
    <title>Methods</title>
    <p>...</p>
</sec>
<sec sec-type="cases">
    <label>3</label>
    <title>Cases</title>
    <p>...</p>
    <sec>
        <label>3.1</label>
        <title>Case 1</title>
        <p>...</p>
    </sec>
    <sec>
        <label>3.2</label>
        <title>Case 2</title>
        <p>...</p>
    </sec>
    <sec>
        <label>3.3</label>
        <title>Case 3</title>
        <p>...</p>
    </sec>
</sec>
<sec sec-type="discussion">
    <label>4</label>
    <title>Discussion</title>
    <p>...</p>
</sec>
<sec sec-type="results">
    <label>5</label>
    <title>Results</title>
    <p>...</p>
</sec>
<sec sec-type="conclusions">
    <label>6</label>
    <title>Conclusions</title>
    <p>...</p>
</sec>

When I use the --number-sections command in pandoc nothing happens but by passing the metadata command chapters:true the output is like:

<sec sec-type="intro">
    <title>1Introduction</title>
    <p>...</p>
</sec>
<sec sec-type="methods">
    <title>2Methods</title>
    <p>...</p>
</sec>
<sec sec-type="cases">
    <title>3Cases</title>
    <p>...</p>
    <sec>
        <title>Case 1</title>
        <p>...</p>
    </sec>
    <sec>
        <title>Case 2</title>
        <p>...</p>
    </sec>
    <sec>
        <title>Case 3</title>
        <p>...</p>
    </sec>
</sec>
<sec sec-type="discussion">
    <title>4Discussion</title>
    <p>...</p>
</sec>
<sec sec-type="results">
    <title>5Results</title>
    <p>...</p>
</sec>
<sec sec-type="conclusions">
    <title>6Conclusions</title>
    <p>...</p>
</sec>

Hope it helped!

Kind Regards,
Tiago Manzato

Em domingo, 20 de setembro de 2020 às 14:07:11 UTC-3, John MacFarlane escreveu:

I'd like to hear from a JATS expert about how this should be
handled. And then it would probably require some additions
to the code.

Denis Maier <denis.ma...@mailbox.org> writes:

> Hi,
>
> another JATS XML question. I need to have numbered sections. Currently
> `--number-sections` does that for some formats, but not for JATS or
> other XML formats. Is there a way to enable this?
>
> Best,
> Denis
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/dfdd99aa-e0ac-e713-ebfd-6e34ae5edbe5%40mailbox.org.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/24bf9ef9-b57e-49be-b86f-e6a5e68a4eebn%40googlegroups.com.