1) How can we control the vertical alignment of this fraction line?
2) I'm also looking for a way to make the ends of the fraction line round.
I know doing these will cause problems. I'm just wondering how to do something like this.
The font parameters 8,9,10,11,12 determine the position of numerator and denominator see
What do different \fontdimen<num> mean
You can not draw the rule using different style unless you abandon the TeX fraction primitives alltogether and draw the rule by hand using tikz or similar. (the rule thickness is however settable).
\documentclass{article}
\begin{document}
$\frac{1}{2}$
\quad
\fontdimen9\textfont2=10pt
$\frac{1}{2}$
\end{document}
\frac{\rule[10pt]{0pt}20pt}1}{2} or whatever rule you want to force some padding
– David Carlisle
Oct 15 '21 at 08:19
-symbol is placed on the math axis, and the=symbol straddles the math axis. That way, in the expression\frac{1}{2}-\frac{1}{3}, the fraction lines and the-symbol are all on the same level. Any other positioning choice would look both weird and wrong. Are you thus asking how to shift the entire math axis? – Mico Oct 15 '21 at 06:55