From 3c25716e01b7251f0f7504481692421a729e4b53 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sun, 19 Apr 2020 20:29:51 +0200 Subject: 2020-04-19 19:24:00 --- .../general/manuals/luametatex/luametatex-enhancements.tex | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex') diff --git a/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex b/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex index f295b3464..cc3788ee9 100644 --- a/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex +++ b/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex @@ -320,6 +320,7 @@ experimental. \topicindex {attributes} \topicindex {boxes} +\topicindex {vcentering} Nodes typically receive the list of attributes that is in effect when they are created. This moment can be quite asynchronous. For example: in paragraph @@ -343,7 +344,7 @@ already boxed material will have no effect. Keep in mind that this incompatibility is mostly due to the fact that separate specials and literals are a more unnatural approach to colors than attributes. -It is possible to fine-tune the list of attributes that are applied to a \type +It is possible to fine|-|tune the list of attributes that are applied to a \type {hbox}, \type {vbox} or \type {vtop} by the use of the keyword \type {attr}. The \type {attr} keyword(s) should come before a \type {to} or \type {spread}, if that is also specified. An example is: @@ -392,6 +393,13 @@ indexing the node (here we do that with \type {[a]}). Running this snippet gives Because some values are not set we need to apply the \type {tostring} function here so that we get the word \type {nil}. +A special kind of box is \prm {vcenter}. This one also can have attributes. When +one or more are set these plus the currently set attributes are bound to the +resulting box. In regular \TEX\ these centered boxes are only permitted in math +mode, but in \LUAMETATEX\ there is no error message and the box the height and +depth are equally divided. Of course in text mode there is no math axis related +offset applied. + \stopsubsection \stopsection @@ -1651,7 +1659,7 @@ difference. Watch your spaces. \stopsubsection -\startsubsection[title={Controling parshapes with \lpr {shapemode}}] +\startsubsection[title={Controlling parshapes with \lpr {shapemode}}] Another adaptation to the \ALEPH\ directional model is control over shapes driven by \prm {hangindent} and \prm {parshape}. This is controlled by a new parameter -- cgit v1.2.3