Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Do you mean underline as the highlight as said in the title? (Well, it is easy to change its color just using \color{} within a {}.) Commented Apr 25, 2022 at 4:32
  • Will \color{} maintain the alignment so that all the equal signs are under each other? Commented Apr 25, 2022 at 4:45
  • Here the last line you can use \color{red} i^7 & \color{red}=-i and it looks right. (No {} needed in align environment.) Commented Apr 25, 2022 at 4:48
  • I tried your code and it gives me red text. I just want to highlight the the answer i^7 = -i. Commented Apr 25, 2022 at 4:56
  • SOmething like this works fine for me. \documentclass{article} \usepackage{xcolor} \usepackage{mathtools} % or \usepackage{amsmath} \begin{document} \begin{align*} %-- i^7 &= 1 \times i^3 \\[5mm] %-- i^7 &= i^3 \\[5mm] %-- i^7 &= i^2 \times i \\[5mm] %-- i^7 &= -1 \times i \\[5mm] %-- i^7 &= -i \\[5mm] %-- \color{red} i^7 & \color{red} =-i \end{align*} \end{document} Result: image Commented Apr 25, 2022 at 4:57