diff options
Diffstat (limited to 'tex/context/base/s-fnt-32.mkiv')
-rw-r--r-- | tex/context/base/s-fnt-32.mkiv | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tex/context/base/s-fnt-32.mkiv b/tex/context/base/s-fnt-32.mkiv new file mode 100644 index 000000000..ea55e9e74 --- /dev/null +++ b/tex/context/base/s-fnt-32.mkiv @@ -0,0 +1,60 @@ +%D \module +%D [ file=s-fnt-31, +%D version=2011.05.12, +%D title=\CONTEXT\ Style File, +%D subtitle=Unicode Math Scripts, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA / Hans Hagen \& Ton Otten}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +\startluacode + function fonts.tracers.mathscripts() + context.starttabulate { "|cT|c|cT|c|c|l|" } + for k, v in table.sortedpairs(table.merged(characters.superscripts,characters.subscripts)) do + local ck = utf.char(k) + local cv = utf.char(v) + local ss = characters.superscripts[k] and "^" or "_" + context.NC() context("U+%05X",k) + context.NC() context(ck) + context.NC() context("U+%05X",v) + context.NC() context(cv) + context.NC() context("$x%s = x%s%s$",ck,ss,cv) + context.NC() context(string.lower(characters.data[k].description)) + context.NC() context.NR() + end + context.stoptabulate() + end +\stopluacode + +\doifnotmode{demo}{\endinput} + +\setupbodyfont[dejavu,10pt] + +% \enabletrackers[math.normalizing] +% \setupbackend[export=yes] + +\setuplayout + [backspace=1cm, + topspace=1cm, + footer=1cm, + header=0cm, + height=middle, + width=middle] + +\starttext + +\startbuffer +$e=mc²$ ${}²$ $²$ $x²ᶞ$ $x⁽²⁺²⁼²⁺²⁾$ $x²⁺²⁼²⁺²$ $x₅²$ $x²₅²$ +\stopbuffer + +\typebuffer \getbuffer + +\startluacode + fonts.tracers.mathscripts() +\stopluacode + +\stoptext |