if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
DITA and XMetaL Discussion
»
Tables and page breaks
Pages:
1
« previous
next »
Print
Author
Topic: Tables and page breaks (Read 3923 times)
Bill H
Member
Posts: 9
Principal Technical Writer
Tables and page breaks
«
on:
December 12, 2008, 09:57:43 AM »
Am I the only person who looks at my DITA PDF output and says, "I sure wish I knew how to control those page breaks. Because ocassionally they look pretty bad." Especially within tables.
If I'm not mistaken, this can only be controlled by the style sheet, which I don't know how to do.
It seems pretty obvious that the DITA output to a PDF is pretty much a continuous flow from first to last page, and so you generally can't control over page breaks (although it's also obvious that the style sheet controls some breaks such as a break before a chapter start). Of course as DITA authors, we don't do formatting, but...
... what do people do?
I might add: We had a contractor who delved into XSL and made our output look pretty good, but breaks in tables are still a sore spot. Any enlightenment on this will be appreciated.
Logged
ghkrause
Member
Posts: 62
Re: Tables and page breaks
«
Reply #1 on:
December 12, 2008, 11:50:22 AM »
Are you able to word a rule when to add a page break?
"Ocassionally they look pretty bad" is difficult or impossible for a computer to execute.
Maybe: "Tables with more than 30 rows."
We do PDF with Framemaker. We currently discuss whether we add "newpage" in attribute otherprops of table to hardcode page breaks. But no decission, yet. Of course, if you like this idea you need to program that in XSL and XSL-FO.
Logged
Gunnar H. Krause, TechDoc Manager, Nuremberg Area, Germany
dcramer
Member
Posts: 120
Re: Tables and page breaks
«
Reply #2 on:
December 12, 2008, 03:37:47 PM »
The DocBook xsls support soft pages breaks (i.e. a conditional page break) in the format <?dbfo-need height="2in" ?>:
http://www.sagehill.net/docbookxsl/PageBreaking.html#SoftPageBreaks
Perhaps you could implement something similar or have the DITA generate DocBook and then generate pdf from the DocBook. I use DocBook and XEP and get decent page breaks by default with control of special situations when I need it.
David
Logged
David Cramer
Technical Writer
Motive, an Alcatel-Lucent Company
Bill H
Member
Posts: 9
Principal Technical Writer
Re: Tables and page breaks
«
Reply #3 on:
December 17, 2008, 03:39:53 PM »
The "word rules" I've thought of are more like when
not to
break vs. when to break. For example, in some cases we merge (or straddle) table cells--if a break occurs at that point it can look pretty bad. Also, sometimes we use a header cell that spans the width of the table--if that ends up by itself at the bottom of a page it looks bad. Of course "orphan rows" where you have say, two or fewer rows by themselves on a page look bad. So somehow I'd like to see rules that would say,
don't
allow breaks in these instances.
A hard-coded break would not work because a table in a topic might look fine in Book A, but in Book B, with a different flow, a forced break might not look right.
Logged
Bill H
Member
Posts: 9
Principal Technical Writer
Re: Tables and page breaks
«
Reply #4 on:
December 17, 2008, 03:43:27 PM »
I just read on of Sue-Laine's posts that makes me think maybe I should be asking this in the Yahoo DITA forum. It's not really XMetaL-specific.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1546
Re: Tables and page breaks
«
Reply #5 on:
December 18, 2008, 02:31:44 PM »
I agree. The types of issues you are having with tables sound to me like things you should request as improvements at the DITA OT project at SourceForge. It seems logical not to break at any of the locations you mention, ever, and there are XSL-FO settings for "keep together" that could (and should probably always) be applied here.
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...