From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29677 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: How is --toc supposed to work with ms output? Date: Sat, 4 Dec 2021 11:10:02 -0800 (PST) Message-ID: <087f1f46-16b4-480b-ad78-0b50cabac705n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3852_894708360.1638645002060" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12094"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX2TPNZVQNBBC72V2GQMGQESNXGWZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 04 20:10:06 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mtaQ9-0002yV-Ao for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 04 Dec 2021 20:10:05 +0100 Original-Received: by mail-oo1-f61.google.com with SMTP id y123-20020a4a4581000000b002c282d3ab49sf4850002ooa.14 for ; Sat, 04 Dec 2021 11:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=bCEmWCsB1OguQd/vmgJSTmyn9dXBFMHlYGldeJPOkCs=; b=PNWS1K9EnhK4WeVjqshM86sJf3+pH6I/XnhY+fePqJG+JEI5f9GPXpYviiTZ9y+ifi UC85WU5bPtCMCBYAapOm/3Mz7AWZTm95Lsb8ROO2PlxqRpdHVH3rFjbOmPPvCPu085xD hcCndFOBktw6MvvFEr/XrfI66EHv6jeJPZN8D9NrTq2xMev3AIfQcaCa6FjYMjl91+/Q Wsuj4G8BGd/aJY6H5hEF/1wHT4cH6+OPPu2s1164f6hVFngIDplGlTaJa0lxBWL03DT0 3ig3oTisI7RB85O/ExkEPd/3qvzHiXlAMlzTLSFsxoX+Yl66baQP8rE86RnwohRiUEoE x7Pg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=bCEmWCsB1OguQd/vmgJSTmyn9dXBFMHlYGldeJPOkCs=; b=EHaKqx0eytADNghj8Xxz789cFXcoUGScdKvJKEKc9+wzDC5GNTzOjpAlMv8K01Oje2 yzFwhjWZYQ1XVgUqbFcSbpGcqltE3KUJoZKDiG2Xe1Ox6L4TTZsr9AmMaXh8lB6vDY+D CkxfUKB1k/LICvrF7iPmAnpC9pcxAk2SqtpH4LNzyDBlgE194YPv1WPgHZ7EdI0wdgwW r3LPF/MsxjLHB2X59sxh7LDBDSWuAAyTwKjS3ZCuZY4nnhjHpXCROwl/+mBpczfkFdVP EY1zqPX3xG7/Rz1s4GKlMB7b20qWeBD8x5aUUReL/uW0mdIZt01uJce2HM0nKb45oRyv SVvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=bCEmWCsB1OguQd/vmgJSTmyn9dXBFMHlYGldeJPOkCs=; b=EDVIo52SohnFqXxDcqjn9CRxGnykxCj9N9UrvON4HSpJ/YWT+POHieBf/qsCZxkW5D hJIm88auNmozFEOlBk6GF3MLMJ9GkEjicZ9mX7ubu3Bsla6/f+RJnwLqhogrOpAlagnY lnbsbB8GZl/m0L0BSwhmhIC7YM5i2nkTjjuVY7Vx1MwrAX/VBISW/ZWYruhCqB3J5DfW kgQOrcmGu0CP2NWUJN92+5Bkrs+yQUPB/zQNjG0P3F2uBMM98j9OXT4x3vRnU/AghId1 grLvlqaEClTDps3wNQemcmHZ1+E7GkmNs7LcQVcIE/noV3WPTqx5E9cQk/9BWlwWNj9B 8S5w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5338Laf4dzEXb4To/ouNgqIHPiBzIucyQtR4V612XXOnVUc+mNwn DaBfgiFSg06c9VbYPFyJQoo= X-Google-Smtp-Source: ABdhPJzq2PvUbGNzRjSclMhfia/Ia1POiybrJtnG4aZB/bzHERPKULOkWCuDBsJbh/ApgtUlvjo4aA== X-Received: by 2002:a05:6830:1014:: with SMTP id a20mr22446889otp.63.1638645004212; Sat, 04 Dec 2021 11:10:04 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:ac94:: with SMTP id v142ls4821912oie.4.gmail; Sat, 04 Dec 2021 11:10:02 -0800 (PST) X-Received: by 2002:aca:1b08:: with SMTP id b8mr15543877oib.148.1638645002727; Sat, 04 Dec 2021 11:10:02 -0800 (PST) In-Reply-To: X-Original-Sender: jlrn77-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:29677 Archived-At: ------=_Part_3852_894708360.1638645002060 Content-Type: multipart/alternative; boundary="----=_Part_3853_592496566.1638645002060" ------=_Part_3853_592496566.1638645002060 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable More on this topic: if I add=20 include-after:=20 - | ```{=3Dms} .TC ``` to my YAML metadata, the TOC still comes at first, not at last, contrary to= =20 what is stated in groff's documentation. A bug here, maybe? Il giorno mercoled=C3=AC 5 agosto 2020 alle 12:52:51 UTC-5 tkur...-Re5JQEeQqe8@public.gmane.org= m ha=20 scritto: > Well, it looks like I left off the attached PDF. Here it is. > > On Tue, Aug 4, 2020 at 10:36 PM T. Kurt Bond wrote: > >> If I process the following RST file >> Try out Table of Contents for ms Output >> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> >> Section One >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> This is a paragraph. >> >> Section One.One >> --------------- >> >> This is a paragraph. >> >> Section One.Two >> --------------- >> >> This is a paragraph. >> >> Section Two >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> This is a paragraph. >> with the command >> pandoc -s --toc -r rst -w ms --output=3Dtrytoc.ms.pdf trytoc.rst >> I get the attached PDF file. It has a blank page numbered 1, a page wit= h=20 >> the table of contents, numbered one, and then the page with the sections= . =20 >> The PDF outline has the table of contents entries to click on. >> >> But what is with that blank first page? And why are the blank page and= =20 >> the table of contents contents page both numbered 1? >> --=20 >> T. Kurt Bond, tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io >> > > > --=20 > T. Kurt Bond, tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io > --=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/087f1f46-16b4-480b-ad78-0b50cabac705n%40googlegroups.com. ------=_Part_3853_592496566.1638645002060 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable More on this topic: if I add 

include-after: <= /div>
 - |
   ```{=3Dms}
  &nbs= p;.TC
   ```

to my YAML metada= ta, the TOC still comes at first, not at last, contrary to what is stated i= n groff's documentation. A bug here, maybe?


I= l giorno mercoled=C3=AC 5 agosto 2020 alle 12:52:51 UTC-5 tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= ha scritto:
=
Well, it looks like I left off the attached PDF.=C2=A0 Her= e it is.

On Tue, Aug 4, 2020 at 10:36 PM T. Kurt Bond <tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
If I proces= s the following RST file
Try out Table of Contents for ms Output
@@@@@= @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Section One
=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D

This is a paragraph.

Section One.One
-----= ----------

This is a paragraph.

Section One.Two
----------= -----

This is a paragraph.

Section Two
=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D

This is a paragraph.
with the comma= nd
pandoc -s --toc -r rst -w ms --outp= ut=3Dtrytoc.ms.pdf trytoc.rst
I get the attached PDF file.=C2=A0 = It has a blank page numbered 1, a page with the table of contents, numbered= one, and then the page with the sections.=C2=A0 The PDF outline has the ta= ble of contents entries to click on.

But what is w= ith that blank first page?=C2=A0 And why are the blank page and the table o= f contents contents page both numbered 1?


--

--
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/087f1f46-16b4-480b-ad78-0b50cabac705n%40googlegroups.= com.
------=_Part_3853_592496566.1638645002060-- ------=_Part_3852_894708360.1638645002060--