diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-05-08 14:05:12 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-05-08 14:05:12 +0200 |
commit | 7e3b7014c7818aa18edfbdc80596eaed8e8bdd86 (patch) | |
tree | 333a251e16f0dae68b04b17b439b0152be5e1b15 /doc | |
parent | 352a2686282e95b2869728f8f321688f7e216d80 (diff) | |
download | context-7e3b7014c7818aa18edfbdc80596eaed8e8bdd86.tar.gz |
2020-05-08 13:27:00
Diffstat (limited to 'doc')
-rw-r--r-- | doc/context/sources/general/manuals/luametatex/luametatex-math.tex | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/luametatex/luametatex-math.tex b/doc/context/sources/general/manuals/luametatex/luametatex-math.tex index 3e7ea1840..e66993f17 100644 --- a/doc/context/sources/general/manuals/luametatex/luametatex-math.tex +++ b/doc/context/sources/general/manuals/luametatex/luametatex-math.tex @@ -1692,6 +1692,7 @@ mode parameter. The default value is~1. \LL \stoptabulate + \subsection {Less Tracing} \topicindex {math+tracing} @@ -1702,6 +1703,75 @@ to limit tracing. Only when \type {tracingassigns} and|/|or \type \stopsection +\startsection[title={Experiments}] + +There are a couple of experimental features. They will stay but details might +change, for instance more control over spacing. We just show some examples and +let your imagination work it out. First we have prescripts: + +\subsection {Prescripts with \lpr {Usuperprescript} and {Usubprescript}} + +\startbuffer +\hbox{$ + {\tf X}^1_2^^3__4 \quad + {\tf X}^1 ^^3 \quad + {\tf X} _1 __4 \quad + {\tf X} ^^3 \quad + {\tf X} __4 \quad + {\tf X}^^3 __4 +$} +\stopbuffer + +\typebuffer + +The question is: are these double super and subscript triggers the way to go? + +\blank \getbuffer \blank + +The more explicit commands are: + +\startbuffer +\hbox{$ +{\tf X}\Usuperscript{1} \quad +{\tf X} \Usubscript{2} \quad +{\tf X}\Usuperscript{1}\Usubscript{2} \quad +{\tf X}\Usuperscript{1} \Usuperprescript{3} \quad +{\tf X} \Usubscript{2} \Usubprescript{4}\quad +{\tf X}\Usuperscript{1}\Usubscript{2}\Usuperprescript{3}\Usubprescript{4}\quad +{\tf X} \Usuperprescript{3} \quad +{\tf X} \Usubprescript{4}\quad +{\tf X} \Usuperprescript{3}\Usubprescript{4} +$} +\stopbuffer + +\typebuffer + +These more verbose triggers can be used to build interfaces: + +\blank \getbuffer \blank + +\subsection {Prescripts with \lpr {Usuperprescript} and {Usubprescript}} + +You can change the class of a math character on the fly: + +\startbuffer +$x\mathopen {!}+123+\mathclose {!}x$ +$x\Umathclass4 ! +123+\Umathclass5 ! x$ +$x ! +123+ ! x$ +$x\mathclose {!}+123+\mathopen {!}x$ +$x\Umathclass5 ! +123+\Umathclass4 ! x$ +\stopbuffer + +\typebuffer + +Watch how the spacing changes: + +\startlines +\getbuffer +\stoplines + +\stopsection + \stopchapter \stopcomponent |