Re: CSS layout and line breaking
David Carlisle <[email protected]> Tue, 05 Mar 2013 09:23:16 +0000
| Newsgroups | gmane.comp.mozilla.devel.mathml |
|---|---|
| Organization | NAG |
| Message-ID | <[email protected]> |
On 05/03/2013 04:14, Karl Tomlinson wrote: > I haven't studied the layout algorithm of TeX. When I used TeX, I > think I only noticed automatic line-breaking for text paragraphs, and > used manual line breaks for equations. That is TeX's algorithm:-) However you can program automatic linebreaking _in_ TeX macros (just as the float placement algrithm is something programmed in tex macros not provided in the tex executable). What I meant was that in TeX to measure _any_ attribute of a sub-expression then you need to box it (or a temporary copy of it) and then you have height, depth and width available, so setting the padded width to be a function of the natural height is conceptually, and in any TeX implementation, no harder than setting the padded width to be a function of the natural width. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________