I'd like to increase spacing between fraction line and numbers (numerator, denominator, and make the fraction more bold. I want same line thickness. One solution I've got from the website increases the line thickness too much, but does move the numbers down and up. Also, how can the fraction line length be increased?
\documentclass[12pt,addpoints]{exam}
\usepackage{amsmath}
%************needed for fraction line
\def\oover{\abovewithdelims..0.2cm}
%**********************
%*********needed to make change font size
\makeatletter
\newcommand\HUGE{\@setfontsize\Huge{40}{60}}
\makeatother
%*****************
\def\mathLarge#1{\mbox{\LARGE $#1$}}
\begin{document}
\hfill { \textbf{Mark: {{\HUGE $ 12 \oover 40 $}} }
\bf{{ \HUGE $ \genfrac {}{} {1.5pt}{} {a} {40}$}}
\end{document}
Best Answer
I don't know if I understood you correctly, but here \myfrac allows you to set both thickness and length and distance from the fractional line as you wish.
Addendum.
You might want to use
tikz
. You can adjust the parameters as you see fit. Note that the effects depend on the size of the font. Also, a line that is too thick (>2pt) greatly increases the distance to the fractional line.If you go in to see how
tikz
works in this case, you can replace the\path
command with\draw
.Note.
As for the distance from the fractional line according to @barbara beeton - this is a
TeX
error. See her comment to answer.