* how to force pagebreaks
@ 2019-09-13 19:04 Don Raikes
2019-09-13 19:14 ` Daniel Staal
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Don Raikes @ 2019-09-13 19:04 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]
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 "##".
How do I tell pandoc to force page breaks at each level-2 header?
--
Thanks, Donald
"As a leader, to be successful, is to help the people around you to be successful." - Kent Boucher
Accessibility, like security, is better when built-in from the beginning rather than bolted on at the end.
http://www.oracle.com/
Donald Raikes | Accessibility Specialist
Mobile: HYPERLINK "tel:+15202717608"+15202717608 | VOIP: HYPERLINK "tel:+15205744033"+15205744033
Oracle Accessibility Program Office
| Tucson, Arizona
http://www.oracle.com/commitment
Oracle is committed to developing practices and products that help protect 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.
[-- Attachment #2: Type: text/html, Size: 6024 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to force pagebreaks
2019-09-13 19:04 how to force pagebreaks Don Raikes
@ 2019-09-13 19:14 ` Daniel Staal
[not found] ` <5c11e555-df2d-2a01-af29-9bdb7bf67c84-Jdbf3xiKgS8@public.gmane.org>
2019-09-13 19:29 ` BP Jonsson
2020-02-05 14:18 ` Ignacio Jonatan Hernández López
2 siblings, 1 reply; 6+ messages in thread
From: Daniel Staal @ 2019-09-13 19:14 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
On 9/13/19 3:04 PM, Don Raikes wrote:
> 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 “##”.
>
> How do I tell pandoc to force page breaks at each level-2 header?
>
What's your output format? Markdown has no idea of 'pages', so a page
break in markdown doesn't really mean anything.
Daniel T. Staal
--
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
--
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/5c11e555-df2d-2a01-af29-9bdb7bf67c84%40usa.net.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to force pagebreaks
2019-09-13 19:04 how to force pagebreaks Don Raikes
2019-09-13 19:14 ` Daniel Staal
@ 2019-09-13 19:29 ` BP Jonsson
2020-02-05 14:18 ` Ignacio Jonatan Hernández López
2 siblings, 0 replies; 6+ messages in thread
From: BP Jonsson @ 2019-09-13 19:29 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1: Type: text/plain, Size: 2390 bytes --]
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 <DON.RAIKES-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> 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 “##”.
>
>
>
> How do I tell pandoc to force page breaks at each level-2 header?
>
>
>
> --
> Thanks, Donald
>
> “As a leader, to be successful, is to help the people around you to be
> successful.” – Kent Boucher
>
>
>
> Accessibility, like security, is better when built-in from the beginning
> rather than bolted on at the end.
>
>
> [image: Oracle] <http://www.oracle.com/>
> Donald Raikes | Accessibility Specialist
> Mobile: +15202717608 | VOIP: +15205744033
> Oracle Accessibility Program Office
> | Tucson, Arizona
>
> [image: Green Oracle] <http://www.oracle.com/commitment>
>
> Oracle is committed to developing practices and products that help protect
> 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
> <https://groups.google.com/d/msgid/pandoc-discuss/4fadd2ef-820b-4dc9-b7b7-97aab7232543%40default?utm_medium=email&utm_source=footer>
> .
>
--
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/CAFC_yuRdvfD7-Ds_KL4JyJBb8OKY5OpK9Zc1aVUS-6p5pYVxSw%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 6181 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to force pagebreaks
[not found] ` <5c11e555-df2d-2a01-af29-9bdb7bf67c84-Jdbf3xiKgS8@public.gmane.org>
@ 2019-09-17 13:47 ` Ghislain Vaillant
[not found] ` <26ece219-65a0-46ba-b10b-d3d8a7350c07-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Ghislain Vaillant @ 2019-09-17 13:47 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1144 bytes --]
Le vendredi 13 septembre 2019 21:14:32 UTC+2, Daniel Staal a écrit :
>
> On 9/13/19 3:04 PM, Don Raikes wrote:
> > 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 “##”.
> >
> > How do I tell pandoc to force page breaks at each level-2 header?
> >
>
> What's your output format? Markdown has no idea of 'pages', so a page
> break in markdown doesn't really mean anything.
>
For instance, assuming your target format is docx, you can add:
```{=openxml}
<w:p><w:r><w:br w:type="page"/></w:r></w:p>
```
wherever a page break is needed in the Markdown document.
--
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/26ece219-65a0-46ba-b10b-d3d8a7350c07%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2116 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to force pagebreaks
[not found] ` <26ece219-65a0-46ba-b10b-d3d8a7350c07-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-09-25 8:01 ` Agustín Martín
0 siblings, 0 replies; 6+ messages in thread
From: Agustín Martín @ 2019-09-25 8:01 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1410 bytes --]
Or if you always start a new *chapter* with a level 2 header ##, you could
define in your reference-doc that level 2 has a pagebreak before.
On Tuesday, September 17, 2019 at 3:47:29 PM UTC+2, Ghislain Vaillant wrote:
>
>
>
> Le vendredi 13 septembre 2019 21:14:32 UTC+2, Daniel Staal a écrit :
>>
>> On 9/13/19 3:04 PM, Don Raikes wrote:
>> > 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 “##”.
>> >
>> > How do I tell pandoc to force page breaks at each level-2 header?
>> >
>>
>> What's your output format? Markdown has no idea of 'pages', so a page
>> break in markdown doesn't really mean anything.
>>
>
> For instance, assuming your target format is docx, you can add:
>
> ```{=openxml}
> <w:p><w:r><w:br w:type="page"/></w:r></w:p>
> ```
>
> wherever a page break is needed in the Markdown document.
>
--
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/a9898e2d-ae59-4195-afeb-ff46b756e1a4%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2473 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to force pagebreaks
2019-09-13 19:04 how to force pagebreaks Don Raikes
2019-09-13 19:14 ` Daniel Staal
2019-09-13 19:29 ` BP Jonsson
@ 2020-02-05 14:18 ` Ignacio Jonatan Hernández López
2 siblings, 0 replies; 6+ messages in thread
From: Ignacio Jonatan Hernández López @ 2020-02-05 14:18 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1453 bytes --]
Use --epub-chapter-level=2
El viernes, 13 de septiembre de 2019, 21:04:55 (UTC+2), Don Raikes escribió:
>
> 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 “##”.
>
>
>
> How do I tell pandoc to force page breaks at each level-2 header?
>
>
>
> --
> Thanks, Donald
>
> “As a leader, to be successful, is to help the people around you to be
> successful.” – Kent Boucher
>
>
>
> Accessibility, like security, is better when built-in from the beginning
> rather than bolted on at the end.
>
>
> [image: Oracle] <http://www.oracle.com/>
> Donald Raikes | Accessibility Specialist
> Mobile: +15202717608 | VOIP: +15205744033
> Oracle Accessibility Program Office
> | Tucson, Arizona
>
> [image: Green Oracle] <http://www.oracle.com/commitment>
>
> Oracle is committed to developing practices and products that help protect
> 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/f93c5149-bdf9-476d-8d8f-3d0206efd776%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 5305 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-02-05 14:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-13 19:04 how to force pagebreaks Don Raikes
2019-09-13 19:14 ` Daniel Staal
[not found] ` <5c11e555-df2d-2a01-af29-9bdb7bf67c84-Jdbf3xiKgS8@public.gmane.org>
2019-09-17 13:47 ` Ghislain Vaillant
[not found] ` <26ece219-65a0-46ba-b10b-d3d8a7350c07-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-09-25 8:01 ` Agustín Martín
2019-09-13 19:29 ` BP Jonsson
2020-02-05 14:18 ` Ignacio Jonatan Hernández López
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).