Text FormattingFormatting text next to equations

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bxl508
Posts: 1
Joined: Wed Mar 30, 2022 4:54 am

Formatting text next to equations

Post by bxl508 »

\begin{equation}
X_{ij} =
\begin{cases}
1 & \text{nucleotide i and j are paired} \\
0 & \text{otherwise} \\
\end{cases}
\end{equation}

$\forall$ $1\le i < j \le n$


I currently have an equation with two cases in latex. I want to add a line of text to the right of this equation, centered. Does anyone know how to achieve this? It should look somethign like:

THIS ---
IS THE Want to Add a Line Here
EQUATION

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post Reply