Give brackets across LaTeX lines the same size
LaTeX sizes left and right delimiters against the math between them. An alignment row ends one math group. If you close and reopen the delimiter group with invisible dots, LaTeX measures each visible bracket against a different stretch of math.
Keep a fraction and its continuation inside matching brackets
Input
\begin{align*}
H &= \left[\frac{p}{q} + r \right. \\
&\left. + s + t\right]
\end{align*}Output
\begin{align*}
H &= \biggl[\frac{p}{q} + r \\
& + s + t\biggr]
\end{align*}Use the left and right forms of the same explicit size command at the visible brackets. Then remove the placeholder delimiters between the rows. The explicit commands can size the two brackets independently of how tall each equation row is.
Check the result
- Compile the exported TEX file in the original project and inspect both visible brackets.
- Choose a larger size if a fraction or sum extends beyond the opening bracket. Choose a smaller size if the brackets distract from compact math.
- Check the indentation of the continuation row and the position of the equation number after recompiling.
Common problems
Flags and labels follow their original rows
The converter changes delimiter commands. Adjust the align points or numbering commands yourself if the same source also has a layout problem.
Invisible dots can have other uses
Review the reported line ranges if you use invisible delimiters for separate expressions. Make sure the proposed left and right brackets belong to the same expression.
Custom delimiter commands may require an edit
This tool reads explicit left, middle and right commands inside the supplied alignment block. Use the standard fixed-size commands manually when a project macro supplies the delimiters.
Using LaTeX Delimiter Repair
Open your TEX file
Include the complete alignment environment around the two brackets.
Pick a common delimiter size
Try a larger size when the first line contains a fraction or a sum.
Export and compile
Compare both brackets in your PDF and check that the width still fits the page.
Offline use
Open the tool once online and let it finish loading. Use the install option in your browser or Add to Home Screen on iPhone. Reopen the tool to process a new input offline.