You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Vincent Hennebert <vi...@enseeiht.fr> on 2006/03/21 15:20:58 UTC

Re: TeX vs XSL-FO (was: maximum document size)

> Now, now, Paul: TeX is wonderful. In fact, by preference, I use XSL only 
> to generate files that can be processed by TeX. The design limitations 
> in XSL-FO are incompatible with serious typography.

Which do you think are those design limitations? I see only two:
* no justify value for the display-align property (but Fop has the
   potential to implement it as an extension, if it doesn't already);
* before-float which are not very useful: they would typically be used
   for figures, which thus wouldn't be allowed to appear in the middle of
   a page (although it might be possible to use side-floats as a
   workaround).

That said, if I'm correct Fop already is capable of optimizing page
breaks, by considering page sequences as a whole (like paragraphs for
line-breaking). A thing that TeX will never be able to do.

I may have missed other serious limitations, however.

Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: TeX vs XSL-FO

Posted by FB...@wiley.com.
The major problem is that XSL-FO insulates the layout engine from the 
specific physical rendering. For example, you can't query the precise size 
of a heading and change the output based on the size and shape of the 
heading. But this is necessary if you want, say, a rule after a heading 
that is the width of the last line of that heading:
       Imagine a long heading with a short
       last line
       -----------

Of course, this is usually considered a feature: the same XSL-FO file can 
easily be rendered in various formats.

And this sort of detail is not necessary for technical manuals and 
business documents; but it become important when you're trying to meet the 
specification of layout artists who expect computers to be able to do 
everything a human can in laying out pages.

TeX can too optimize page sequences! One does have to be rather clever, of 
course -- and TeX's documentation is, only slightly unjustly, renowned for 
its perversity -- but in a former job, I got TeX to automatically lengthen 
or shorten spreads in order to minimize the number of widows and orphans 
in long chapters of text. I rather doubt XSL-FO would allow that, either 
....

And here's another: Can an XSL-FO formatter place floats alternately on 
the tops and bottoms of pages? That is, given a spread with one float on 
each page, most layout artists prefer the floats to align diagonally, one 
at the top and one at the bottom of the pages. Which goes where depends on 
where the floats were cited. If the first float was cited on a previous 
spread, then it goes at the top of the left-hand page; otherwise, it goes 
on the bottom.

Note that I refer to TeX, not LaTeX. These sorts of machinations are much 
more difficult on top of LaTeX.