public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Tiago Manzato de Souza <tiagomanzato-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Number sections in other output formats (e.g. jats)
Date: Thu, 30 Mar 2023 18:48:05 -0700 (PDT)	[thread overview]
Message-ID: <24bf9ef9-b57e-49be-b86f-e6a5e68a4eebn@googlegroups.com> (raw)
In-Reply-To: <m25z88v0lu.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 3388 bytes --]

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>*1*Introduction</title>
    <p>...</p>
</sec>
<sec sec-type="methods">
    <title>*2*Methods</title>
    <p>...</p>
</sec>
<sec sec-type="cases">
    <title>*3*Cases</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>*4*Discussion</title>
    <p>...</p>
</sec>
<sec sec-type="results">
    <title>*5*Results</title>
    <p>...</p>
</sec>
<sec sec-type="conclusions">
    <title>*6*Conclusions</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...-cl+VPiYnx/1AfugRpC6u6w@public.gmane.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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.

[-- Attachment #1.2: Type: text/html, Size: 6220 bytes --]

      parent reply	other threads:[~2023-03-31  1:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cec5c68f-a4e0-d8ee-b6d9-5eb94e18c69b@denismaier.com>
     [not found] ` <cec5c68f-a4e0-d8ee-b6d9-5eb94e18c69b-4GONa9oNnSu+XT7JhA+gdA@public.gmane.org>
2020-09-20  8:59   ` Denis Maier
     [not found]     ` <dfdd99aa-e0ac-e713-ebfd-6e34ae5edbe5-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2020-09-20 17:06       ` John MacFarlane
     [not found]         ` <m25z88v0lu.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2023-03-31  1:48           ` Tiago Manzato de Souza [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24bf9ef9-b57e-49be-b86f-e6a5e68a4eebn@googlegroups.com \
    --to=tiagomanzato-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).