
Ich habe Probleme mit dem Wurzelzeichen innerhalb eines Bruchs. Dieser Code
\documentclass{book}
\begin{document}
\begin{equation}
h_4 = \frac{\sqrt{1.5 \gamma_4 -3.5}-1}{18}
\end{equation}
\begin{equation}
h_3 = \frac{\gamma_3}{4+ \sqrt{6\gamma_4-14}}
\end{equation}
\end{document}
gibt dies zurück
Ist es nun nur bei mir so, oder liegt der horizontale Strich der Quadratwurzel sehr nahe an den Zahlen darunter und dem Bruchstrich darüber?
Ich finde dies etwas ungeschickt.
Gibt es eine Lösung? Oder ist das nur meine Paranoia? :P
Vielen Dank
Antwort1
Wenn es nicht zu groß ist, \strut
kann es eine Lösung sein (eine ursprüngliche, die zum Vergleich übrig bleibt). Laut Micos Vorschlag \mathstrut
ergibt sich ein Wert dazwischen. Sie können den vertikalen Abstand auch genau an die erwarteten Werte anpassen, z. B. mithilfe von \rule
.
\documentclass{book}
\newcommand\uprule{\rule{0mm}{1.9ex}} %shortcut macro
\begin{document}
\begin{equation}
h_4 = \frac{\sqrt{1.5 \gamma_4 -3.5}-1}{18}
\end{equation}
\begin{equation}
h_3 = \frac{\gamma_3}{4+ \sqrt{6\gamma_4-14}}
\end{equation}
strut
\begin{equation}
h_4 = \frac{\sqrt{\strut1.5 \gamma_4 -3.5}-1}{18}
\end{equation}
\begin{equation}
h_3 = \frac{\gamma_3}{4+ \sqrt{\strut6\gamma_4-14}}
\end{equation}
mathstrut
\begin{equation}
h_4 = \frac{\sqrt{\mathstrut1.5 \gamma_4 -3.5}-1}{18}
\end{equation}
\begin{equation}
h_3 = \frac{\gamma_3}{4+ \sqrt{\mathstrut6\gamma_4-14}}
\end{equation}
rule
\begin{equation}
h_4 = \frac{\sqrt{\uprule1.5 \gamma_4 -3.5}-1}{18}
\end{equation}
\begin{equation}
h_3 = \frac{\gamma_3}{4+ \sqrt{\uprule 6\gamma_4-14}}
\end{equation}
\end{document}
Antwort2
Mit \mathstrut
der Größe des Wurzelzeichens würde sich das Zeichen vergrößern. In diesen Fällen ist das Maskieren der Unterlänge wahrscheinlich die beste Lösung:
\documentclass{book}
\usepackage{amsmath}
\begin{document}
\begin{align}
h_4 &= \frac{\sqrt{1.5 \smash[b]{\gamma^{}_4} -3.5}-1}{18}
\\[1ex]
h_3 &= \frac{\gamma_3}{4+ \sqrt{6\smash[b]{\gamma^{}_4}-14}}
\end{align}
\end{document}
Das Gleiche gilt hier für \mathstrut
:
\begin{align}
h_4 &= \frac{\sqrt{\mathstrut 1.5 \gamma^{}_4 -3.5}-1}{18}
\\[1ex]
h_3 &= \frac{\gamma_3}{4+ \sqrt{\mathstrut 6 \gamma^{}_4-14}}
\end{align}