From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32429 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tiago Manzato de Souza Newsgroups: gmane.text.pandoc Subject: Re: Number sections in other output formats (e.g. jats) Date: Thu, 30 Mar 2023 18:48:05 -0700 (PDT) Message-ID: <24bf9ef9-b57e-49be-b86f-e6a5e68a4eebn@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1844_1311547054.1680227285693" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14475"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDN7ZEEBQEFBBV7XTCQQMGQEXZWGAPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 31 03:48:11 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pi3sA-0003aE-Mv for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 31 Mar 2023 03:48:10 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id j185-20020acab9c2000000b003891e28e0eesf3926280oif.14 for ; Thu, 30 Mar 2023 18:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680227289; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=vOhrwtRE5Nt+QfekWP2ddvnXVdiuyy8FWGAeu+nLnks=; b=s45kmvWO+83QTJSUAZMFwSB8S7YT8gREso2fLlXCZaUvSewdySfGys6bh4axE6MJEb z8nJrR06Mn4b2XM8VB/SWtmyKgjblL/I8Zupcfj474pmbFLEx8Uyi2MFTkYpFwR8nJxk 0dSlj8AuKf+NMa9yrkvxUnPcjfeetuZXRTFqFpXGZwneIUuPD+Gcg6gOodFgVVErHeZU RktTaoc9PK6mjtyqHGNdCchlhHl+AZ73iaJ+EbWmeh2+eXNEpCUbpjLZRDSOTUQahZX5 RzeiHQS9VWzIZCusDXLH/Ayxzb3n/9of7GUiNLVeihC8HlBccihptg73MPIx6DD9Z+7j Lcmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680227289; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=vOhrwtRE5Nt+QfekWP2ddvnXVdiuyy8FWGAeu+nLnks=; b=ZiBz4lx2T83frkzfSHDt0KVuKcN6sKLTB2BJEvD8DIXuI2HAU7p/t1U03QLhcWPAr8 phlYS0yFXt7hxddzvT3EODZfCkyZ5sUVyLUHn1ukBC7HipzxBWivkpkhOM//sVKm7OMu o4Qasu5l3ynPSlnTw+6b2TUoS+lqI7Ss4uhPjSNIX8XmSGp4fTVxnNkv9b8B8VhIbmgz vFLEAbc6wLlzYs37iRCj9hPpLBnb8qonMS5Tp1klmBJ12nC2iEGGXkMouqQHPuQZB63q oS84PSyyEdkhLDRnogTwUQ1lWrxe5LJsfRTQfW3vdFic2edYN80L+bHhXDwXCJTebV/V 2KYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680227289; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=vOhrwtRE5Nt+QfekWP2ddvnXVdiuyy8FWGAeu+nLnks=; b=rcPueHtWXMVECVb8rRtQSrEKuvrXIxFFgVoFkJ1tpghTgNZGbhCpX+5YymG28YAU1o szCNH3LvEhO9AcLpy5tKb0J8EZWOCJF5Fyj9O8GPOwxJkMXkV6glTQ1bMm0KKvufXaMc pAA6lumFd4sxcnXbVRKevL5GoMNRvKvp/nSxCquII5NCOI7kvg0zHXCZKwoLGS3erukj ISa1x631QEY+Z4eyhmEU+kzG9cPzZn9uKzyHqconNf48gzCOU73YMfWV0tYropL96ACG DAK7Av1snh345NckIOuEidKrsAJXf93If6oNPSoq61WX66bDbHRQ7sn0hrMOAI8OM31w Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUUAk4DnS7oqhORy8Nl4jG60uUx/J1kuGuJn8a8bVSqHFPmKwxt tqNEzfhab00J8b3AtGAfA3k= X-Google-Smtp-Source: AK7set8fEsdA24v21KmKRHXdqRRO+xFW0QKNp3/NLe28IUwFiZHfYNgwI801DOKIg7HbkNF885WjXg== X-Received: by 2002:a05:6808:284:b0:384:33df:4dfc with SMTP id z4-20020a056808028400b0038433df4dfcmr7415557oic.11.1680227289605; Thu, 30 Mar 2023 18:48:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:228d:b0:387:447d:ee97 with SMTP id bo13-20020a056808228d00b00387447dee97ls881426oib.8.-pod-prod-gmail; Thu, 30 Mar 2023 18:48:06 -0700 (PDT) X-Received: by 2002:a05:6808:8c:b0:386:b6a7:c093 with SMTP id s12-20020a056808008c00b00386b6a7c093mr7507650oic.6.1680227286468; Thu, 30 Mar 2023 18:48:06 -0700 (PDT) In-Reply-To: X-Original-Sender: tiagomanzato-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32429 Archived-At: ------=_Part_1844_1311547054.1680227285693 Content-Type: multipart/alternative; boundary="----=_Part_1845_155822026.1680227285693" ------=_Part_1845_155822026.1680227285693 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi John, I may not be an "expert" in JATS but as far as I know, numbered sections in= =20 JATS are as follows: ** Introduction

...

** Methods

...

** Cases

...

** Case 1

...

** Case 2

...

** Case 3

...

** Discussion

...

** Results

...

** Conclusions

...

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

...

*2*Methods

...

*3*Cases

...

Case 1

...

Case 2

...

Case 3

...

*4*Discussion

...

*5*Results

...

*6*Conclusions

...

Hope it helped! Kind Regards, Tiago Manzato Em domingo, 20 de setembro de 2020 =C3=A0s 14:07:11 UTC-3, John MacFarlane= =20 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 writes: > > > Hi, > > > > another JATS XML question. I need to have numbered sections. Currently= =20 > > `--number-sections` does that for some formats, but not for JATS or=20 > > other XML formats. Is there a way to enable this? > > > > Best, > > Denis > > > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/dfdd99aa-e0ac-e713-ebfd-= 6e34ae5edbe5%40mailbox.org > . > --=20 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 e= mail 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. ------=_Part_1845_155822026.1680227285693 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi John,

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

<sec sec-= type=3D"intro">
=C2=A0 =C2=A0=C2=A0<label>1</label= >
=C2=A0 =C2=A0 <title>Introduction</title>
=C2=A0 =C2=A0 <p>...</p>
</sec>
<sec sec-type=3D"methods">
=C2=A0 =C2=A0=C2=A0<label>= 2</label>
=C2=A0 =C2=A0 <title>Methods</title&= gt;
=C2=A0 =C2=A0 <p>...</p>
</sec><sec sec-type=3D"cases">
=C2=A0 =C2=A0=C2=A0<label>3= </label>
=C2=A0 =C2=A0 <title>Cases</title>=
=C2=A0 =C2=A0 <p>...</p>
=C2=A0 =C2=A0 <= ;sec>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <label>3.1</labe= l>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <title>Case 1</tit= le>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <p>...</p>
=C2=A0 =C2=A0 </sec>
=C2=A0 =C2=A0 <sec>
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0<label>3.2</label>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <title>Case 2</title>
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 <p>...</p>
=C2= =A0 =C2=A0 </sec>
=C2=A0 =C2=A0 <sec>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0=C2=A0<label>3.3</label>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <title>Case 3</title>
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 <p>...</p>
=C2=A0 = =C2=A0 </sec>
</sec>
<sec sec-type=3D"discuss= ion">
=C2=A0 =C2=A0=C2=A0<label>4</label>
=C2=A0 =C2=A0 <title>Discussion</title>
=C2=A0 =C2= =A0 <p>...</p>
</sec>
<sec sec-typ= e=3D"results">
=C2=A0 =C2=A0=C2=A0<label>5</label>
=C2=A0 =C2=A0 <title>Results</title>
=C2= =A0 =C2=A0 <p>...</p>
</sec>
&l= t;sec sec-type=3D"conclusions">
=C2=A0 =C2=A0=C2=A0<label>6= </label>
=C2=A0 =C2=A0 <title>Conclusions</tit= le>
=C2=A0 =C2=A0 <p>...</p>
</sec>= ;

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

<sec= sec-type=3D"intro">
=C2=A0 =C2=A0 <title>1Introd= uction</title>
=C2=A0 =C2=A0 <p>...</p>
</sec>
<sec sec-type=3D"methods">
=C2=A0 =C2= =A0 <title>2Methods</title>
=C2=A0 =C2=A0 <= p>...</p>
</sec>
<sec sec-type=3D"cases"&g= t;
=C2=A0 =C2=A0 <title>3Cases</title>
=C2= =A0 =C2=A0 <p>...</p>
=C2=A0 =C2=A0 <sec>
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <title>Case 1</title>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <p>...</p>
=C2=A0= =C2=A0 </sec>
=C2=A0 =C2=A0 <sec>
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 <title>Case 2</title>
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 <p>...</p>
=C2=A0 =C2=A0 <= /sec>
=C2=A0 =C2=A0 <sec>
=C2=A0 =C2=A0 =C2=A0= =C2=A0 <title>Case 3</title>
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 <p>...</p>
=C2=A0 =C2=A0 </sec>
</sec>
<sec sec-type=3D"discussion">
=C2=A0 = =C2=A0 <title>4Discussion</title>
=C2=A0 =C2= =A0 <p>...</p>
</sec>
<sec sec-typ= e=3D"results">
=C2=A0 =C2=A0 <title>5Results</title&= gt;
=C2=A0 =C2=A0 <p>...</p>
</sec>
<sec sec-type=3D"conclusions">
=C2=A0 =C2=A0 <t= itle>6Conclusions</title>
=C2=A0 =C2=A0 <p>= ...</p>
</sec>

Hope it helped!

Kind Regards,
=
Tiago Manzato

Em domingo, 20 de setembro de 2020 =C3=A0s 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. Curre= ntly=20
> `--number-sections` does that for some formats, but not for JATS o= r=20
> other XML formats. Is there a way to enable this?
>
> Best,
> Denis
>
> --=20
> 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-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.
------=_Part_1845_155822026.1680227285693-- ------=_Part_1844_1311547054.1680227285693--