Some time ago Taco Hoekwater proposed an approach for getting a cramped style for math expressions.
\newdimen\savedrulethickness
\def\docramped#1#2{
\savedrulethickness=\fontdimen8\textfont3
\hbox{$\fontdimen8\textfont3=0pt#1\overline{#2}$}
\fontdimen8\textfont3\savedrulethickness
}
\def\cramped{\mathpalette\docramped}
It works nice
$$
x' \cramped{a'}
$$
so that prime in a'
is positioned slightly lower then in the regular case x'
. However there is one bug here. The macros does not work for a \scriptscriptstyle
:
$$
\scriptscriptstyle
x' \cramped{a'}
$$
An excessive bar is displayed over symbols (\textstyle
is processed well). I find the code to be useful so I wonder could someone to fix the bug and explain me what the first #1
and second #2
arguments in \docramped
do? Their meaning? Also, I would not like to use some external packages for these purposes because the code above is elegant and very simple. Thanks beforehand.