From 7e3b7014c7818aa18edfbdc80596eaed8e8bdd86 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Fri, 8 May 2020 14:05:12 +0200 Subject: 2020-05-08 13:27:00 --- .../general/manuals/luametatex/luametatex-math.tex | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) (limited to 'doc/context/sources/general/manuals/luametatex/luametatex-math.tex') 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 -- cgit v1.2.3