Is there a way in latex to change the vertical thickness (height) of the line generated by the \overline
command?
\[
\overline{\overline{A \vee B}} = \overline{\overline{A} \wedge \overline{B}}
\]
math-moderules
Is there a way in latex to change the vertical thickness (height) of the line generated by the \overline
command?
\[
\overline{\overline{A \vee B}} = \overline{\overline{A} \wedge \overline{B}}
\]
Best Answer
TeX
The default rule thickness θ is 0.4pt in TeX. An
\overline
formula is set as\vbox
:θ is taken from fontdimen 8 of math font family 3. Example:
As can be seen, also the gap between the line and the formula changes with the thickness of the line (even with factor 3).
LuaTeX/LuaLaTeX
LuaTeX makes the parameters configurable:
\Umathoverbarkern
: the white space above the line\Umathoverbarrule
: line thickness\Umathoverbarvgap
: the gap between the line and the formulaThese values can be set for all eight math styles. LuaTeX also makes the cramped styles available as:
\crampeddisplaystyle
\crampedtextstyle
\crampedscriptstyle
\crampedscriptscriptstyle
In cramped styles, used for formulas below bars (
\overline
,\sqrt
, denominator in fractions), the exponents are set lower than usual.LuaLaTeX adds a prefix
luatex
to LuaTeX's new primitives (to avoid name clashes). The following example sets\Umathoverbarrule
in all eight styles: