I have complicated math expression:
Vertical spacing between text and fraction line is too small.
I tried to define new \frac
command (with amsmath
package) with adjustable vertical spaces. As you can see, the result is not satisfying:
\documentclass[a4paper,fleqn,leqno]{article}
\usepackage{polyglossia}
\usepackage{color,pifont,fontspec}
\usepackage[top=2.54cm,bottom=2.54cm,left=2.54cm,right=2.54cm]{geometry}
\usepackage{tikz,tikz-3dplot,graphicx}
\usepackage{mathtools,breqn,amsmath}
\usepackage[fontsize=12]{scrextend}
\usepackage{array,multirow}
\usepackage{pgfplots}
\DeclareMathSizes{12}{14}{14}{10}
\newcommand{\myfrac}[3][0pt]{\genfrac{}{}{}{}{\raisebox{#1}{$#2$}}{\raisebox{-#1}{$#3$}}}
\begin{document}
\begin{dmath*}[breakdepth={0},style={\mathindent=0pt},spread={10pt}]
{n=\myfrac[3pt]{\myfrac[3pt]{0,0625N+0,0215}{2}-0,043}{\myfrac[3pt]{\myfrac[3pt]{\scriptstyle 0,0625N+0,0215}{\scriptstyle 2}-0,043}{\myfrac[3pt]{\scriptstyle N}{\scriptstyle 2}-1}+0,0215}}
\end{dmath*}
\end{document}
How can I enlarge verticall spacing in whole fraction?
mathtools
loadsamsmath
(\RequirePackage
), so it's useless to load it again.