Math & Science ⇒ Grouping terms in an equation
Grouping terms in an equation
Is there a way of grouping terms in an equation using a curly bracket underneath the terms. Googling and searching the forums has yielded no results, I guess because I don't know the correct name for what I'm doing here.
The specific example (Hamiltonian partitioning) is as follows,
H_total = H_MM + H_LL + H_RR + H_ML + H_MR
...............|-----------------------|....|---------------|
...........................H_0....................V
H_total = H_0 + V
With the dots as whitespace and |-----| replaced by a curly bracket.
Thanks in advance for your help.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Grouping terms in an equation
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\mathcal{H}_\text{total} &= \underbrace{\mathcal{H}_\text{MM} + \mathcal{H}_\text{LL} + \mathcal{H}_\text{RR}}_{\mathcal{H}_0} + \underbrace{\mathcal{H}_\text{ML} + \mathcal{H}_\text{MR}}_{V} \\
\mathcal{H}_\text{total} &= \mathcal{H}_0 + V
\end{align*}
\end{document}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10