Pages: 1
Print
Author Topic: page breaks between topics  (Read 10127 times)
gcrews
Member

Posts: 265


« on: March 22, 2010, 03:41:18 PM »

Forgive me for asking this specific question that’s probably been covered before but I can’t figure this out.  How do I remove the page breaks between topics in pdf output? I’ve been poking all around in the xslt’s and customization files and stuff for the last half hour, but with no luck. Thinking about it, there has got to be some simple way to remove them.  When you’re creating a book map for a physical book you would not want 20 topics that make up a chapter to be on individual pages.  Am I missing some DITA tagging to put topics together without page breaks between them?  OR is a chapter in a book usually just made up one on topic page?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: March 22, 2010, 06:04:56 PM »

I can't reproduce this with XMetaL Author Enterprise 6.0 using the "XMetaL Enhanced PDF via RenderX XEP" deliverable type.

Which version of XMetaL Author Enterprise are you running?
Which "deliverable type" are you using to produce your PDF?
Has the XSLT/XSL-FO been modified in a way that might alter this behavior?

It is possible that this has something to do with the map/topics you are using to produce the output, but the simplest test to see if you see the same thing as me (eliminating your files from the equation for the moment) would be to open the following sample map from the Help menu (which is a bookmap) and generate output using the "XMetaL Enhanced PDF via RenderX XEP" deliverable type:

Help > Samples > Evaluation Guide (DITA)

You should end up with a document containing 5 chapters that each have several topics within them (as well as some topics before and after those chapters plus the TOC, Index, etc). None of the topics within the chapters should have forced page breaks between them while the chapters themselves always begin on a new page.
Logged
gcrews
Member

Posts: 265


« Reply #2 on: March 23, 2010, 11:00:00 AM »

I tried the Evaluation Guide and low and behold there were no page breaks between the topics.  Turns out if you have a chapter tag but with no topic associated with it puts the sub topics on separate book pages.
Thank you for your help, I Knew there must have been some DITA element I was missing.


* pdf.jpg (210.16 KB, 1657x936 - viewed 1303 times.)
Logged
IF
Member

Posts: 80


« Reply #3 on: September 01, 2010, 05:51:44 PM »

I have a related issue. I am using a DITA map not a DITA bookmap. All topics start on separate pages in the PDF file. Is there a way to change this so that a new topic does not trigger a page break other than using a DITA bookmap and the chapter tag as described above ?

Using XMetal 6.0 on Windows 7. Deliverable type is XMetal Enhanced PDF via RenderX XEP

Logged
gcrews
Member

Posts: 265


« Reply #4 on: September 01, 2010, 06:00:00 PM »

Are you using topichead or topicgroup by any chance?
Logged
IF
Member

Posts: 80


« Reply #5 on: September 01, 2010, 06:03:38 PM »

No - This is my simple map:

<?xml version="1.0"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<!-- Created with XMetaL (http://www.xmetal.com) -->
<map id="map_FBCD272802344C1A9C99F6CB87DB1B2B"><title>Map_1</title>
<topicref format="dita" href="t_task1.xml" scope="local" navtitle="Task 1" type="task">
</topicref>
<topicref format="dita" href="t_task2.xml" scope="local" navtitle="Task 2" type="task">
</topicref>
<topicref format="dita" href="c_concept1.xml" scope="local" navtitle="concept 1" type="concept">
</topicref>
<topicref format="dita" href="c_concept2.xml" scope="local" navtitle="concept 2" type="concept">
</topicref>
</map>
Logged
gcrews
Member

Posts: 265


« Reply #6 on: September 01, 2010, 06:19:29 PM »

I think it’s doing that because they are all on the main level. If you have a main topicref with everything below that there are no breaks.
Logged
IF
Member

Posts: 80


« Reply #7 on: September 02, 2010, 08:59:56 AM »

You're right. I inserted my topics below a main topic and that solved the problem.
BTW, using a topic heading or a topic group did not get rid of the page breaks.
Thanks for the help.
Logged
IF
Member

Posts: 80


« Reply #8 on: August 23, 2011, 05:38:18 PM »

The template modifications described here work well: http://tech.groups.yahoo.com/group/dita-users/message/21935 (How to remove page breaks after level-1 topic in the output pdf )
Logged
iweyers
Member

Posts: 9


« Reply #9 on: February 14, 2013, 02:35:04 AM »

I want to achieve the same thing for my publication. I have a map with only first-level topics and I do not want a title page or page breaks, but have all content follow one another continueously. I followed the link to the tech.groups.yahoo.com post. But I cannot see any of the previews of the template and thus are unable to replicate your solution. Can you help me perhaps with a copy of your template?
Logged
IF
Member

Posts: 80


« Reply #10 on: February 14, 2013, 03:14:54 PM »

I did not implement this in the end. All I have are screen captures that I took at the time when I tried it. Not sure if they will help... Use at your own risk... Isabelle


* root-processing.png (137.72 KB, 624x482 - viewed 928 times.)

* xm_commons_mod.png (190.79 KB, 627x552 - viewed 885 times.)
Logged
iweyers
Member

Posts: 9


« Reply #11 on: February 22, 2013, 03:07:18 AM »

Thank you very much! This works perfectly :)
Logged
Pages: 1
Print
Jump to: