Page-brake-before

22 views
Skip to first unread message

neeraj rana

unread,
Oct 2, 2023, 9:20:32 AM10/2/23
to dita-o...@googlegroups.com, Radu Coravu, Toshihiko Makita
Hi Everyone,

I need to apply page-break before only in chapter topics but when I apply this using the attribute set "topic.topic.title" this property applies on global topics (frontmatter, chapter, appendix).


Thanks in advance.

Thanks & Regards
Shailendra Rana


Anbu Ilavarasan

unread,
Oct 2, 2023, 2:06:11 PM10/2/23
to neeraj rana, dita-o...@googlegroups.com, Radu Coravu, Toshihiko Makita
Hi Neeraj,

Add these commands to your CSS file:

/*Pagebreak*/
*[outputclass ~= "page-break"] {
  page-break-after: always;
}

If you want to apply a page break in any place, just enter an empty Paragraph tag, go to Attributes > Outputclass > enter page-break

page_break_1.png

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/CAL2fUk%2BAvUGv8SU0MwKeMAnTFjY8sd5fom%2BAR03ZOWg5hg2ehw%40mail.gmail.com.


--
Regards
C. Anbu Ilavarasan

neeraj rana

unread,
Oct 3, 2023, 10:17:56 AM10/3/23
to Anbu Ilavarasan, dita-o...@googlegroups.com, Radu Coravu, Toshihiko Makita

Thanks for quick response.

I am working on client ditamap and here is no outputclass defind in topicref elements.

I need to add logic by using pdf2 scripts.

From: Anbu Ilavarasan <anbuilav...@gmail.com>
Sent: Monday, October 2, 2023 11:36:18 PM
To: neeraj rana <rananee...@gmail.com>
Cc: dita-o...@googlegroups.com <dita-o...@googlegroups.com>; Radu Coravu <raduc...@gmail.com>; Toshihiko Makita <toshihik...@gmail.com>
Subject: Re: [dita-ot] Page-brake-before
 

Anbu Ilavarasan

unread,
Oct 3, 2023, 10:49:32 AM10/3/23
to neeraj rana, dita-o...@googlegroups.com, Radu Coravu, Toshihiko Makita
Hi Neeraj,

If you want to apply a page break before each chapter, open the previous chapter > At the end of the topic, insert and select empty Paragraph tag >  Window > Show View > Attributes.

The Output class element should be there. Type page-break in outputclass element.

Jarno Elovirta

unread,
Oct 3, 2023, 11:06:31 AM10/3/23
to Anbu Ilavarasan, neeraj rana, dita-o...@googlegroups.com, Radu Coravu, Toshihiko Makita
Hi Anbu

You're answering a different question. What Neeraj needs is a solution for PDF2 that applies to all any DITA source without adding outputclasses for special cases.

Jarno

Reply all
Reply to author
Forward
0 new messages