On 3/24/2018 6:13 AM, Philip Taylor (RHUoL) wrote:
maxwell wrote:
I'm just finishing up a project that involved typesetting text in
several languages, while outputting an XML file that defined in X/Y
coordinates the position and size of the bounding box surrounding each
line of text in the PDF
maxwell wrote:
I'm
just finishing up a project that involved typesetting text in
several languages, while outputting an XML file that defined in
X/Y coordinates the position and size of the bounding box
surrounding each line of text in the
The format is described in the TeXBook but in short
.\hbox(7.71974+2.25569)x360.0,
is a box of height 7.71974pt, depth 2.25569 and width 360.0pt nested
one level inside some other box
\hbox(0.0+0.0)x17.0
is a box of height and depth 0 and width 17pt (it will be the
indentation box) that is
On 2018-03-23 16:44, David Carlisle wrote:
there are several ways to get the box output in classic tex (or xetex)
although perhaps the easiest (and safest in terms of not accidentally
affecting the typeset positions) is to use \showoutput so all boxes
are (somewhat verbosely) logged in the log f
there are several ways to get the box output in classic tex (or xetex)
although perhaps the easiest (and safest in terms of not accidentally
affecting the typeset positions) is to use \showoutput so all boxes
are (somewhat verbosely) logged in the log file, and then parse that
with perl or python
I'm just finishing up a project that involved typesetting text in
several languages, while outputting an XML file that defined in X/Y
coordinates the position and size of the bounding box surrounding each
line of text in the PDF. I used Luatex, because that made it possible
to call Lua from Lu