From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23419 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: how to force pagebreaks Date: Fri, 13 Sep 2019 21:29:14 +0200 Message-ID: References: <4fadd2ef-820b-4dc9-b7b7-97aab7232543@default> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000aa17ac05927445d7" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159239"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDIY76M674FRBFW457VQKGQEKHBIIHQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 13 21:29:30 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk1-f190.google.com ([209.85.221.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i8rG5-000fHJ-2f for gtp-pandoc-discuss@m.gmane.org; Fri, 13 Sep 2019 21:29:29 +0200 Original-Received: by mail-vk1-f190.google.com with SMTP id y187sf11059255vkf.2 for ; Fri, 13 Sep 2019 12:29:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568402967; cv=pass; d=google.com; s=arc-20160816; b=gy1L2BC+0BNcSq88YY+LxC3eR6pSlU3lma2vNpgkarlfyCoar+jujJqwef1mDPbWSS 0P3tRBvv6fnWuFmeGOT5ShtnHFgsmjP/7obH4d+X0emNEZhCKEO/sGoFYdLpnRgbn2Uw KHbTbj1QzDVqgnV+J8MZW9rFFZkqqtUwImo08dZIwxMOg9skWcb5LNqvYQc3W8IMN54U Y1QW4zughq7UB5w5bDYxzCE5IYZtrbAlfdFdc4jqG6aT/vxo/ym9Hv1KgjwJpHBniKQL Viehg1ID85KRriTM6YBxHycXbrFPP6aw8SWXCvPuff4ndAJe1wD5AKjMOOA9nOakSnv0 qyUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=5FrhDkRFtTGKm+90VSPrFkZmJAqRjr0W227/3bC5Piw=; b=TB3u3nzPGF5BBZ6f+NDSHOS+Durb93LfeYdwqVbecBPEh66RZTuxXRxIAxr0FOok/H ftyjs/s7UP3dHmZYy5zSIOgmOzDnZV5c887QznctEsPL6PxAj5wNhq6mf7JT7QyDld0R O5hqXkqhiCcT5DfmFpB6tki6k15fT/k2CeKp1wt5nYZfSRVoydkkuLkLFNJyRPgXjyGQ kTDwC9Dt1LyiJXeqiVWNG42wpDEplakouGUhho1I3UCBP2Vi6ZitNaGHjhppniFE/kZx Koz0Qv0WN3SrxI+U8EFhFab3LQfaMxM8i2SPS4f61ngRFXS0hnAAowQ2jGhZzF+3f3ID d4fA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k0Jp7cCo; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=5FrhDkRFtTGKm+90VSPrFkZmJAqRjr0W227/3bC5Piw=; b=hDTvXsd3EiuI+mZ3QlycKH/+PJLTPyyEp3wdshHFQMFOnpaUyXEGcWZVvVvF1cTd4Y xUJEb0KDQQmJ+ajEDLDJqAK3rya71GbbyZEazU4SlUyKLfs5aGkFNlkKq+pFSUHVg/PR nQTkx+fdPlp7vjt0jhsVo7mgJYB9UliyMxJEe783RcS6HkYKSPoqZXyPoK6K2x6qr09i 4ratXy/6HpY6OA7p14P7M13ry5JSj90NrD2ItdesfxnijaoCsH3/HPVvdQtrYekUuxOj trECjTr9m9L+oQyzQEoDqMB5AgFRboyHKGnwg3h+2zj/Au+8xKx/dZ1VPoh8OnzXAVn9 h5yg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=5FrhDkRFtTGKm+90VSPrFkZmJAqRjr0W227/3bC5Piw=; b=uQ32QihSazRw2ZNmeWtm8FWnhUaUy5Gpp/u5IJeHa9MWu314MwYmAUAjoS3sQ+6iAt VL3UfKQn74stZ+m56R49/jWuWc+CXhTY4V/3T4C2tV70eCL9P2waEJrUVYbnUKB82lr2 INSPK8MHSh9l/tdCn+6RpNn+9DGE4JE42CIC6/u12Mr10eZA9A3flDEPxjt0uMTaylZt 8G9VGIAcHIrT64Kzm9G8gl65aTwRNCwKIKEyiOS3bR+VizV6pqXqYlNlZKRHLxMp5nIs ooEMgPS+pak0YwvN0RVSftgWf9mwboA8HVLFUYkZJRRS6sQtyVjPnENKXcINsRYWWXJe yCoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=5FrhDkRFtTGKm+90VSPrFkZmJAqRjr0W227/3bC5Piw=; b=lwqwG2d0EiHp9CAuOSEf5LY/Opy8yIqMimxk1VnVb/BX5FLTke5PYSyRhsGNwWqHV+ vqzlcPV9uj7oBxp1Ao9pSlkhzgkZCqjzpwJGehQSr9bmlwAiDLxtMkksASDa/qLUve3c 9aQRx1yRca/sLo4gJqtslLZYvnKbZ01pEYervGcUp8YP2FToXg4hVfyWssTkroc4a0Pa Fdx55pK6gTkxaG0q7EMxQuhI765Xskl3rpfysPcbelyOOy5yfmPx0LXoq1CixFS5D73q xeTYOBM6/kWMeAhKOu6ErBlCm1ETK7ZEAi0Dvvm19GggcW2xqRGIGTD9R6tpXxzbhwDs g6hQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXFeWpaIobLsGO/SCFqTTbHadZq3APmroc9SkKCCW/TmqZyHkJ3 aPR/ceRoKtSZDGf7ftpcWSs= X-Google-Smtp-Source: APXvYqzcl/Q+1HamhKf8ufMzXD1WfNuYzUwrJTta36izCQR90R3PiT/Brs7FrLtkfqgw76JMNoRYtQ== X-Received: by 2002:a67:70c5:: with SMTP id l188mr26953885vsc.19.1568402967765; Fri, 13 Sep 2019 12:29:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:66c1:: with SMTP id a184ls3030678vsc.8.gmail; Fri, 13 Sep 2019 12:29:26 -0700 (PDT) X-Received: by 2002:a05:6102:14b:: with SMTP id a11mr21470850vsr.113.1568402966765; Fri, 13 Sep 2019 12:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568402966; cv=none; d=google.com; s=arc-20160816; b=j7xPElb+JRiJ57rB7sayIW8eSoLdbn5BY4YtwlTw9jOhpTYHKlhO1si+bG95VX9Dc2 A4wXKCx8FlS1bLdZKq3Wyy46mS/rMzU2MQ1IaKvL3DV4IblDNSQr/ceW/owUJT2DhwXh Z2415yMCb2pscn+39LOI4t4LucPjvfXyR1MsBsiIDnmeRGFFLMniT/vOaR6gYQcDl+Yo hV5FI9DlG03PE/XsWs4D/ETXqr8UDDY434wPzcSATzvPZDacZYoyZnTwTCNsGt5rhGmu c39Oq8Ok3bnzrcElwCZNAD5QPYDplD8OGIAbrKFVNAca2+9V7v6aSStaKADHiNE6XOur t8Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UegXL8YjtpVpd+vA9yzAIzqRROmx8jPRAOBmiEW9BUM=; b=HOx5R7flw4xcawRMSTzMOm6dtbdkYN29dvmzT21kxMmSFOTaVEhTOPxSfLTtFMuwOF 6DrLeozYQgW2pNEBXM0hD4BekUrroIAlNbgtxZL228a16HLPLMmpJOZU0fctBSU3BHuq nqnv267otIy5xKH96iNTYTDUtaqA2Rc+cMZA3PZSaWhlnnxCnnDPWqbch3/R9N6gFgfZ OKTbT/HjP4JpTL9yBJriZIUsP8T3T+2c3+sm/zj9eJnTlBFJTQ8yhYjxuNJ5r4xSlTvj 9R9bfjnSjwhriBJPxXB/BWCkdhb+11D0K5gA26+9Sa8hQ/G+Rp02thIiXwrvWsUcuk1Y JnYA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k0Jp7cCo; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com. [2607:f8b0:4864:20::429]) by gmr-mx.google.com with ESMTPS id d4si300781uam.0.2019.09.13.12.29.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Sep 2019 12:29:26 -0700 (PDT) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) client-ip=2607:f8b0:4864:20::429; Original-Received: by mail-pf1-x429.google.com with SMTP id d15so18665927pfo.10 for ; Fri, 13 Sep 2019 12:29:26 -0700 (PDT) X-Received: by 2002:a17:90b:948:: with SMTP id dw8mr7114275pjb.48.1568402966188; Fri, 13 Sep 2019 12:29:26 -0700 (PDT) In-Reply-To: <4fadd2ef-820b-4dc9-b7b7-97aab7232543@default> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k0Jp7cCo; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.org gmane.text.pandoc:23419 Archived-At: --000000000000aa17ac05927445d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable See here: https://github.com/pandoc/lua-filters/tree/master/pagebreak What you would need to do is to copy the appropriate code for your output format(s) there and write your own filter which inserts it before every level 2 heading. Please let me know if you need help. I can write that filter in ten minutes, but it's easier if I know which formats you are targeting. /bpj Den fre 13 sep. 2019 21:04Don Raikes skrev: > Hello, > > > > I am just getting started on my first pandoc project. I am breaking my > project into multiple markdown files each of which starts with a level-2 > header =E2=80=9C##=E2=80=9D. > > > > How do I tell pandoc to force page breaks at each level-2 header? > > > > -- > Thanks, Donald > > =E2=80=9CAs a leader, to be successful, is to help the people around you = to be > successful.=E2=80=9D =E2=80=93 Kent Boucher > > > > Accessibility, like security, is better when built-in from the beginning > rather than bolted on at the end. > > > [image: Oracle] > Donald Raikes | Accessibility Specialist > Mobile: +15202717608 | VOIP: +15205744033 > Oracle Accessibility Program Office > | Tucson, Arizona > > [image: Green Oracle] > > Oracle is committed to developing practices and products that help protec= t > the environment > > > > -- > 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/4fadd2ef-820b-4dc9-b7b7-= 97aab7232543%40default > > . > --=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/CAFC_yuRdvfD7-Ds_KL4JyJBb8OKY5OpK9Zc1aVUS-6p5pYVxSw%40mail.g= mail.com. --000000000000aa17ac05927445d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
See here:

https= ://github.com/pandoc/lua-filters/tree/master/pagebreak

What you would need to do is to copy= the appropriate code for your output format(s) there and write your own fi= lter which inserts it before every level 2 heading. Please let me know if y= ou need help. I can write that filter in ten minutes, but it's easier i= f I know which formats you are targeting.

=
/bpj


Den fre 13 sep. 201= 9 21:04Don Raikes <DON.RAIKES@o= racle.com> skrev:

Hello,

=C2=A0

I am just g= etting started on my first pandoc project. I am breaking my project into mu= ltiple markdown files each of which starts with a level-2 header =E2=80=9C#= #=E2=80=9D.

=C2=A0

How do I tell pandoc to force page breaks at each l= evel-2 header?

=C2=A0=

--
Thanks, Donald =

=E2=80=9CAs = a leader, to be successful, is to help the people around you to be successf= ul.=E2=80=9D =E2=80=93 Kent Boucher

=C2=A0

Acces= sibility, like security, is better when built-in from the beginning rather = than bolted on at the end.

<= span style=3D"font-size:12.0pt;font-family:"Times New Roman",seri= f">
3D"Oracle"
Donald Raikes | Accessibility Specialist
Mobile: +15202717608 | VOIP: +15205744033
Oracle Accessibility Program= Office
| Tucson, Arizona

3D"Green=

Oracle is committed to developing practi= ces and products that help protect the environment=

=C2=A0

--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4fadd2ef-820b-4dc9-b7b= 7-97aab7232543%40default.

--
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/CAFC_yuRdvfD7-Ds_KL4JyJBb8OKY5OpK9Zc1aVUS= -6p5pYVxSw%40mail.gmail.com.
--000000000000aa17ac05927445d7--