1

How show all the formulas with displaystyle,avoinding typing repeteadly \displaystyle?

enter image description here

\documentclass[10pt,a4paper]{article}


\begin{document}
Without any \emph{displaystyle}
$
  \frac{5+\frac{2}{5+\frac{2}{5}}}{5-\frac{2}{5-\frac{2}{5}}}
$

With any \emph{displaystyle}
$
  \frac{5+\displaystyle{\frac{2}{5+\frac{2}{5}}}}{\displaystyle{5-\frac{2}{5-\frac{2}{5}}}}
$

With more \emph{displaystyle}
$\displaystyle{
  \frac{5+\displaystyle{\frac{2}{5+\frac{2}{5}}}}{\displaystyle{5-\frac{2}{5-\frac{2}{5}}}}
}$

\textbf{How to use displaystyle in all the expresion withou typing displaystyle repeteadly in all the fractions/sqrt?}

\end{document}
4
  • 5
    \everymath could be your friend here, but I doubt that it is very reasonable to use \displaystyle everywhere – user31729 Oct 15 '17 at 15:13
  • You could as well use \DeclareMathSizes{10pt}{10pt}{10pt}{10pt} – Skillmon Oct 15 '17 at 15:41
  • 3
    Why don't you use \dfrac or \cfrac? – Bernard Oct 15 '17 at 16:38
  • why are you using inline math not display math, you wouldn't need \displaystyle at all if you set this as a math display. – David Carlisle Oct 15 '17 at 19:13