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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply