Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2015 15:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/75e5b006effae7d3b860 to your computer and use it in GitHub Desktop.
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