diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-11-19 20:15:06 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-11-19 20:15:06 +0100 |
commit | adc43c3c243ed95215af6fe02d71e393c178da23 (patch) | |
tree | aad04954cbfb0378c65fd2b98e7c924245aad372 /doc/context/sources/general/manuals/luatex/luatex-enhancements.tex | |
parent | 726a663be481042003566d4614266b940b5a0c91 (diff) | |
download | context-adc43c3c243ed95215af6fe02d71e393c178da23.tar.gz |
2015-11-19 19:15:00
Diffstat (limited to 'doc/context/sources/general/manuals/luatex/luatex-enhancements.tex')
-rw-r--r-- | doc/context/sources/general/manuals/luatex/luatex-enhancements.tex | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex b/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex index bc68a0db9..6dfaecaba 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex @@ -618,7 +618,7 @@ This new integer parameter allows you to alter the number of the box that will b used to store the page sent to the output routine. Its default value is 255, and the acceptable range is from 0 to 65535. -\section{\type {\fontid}} +\section{\type {\fontid} and \type {\setfontid}} \startsyntax \fontid\font @@ -640,6 +640,9 @@ order of loading fonts. For instance, when in \CONTEXT\ virtual math \UNICODE\ fonts are used, we can easily get over a hundred ids in use. Not all ids have to be bound to a real font, after all it's just a number. +The primitive \type {\setfontid} can be used to enable a font with the given id +(which of course needs to be a valid one). + \section{\type {\gleaders}} This type of leaders is anchored to the origin of the box to be shipped out. So @@ -647,6 +650,14 @@ they are like normal \type {\leaders} in that they align nicely, except that the alignment is based on the {\it largest\/} enclosing box instead of the {\it smallest\/}. The \type {g} stresses this global nature. +\section{\type {\nohrule} and \type {\novrule}} + +Because internally box resources and image resources are now stored as a special +kind of rule, we also introduced an empty rule variant. Because introducing a new +keyword can cause incompatibilities, two new primitives were introduced: \type +{\nohrule} and \type {\novrule}. These can be used to reserve space. This is +often more efficient than creating an empty box with fake dimensions). + \section{\type {\Uchar}} The expandable command \type {\Uchar} reads a number between~0 and $1{,}114{,}111$ @@ -660,6 +671,21 @@ within the constraints of the \type {\lefthyphenmin} and \type {\righthyphenmin} values (as stored in the glyph node). This primitive accepts a number and stores the value with the language. +\section{\type {\boundary} and \type {\noboundary}} + +The \type {\noboundary} commands used to inject a whatsit node but now injects a normal +node with type \type {boundary} and subtype~0. In addition you can say: + +\starttyping +x\boundary 123\relax y +\stoptyping + +This has the same effect but the subtype is now~1 and the value~123 is stored. The +traditional ligature builder still sees this as a cancel boundary directive but at the +\LUA\ end you can implement different behaviour. The added benefit of passing this +value is a side effect of the generalization. + + \section{Debugging} If \type {\tracingonline} is larger than~2, the node list display will also print @@ -700,6 +726,19 @@ optional parameters are not implemented for \type {\saveboxresource}. \pdfrefxform width 20mm height 10mm depth 5mm \pdflastxform \stoptyping +\section{\type {\outputmode} and \type {\draftmode}} + +The \type {\outputmode} variable tells \LUATEX\ what it has to produce: + +\starttabulate[|l|l|] +\NC \type {0} \NC \DVI\ code \NC \NR +\NC \type {1} \NC \PDF\ code \NC \NR +\stoptabulate + +The value of the \type {\draftmode} counter signals the backend if it should +output less. The \PDF\ backend accepts a value of~$1$, while the \DVI\ backend +ignores the value. + \section{File syntax} \LUATEX\ will accept a braced argument as a file name: @@ -723,6 +762,12 @@ expansion takes place inside the argument. This allows for embedded spaces, without the need for double quotes. Macro expansion takes place inside the argument. +\section{Writing to file} + +You can now open upto 127 files with \type {\openout}. When no file is open +writes will go to the console and log. As a consequence a system command is +no longer possible but one can use \type {os.execute} to do the same. + \stopchapter \stopcomponent |