Skip to content

Instantly share code, notes, and snippets.

/comp.tex

Created Dec 6, 2015
Embed
What would you like to do?
Fun with XeTeX
\ifdefined\directlua
\input luaotfload.sty
\fi
\setbox0=\hbox{%
$-{\displaystyle1\over\displaystyle2}
= \displaystyle -{1\over 2}
= \textstyle -{\displaystyle1\over \displaystyle2}$%
}
\leavevmode \copy0 \the\wd0
\font\m="Latin Modern Math:script=math"
\font\ms="Latin Modern Math:script=math;+ssty=0"
\textfont0=\m
\scriptfont0=\ms
\setbox0=\hbox{%
$-{1\over 2}
= \displaystyle -{1\over 2}
= \textstyle -{1\over 2}$%
}
\leavevmode \copy0 \the\wd0
\bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.