TransWikia.com

Write text next to series of equalities

TeX - LaTeX Asked on January 21, 2021

https://proofwiki.org/wiki/Self-Inverse_Elements_Commute_iff_Product_is_Self-Inverse

How do I align descriptions of each equation like this? Using align puts the text to far to the right side of the page. Is there a preferred method for TeX users to label inequalities like this in general?

Align text like this

One Answer

As suggested by John Kormylo one can do this.

documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
begin{document}
    begin{align*}
        (xcirc y) circ (xcirc y) & = xcirc (ycirc x)circ y & &textnormal{$circ$ is color{blue}{associative}}
        & = x circ (xcirc y) circ y & &textnormal{$x$ and $y$ textcolor{blue}{commute}}
        & = (xcirc x) circ (y circ y) & &textnormal{$circ$ is textcolor{blue}{associative}}
        & = e_G circ e_G & & textnormal{$x$ and $y$ are textcolor{blue}{self-inverse}}
        & = e_G & & textnormal{Definition of textcolor{blue}{Identity Element}}
    end{align*}
end{document}

enter image description here

Correct answer by Sachchidanand Prasad on January 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP