* Number sections in other output formats (e.g. jats)
[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>
0 siblings, 1 reply; 3+ messages in thread
From: Denis Maier @ 2020-09-20 8:59 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Number sections in other output formats (e.g. jats)
[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>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2020-09-20 17:06 UTC (permalink / raw)
To: Denis Maier, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
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.maier.lists-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-discuss+unsubscribe-/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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Number sections in other output formats (e.g. jats)
[not found] ` <m25z88v0lu.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2023-03-31 1:48 ` Tiago Manzato de Souza
0 siblings, 0 replies; 3+ messages in thread
From: Tiago Manzato de Souza @ 2023-03-31 1:48 UTC (permalink / raw)
To: pandoc-discuss
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-31 1:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[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 ` Number sections in other output formats (e.g. jats) 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 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).