Fine-tuning math formulas
While LaTeX excels in typesetting formulas, there are instances where the layout may need enhancement. This recipe provides quick solutions to address such issues.
Getting ready
Let’s have a look at misalignment and spacing, issues with subscripts and superscripts 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 directly copy and paste it 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:
Figure 10.6 – Regular formulas with deficiencies
Although the LaTeX code is OK, you can see that several places could benefit from refinement...