From 5e668aa418d6d082446e9369ae06625b50e49943 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Tue, 6 Jun 2017 13:57:28 +0200 Subject: 2017-06-06 13:28:00 --- doc/context/documents/general/manuals/luatex.pdf | Bin 1099068 -> 1095423 bytes doc/context/documents/general/qrcs/setup-cs.pdf | Bin 845018 -> 844945 bytes doc/context/documents/general/qrcs/setup-de.pdf | Bin 842943 -> 842881 bytes doc/context/documents/general/qrcs/setup-en.pdf | Bin 847214 -> 847693 bytes doc/context/documents/general/qrcs/setup-fr.pdf | Bin 841488 -> 841421 bytes doc/context/documents/general/qrcs/setup-it.pdf | Bin 843081 -> 843014 bytes doc/context/documents/general/qrcs/setup-nl.pdf | Bin 840035 -> 839976 bytes doc/context/documents/general/qrcs/setup-ro.pdf | Bin 840119 -> 840057 bytes .../sources/general/manuals/luatex/luatex-math.tex | 19 ++++++++++ .../general/manuals/luatex/luatex-nodes.tex | 42 +++++++++++++++++++-- 10 files changed, 58 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/context/documents/general/manuals/luatex.pdf b/doc/context/documents/general/manuals/luatex.pdf index db570e634..25a877887 100644 Binary files a/doc/context/documents/general/manuals/luatex.pdf and b/doc/context/documents/general/manuals/luatex.pdf differ diff --git a/doc/context/documents/general/qrcs/setup-cs.pdf b/doc/context/documents/general/qrcs/setup-cs.pdf index b60b34a12..8e0630bdc 100644 Binary files a/doc/context/documents/general/qrcs/setup-cs.pdf and b/doc/context/documents/general/qrcs/setup-cs.pdf differ diff --git a/doc/context/documents/general/qrcs/setup-de.pdf b/doc/context/documents/general/qrcs/setup-de.pdf index 8555bebb8..d065c0e5c 100644 Binary files a/doc/context/documents/general/qrcs/setup-de.pdf and b/doc/context/documents/general/qrcs/setup-de.pdf differ diff --git a/doc/context/documents/general/qrcs/setup-en.pdf b/doc/context/documents/general/qrcs/setup-en.pdf index 068bac6cb..d5f0fd8ac 100644 Binary files a/doc/context/documents/general/qrcs/setup-en.pdf and b/doc/context/documents/general/qrcs/setup-en.pdf differ diff --git a/doc/context/documents/general/qrcs/setup-fr.pdf b/doc/context/documents/general/qrcs/setup-fr.pdf index 576e2e9f5..dc7c313e9 100644 Binary files a/doc/context/documents/general/qrcs/setup-fr.pdf and b/doc/context/documents/general/qrcs/setup-fr.pdf differ diff --git a/doc/context/documents/general/qrcs/setup-it.pdf b/doc/context/documents/general/qrcs/setup-it.pdf index 64554d876..5fea7e0a3 100644 Binary files a/doc/context/documents/general/qrcs/setup-it.pdf and b/doc/context/documents/general/qrcs/setup-it.pdf differ diff --git a/doc/context/documents/general/qrcs/setup-nl.pdf b/doc/context/documents/general/qrcs/setup-nl.pdf index 4aa4dc2f6..ecdc53911 100644 Binary files a/doc/context/documents/general/qrcs/setup-nl.pdf and b/doc/context/documents/general/qrcs/setup-nl.pdf differ diff --git a/doc/context/documents/general/qrcs/setup-ro.pdf b/doc/context/documents/general/qrcs/setup-ro.pdf index a21665aff..deb5378e3 100644 Binary files a/doc/context/documents/general/qrcs/setup-ro.pdf and b/doc/context/documents/general/qrcs/setup-ro.pdf differ diff --git a/doc/context/sources/general/manuals/luatex/luatex-math.tex b/doc/context/sources/general/manuals/luatex/luatex-math.tex index 3c29d9609..c76d7ad5f 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-math.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-math.tex @@ -1051,6 +1051,25 @@ The \type {\Ustopmath} and \type {\Ustopdisplaymath} primitives check if the cur math mode is the correct one (inline vs.\ displayed), but you can freely intermix the four mathon|/|mathoff commands with explicit dollar sign(s). +\subsection{Script commands \type {\Unosuperscript} and \type {\Unosubscript}} + +These two commands result in super- and subscripts but with the current style (at the +time of rendering). So, + +\startbuffer[script] +$ + x\Usuperscript {1}\Usubscript {2} = + x\Unosuperscript{1}\Unosubscript{2} = + x\Usuperscript {1}\Unosubscript{2} = + x\Unosuperscript{1}\Usubscript {2} +$ +\stopbuffer + +\typebuffer + +results in \inlinebuffer[script]. + + \subsection{Allowed math commands in non-math modes} The commands \type {\mathchar}, and \type {\Umathchar} and control sequences that diff --git a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex index f600eeb2f..0947bb58b 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex @@ -516,6 +516,23 @@ associated with the simple math objects: ord, op, bin, rel, open, close, punct, inner, over, under, vcent. These all have the same fields, and they are combined into a single node type with separate subtypes for differentiation. +Some noads have an option field. The values in this bitset are common: + +\starttabulate[|lT|lT|] +\NC set \NC 0x08 \NC \NR +\NC internal \NC 0x00 + 0x08 \NC \NR +\NC internal \NC 0x01 + 0x08 \NC \NR +\NC axis \NC 0x02 + 0x08 \NC \NR +\NC no axis \NC 0x04 + 0x08 \NC \NR +\NC exact \NC 0x10 + 0x08 \NC \NR +\NC left \NC 0x11 + 0x08 \NC \NR +\NC middle \NC 0x12 + 0x08 \NC \NR +\NC right \NC 0x14 + 0x08 \NC \NR +\NC no sub script \NC 0x21 + 0x08 \NC \NR +\NC no super script \NC 0x22 + 0x08 \NC \NR +\NC no script \NC 0x23 + 0x08 \NC \NR +\stoptabulate + \subsubsubsection{simple nodes} \starttabulate[|lT|l|p|] @@ -525,6 +542,7 @@ into a single node type with separate subtypes for differentiation. \NC nucleus \NC kernel node \NC base \NC \NR \NC sub \NC kernel node \NC subscript \NC \NR \NC sup \NC kernel node \NC superscript \NC \NR +\NC options \NC number \NC bitset of rendering options \NC \NR \stoptabulate \subsubsubsection{accent nodes} @@ -547,9 +565,9 @@ into a single node type with separate subtypes for differentiation. \NC style \NC string \NC contains the style \NC \NR \stoptabulate -There are eight possibilities for the string value: one of \quote {display}, -\quote {text}, \quote {script}, or \quote {scriptscript}. Each of these can have -a trailing \type {'} to signify \quote {cramped} styles. +There are eight possibilities for the string value: one of \type {display}, +\type {text}, \type {script}, or \type {scriptscript}. Each of these can have +be prefixed by \type {cramped}. \subsubsubsection{choice nodes} @@ -1745,6 +1763,22 @@ font field or getter because it will resolve the family automatically for noads. node.family_font( fam) \stopfunctioncall +\subsubsection{\type {node.set_synctex_fields} and \type {node.get_synctex_fields}} + +You can set and query the synctex fields, a file number aka tag and a line +number, for a glue, kern, hlist, vlist, rule and math nodes as well as glyph +nodes (although this last one are not used in native synctex). + +\startfunctioncall +node.set_synctex_fields( f, l) + f, l = + node.get_synctex_fields( n) +\stopfunctioncall + +Of course you need to know what you're doing as no checking on sane values takes +place. Also, the synctex interpreter used in editors is rather peculiar and has +some assumptions (heuristics). + \section{Two access models} Deep down in \TEX\ a node has a number which is an numeric entry in a memory @@ -1983,6 +2017,8 @@ consistency. You can of course always define additional accessor using \type \NC \type {whatsitsubtypes} \NC \yes \NC \nop \NC \NR \NC \type {whatsits} \NC \yes \NC \nop \NC \NR \NC \type {write} \NC \yes \NC \yes \NC \NR +\NC \type {set_synctex_fields} \NC \yes \NC \yes \NC \NR +\NC \type {get_synctex_fields} \NC \yes \NC \yes \NC \NR \stoptabulate % \stopcolumns -- cgit v1.2.3