Fine-tuning math formulas
Though LaTeX's typesetting of formulas is usually excellent, there are situations when the layout can require improvement. This recipe shows quick fixes.
Getting ready
Let's have a look at misalignment and spacing, issues with subscript and superscript that can easily occur:
Open the following sample document with your LaTeX editor. You can take it from the code archive provided with the book or copy and paste from the e-book:
\documentclass{article} \usepackage{dsfont} \begin{document} \[ \lim_{n\to\infty} \sup_{x\in\mathds{R}} f_n(x^2) < n \Big(\sum_{x\in\mathds{R}, n\in\mathds{N}} \big| f_n(x^2) \big| \Big) \] \end{document}
Compile, and take a look at the formula:
Although the LaTeX code is fine, you will notice that several points should be improved:
The subscripts below the operators on the left-hand side of the equation are vertically misaligned
The wide space around the sum symbol doesn't look good
The exponent 2 is a bit higher than the parentheses...