I have a fraction whose denominator is a fraction again. I want to write the denominator in parantheses, but I have the feeling that the space is not really nice.
The lower term is nice from the spacing, but parantheses destroy it. I would love to see the whole fraction in the denominator a bit up. Is that possible? Here is my code:
\documentclass{article}
\usepackage[german, linesnumbered, boxruled]{algorithm2e}
\usepackage{algorithmic}
\begin{document}
\[
\lim\limits_{x\to\infty} \frac{\pi(x)}{\left(\frac{x}{\log(x)}\right)} = 1.
\]
\[
\lim\limits_{x\to\infty} \frac{\pi(x)}{\frac{x}{\log(x)}} = 1.
\]
\end{document}
\limits
into\[...\]
: is unnecessary? Use the packageamsmath
and\dfrac
in\left(\frac{x}{\log(x)}\right)
.