Shrink long fractions

\documentclass{article}\pagestyle{empty}
\usepackage{mathtools,amssymb,amsfonts}
\begin{document}
\[
a = \frac{ \splitfrac{xxxxxxx}{+ xxxx} }{(1)}
+ \frac{ \splitdfrac{xxxxxxx}{+ xxxx} }{(2)}
+ \frac{ \begin{aligned} xxxxxxx \quad\\[-1ex] + xxxx \end{aligned} }{(3)} 
+ \frac{ \begin{split} xxxxxxx \quad\\[-1ex] + xxxx \end{split} }{(4)} 
+ \frac{ \substack{xxxxxxx \\ +xxxx} }{(5)}
\]
\end{document}

minimal 44.svg

  • use (1) in Obsidian
a = \frac{ \splitfrac{xxxxxxx}{+ xxxx} }{(1)}
  • use (2) in Obsidian
a = \frac{ \splitdfrac{xxxxxxx}{+ xxxx} }{(2)}
  • use (3) in Obsidian, VS Code, Quartz !inconsistent \begin{aligned}[b]
a = \frac{ \begin{aligned} xxxxxxx \quad\\[-1ex] + xxxx \end{aligned} }{(3)}
  • use (4) in Obsidian, VS Code, Quartz, Overleaf !warning to use aligned instead
a = + \frac{ \begin{split} xxxxxxx \quad\\[-1ex] + xxxx \end{split} }{(4)}
  • use (5) in Obsidian, VS Code, Quartz, Overleaf
a = \frac{ \substack{xxxxxxx \\ +xxxx} }{(5)}

Indent subsequent lines

\documentclass{article}\pagestyle{empty}
\usepackage{mathtools,amssymb,amsfonts}
\begin{document}
\begin{align*} \qquad&\hspace{-2em}
    R_1 =  \frac{\rho_i \,}{a_i \,\pi}\int_{0}^{h}\left(\frac{r_2-r_1}{h}y+r_1\right)^{-2}dy 
    = \frac{\rho_i \,}{a_i \,\pi}\left[-\frac{1}{\frac{r_2-r_1}{h}\left(\frac{r_2-r_1}{h}y+r_1\right)}\right]_0^h \\&
    = \frac{\rho_i \,}{a_i \,\pi}\left(\frac{h}{r_1\left(r_2-r_1\right)}-\frac{h}{r_2\left(r_2-r_1\right)}\right) +  \frac{\rho_i \,}{a_i \,\pi}\cdot\frac{h}{r_2-r_1}\left(\frac{r_2}{r_1r_2}-\frac{r_1}{r_1\ r_2}\right)
\end{align*}
\end{document}
  • Move equation left
\qquad&\hspace{-2em}
\MoveEqLeft{} % Mathjax only
  • Vertically aligned dots (Mathjax only)
\vdotswithin{=} \\&

Set operators as column divider

\documentclass{article}
\pagestyle{empty}
\usepackage{amsmath,amssymb,mathtools,aligned-overset,array}
\begin{document}
\[
\begin{array}{l@{\:=\:}*{5}{l@{\:+\:}}l}
y_1 & a_{11}x_1 & a_{12}x_2 & a_{13}x_3 & \dots & a_{1(n-1)}x_{n-1} & a_{1n}x_n \\
y_2 & a_{21}x_1 & a_{22}x_2 & a_{23}x_3 & \dots & a_{2(n-1)}x_{n-1} & a_{2n}x_n \\
\ \vdots &\ \vdots &\ \vdots &\ \vdots &\ \vdots &\ \vdots &\ \vdots\\
y_{n-1} & a_{(n-1)1}x_1 & a_{(n-1)2}x_2 & a_{(n-1)3}x_3 & \dots & a_{(n-1)(n-1)}x_{n-1} &
a_{(n-1)n}x_n\\
y_n & a_{n1}x_1 & a_{n2}x_2 & a_{n3}x_3 & \dots & a_{(n)(n-1)}x_{n-1} & a_{nn}x_n
\end{array}
\]
\end{document}

minimal 33.svg

More

\begin{align*}\MoveEqLeft{} \framebox[3em]{x} = \framebox[16em]{x} \\& = \begin{aligned}[t] \framebox[20em]{$\mathrm{x_1}$} \\ \framebox[7em]{$\mathrm{x_2}$} \end{aligned} \\& = \framebox[15em]{x} \end{align*}