From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13624 Path: news.gmane.org!not-for-mail From: Ramon Newsgroups: gmane.text.pandoc Subject: Re: Numbered sections with `plain` output format Date: Fri, 11 Sep 2015 18:33:33 -0700 (PDT) Message-ID: <97032a20-00b3-4f9e-880d-8d3f157887f2@googlegroups.com> References: <51910FED.1090808@gmail.com> <28ba6b1e-5f63-410f-9621-876096d0aa5c@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1781_1275946649.1442021613621" X-Trace: ger.gmane.org 1442021618 12530 80.91.229.3 (12 Sep 2015 01:33:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2015 01:33:38 +0000 (UTC) Cc: bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDP6FR4GRIKRB3UBZ2XQKGQEINJ54YI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 12 03:33:37 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yk0-f188.google.com ([209.85.160.188]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZaZhA-0001Cd-Kb for gtp-pandoc-discuss@m.gmane.org; Sat, 12 Sep 2015 03:33:36 +0200 Original-Received: by ykdg206 with SMTP id g206sf15051602ykd.1 for ; Fri, 11 Sep 2015 18:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=OvICOIOeVnhQs4TPFaTmXAc4CwC0b/qeK5WiLZv3dJM=; b=G3XdnMVuk+43HlHd5Ghv40hfyeTga2c0BON2L2Gbn7jUO9n1nh0So49ILBjxZH+Ukr nqmxZlR2WXhUp5/gf1zyo9zguFnHRhRGf40c78DDuw10jzF4xgXIH4GYUzHQfhqVS2TK RVwL4+5ivB3AAsvvGwIQE53JAy19956Veu4k0p6tuRDoy15cTF98FD6pzIp/eHtVEzxF xOx9064C2v//LcAOGYHcJCz9wA11F6v8iUzmWk4JscAenMN3HB8Okg8McUq9f0L9YON5 XMePlQDxhI4lq1uUlEhjg0tN54WFOdPhljJ4vQglMstaA4R2JUIHUnpiMaRWj9X0fQ+k dWZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=OvICOIOeVnhQs4TPFaTmXAc4CwC0b/qeK5WiLZv3dJM=; b=SrgblBuA8C6NGYAOCLXkHTvOr3cZrSXX8Uq8PPqrvi6Bj7Ry5gkF6ne/qB6H0PRnHL OHEzDzjlTVju/uHB0yL0wqNtedOkYIntfeABcLiHNmoMLp/gmTIUjQYb5fPGbIALwfCF iaXAxUg82cJOLVO3JfVcGprUGJ+0Sbb1FR7CPDfEb9XfI9Khuqvl4+2jBzzCvg5uwlku L15zRy/BZlBFLhVd7HUFr5dgbJAEi6mZcXA03YS69WS55KekL8Isngiv3zPgDeUloDnw VArdQLHu1qv5Bxh7x05J9Wzkq9w/w9StdlvYLPrFNKajoh80xfDwdJg6c+tUyITVry2h Uw3w== X-Received: by 10.140.18.178 with SMTP id 47mr13920qgf.5.1442021615724; Fri, 11 Sep 2015 18:33:35 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.94.67 with SMTP id f61ls1586953qge.39.gmail; Fri, 11 Sep 2015 18:33:34 -0700 (PDT) X-Received: by 10.140.93.1 with SMTP id c1mr12944qge.33.1442021614652; Fri, 11 Sep 2015 18:33:34 -0700 (PDT) In-Reply-To: X-Original-Sender: felciano-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:13624 Archived-At: ------=_Part_1781_1275946649.1442021613621 Content-Type: multipart/alternative; boundary="----=_Part_1782_1917652664.1442021613622" ------=_Part_1782_1917652664.1442021613622 Content-Type: text/plain; charset=UTF-8 Heh -- happy to give it a shot at least. I'll likely just try to get it running as is; if it adds numbering and can run as is with a basic Perl install on OSX then it should be fairly straightforward I think (hope!). Thanks! Ramon On Tuesday, September 8, 2015 at 11:02:33 AM UTC-7, BPJ wrote: > > Do you think you will manage without extensive documentation -- I.e. with > commented code? > Den 7 sep 2015 17:25 skrev "Ramon" >: > >> Yes that would be great -- thank you! >> >> Ramon >> >> On Friday, September 4, 2015 at 4:51:15 PM UTC-7, BPJ wrote: >>> >>> I wrote a perl filter once to implement a custom numbering scheme. It's >>> a rather simple algorithm. I can dig it up if you like to use it or >>> translate it into your language of choice. >>> >>> torsdag 3 september 2015 skrev Ramon : >>> >>>> I'm running into the same issue -- would like to use pandoc to insert >>>> numbers to section headings, including in txt output formats. Is that >>>> possible? >>>> >>>> Ramon >>>> >>>> On Monday, May 13, 2013 at 9:08:13 AM UTC-7, chandra wrote: >>>>> >>>>> Folks, >>>>> >>>>> I am trying to get HTML5, PDF, and plain text output from the same .md >>>>> source file with numbered sections in all three outputs. >>>>> >>>>> The bash script I am using is: >>>>> >>>>> --- >>>>> pandoc -f markdown -t html5 --standalone --number-sections $1.md -o >>>>> $1.html >>>>> pandoc -f markdown -t plain --standalone --number-sections $1.md -o >>>>> $1.txt >>>>> pandoc -f markdown -t latex --standalone --number-sections $1.md -o >>>>> $1.pdf >>>>> --- >>>>> >>>>> The HTML and PDF outputs are fine and feature numbered sections, but >>>>> there are no numbered sections in the plain text. I think this is by >>>>> design but would like to know if there is a workaround for getting >>>>> numbered sections in plain text as well. >>>>> >>>>> TIA. >>>>> >>>>> Chandra >>>>> >>>> -- >>>> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/pandoc-discuss/28ba6b1e-5f63-410f-9621-876096d0aa5c%40googlegroups.com >>>> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >> To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/c6a102ac-8bd8-49d9-a5eb-e01842c53867%40googlegroups.com >> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/97032a20-00b3-4f9e-880d-8d3f157887f2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1782_1917652664.1442021613622 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Heh -- happy to give it a shot at least. I'll likely j= ust try to get it running as is; if it adds numbering and can run as is wit= h a basic Perl install on OSX then it should be fairly straightforward I th= ink (hope!).

Thanks!

Ramon
On Tuesday, September 8, 2015 at 11:02:33 AM UTC-7, BPJ wrote:

Do you think you will manag= e without extensive documentation -- I.e. with commented code?

Den 7 sep 2015 17:25 skrev "Ramon" <= ;felc= ...@gmail.com>:
Yes that would be great -- thank you!

Ramon

On Friday, September 4, 2015 at 4:51:15 PM UTC-7, BPJ wrote:=
I wrote a perl=C2=A0filter once to = implement a custom numbering scheme. It's a=C2=A0rather simple algorith= m. I can dig it up if you like to use it or translate it into your language= of choice.

torsdag 3 september 2015 skrev Ramon <felc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
I'm running into the same issue -- would like to u= se pandoc to insert numbers to section headings, including in txt output fo= rmats. Is that possible?

--
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
pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.co= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-di= scuss/28ba6b1e-5f63-410f-9621-876096d0aa5c%40googlegroups.com= .
For more options, visit https://groups.google.com= /d/optout.

--
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 pandoc-discus...@googlegroups.com.
To post to this group, send email to pandoc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-dis= cuss/c6a102ac-8bd8-49d9-a5eb-e01842c53867%40googlegroups.com.=
For more options, visit https://groups.google.com/= d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/97032a20-00b3-4f9e-880d-8d3f157887f2%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1782_1917652664.1442021613622-- ------=_Part_1781_1275946649.1442021613621--