Tagged Questions
1
vote
1answer
80 views
How to align middle-align text in a parbox?
I am trying to add a frame around a text which would be centered and vertically aligned to the middle of the box but I can only center the text.
What should I do to align the text to the middle of ...
5
votes
2answers
283 views
Highlight an equation within an align environment with color option
I'd really like to do exactly what's being asked for in this question: Highlight an equation within an align environment, but with the ability to change the color when I call it, so that I could have ...
5
votes
1answer
146 views
aboxed across multiple alignment
I would like to have the entire last line in a box, but when I compile, it only boxes the first equation and doesn't even print the second equation. Does anyone know how to fix this?
Here's my MWE.
...
2
votes
2answers
108 views
How do I get what's been printed by {align}?
I was trying to figure out an automatic answer to Sharing alignment between equations in two different items by way of typesetting an {align} inside a \vbox and then using \unvbox and \lastbox ...
3
votes
2answers
1k views
How to box two lines inside align*
I asked a similar question today except it was targeted at one particular line inside the align* environment. Now I want to enclose two lines. The failed attempt below makes my intention clear:
...
6
votes
2answers
1k views
\mbox does not draw a box inside align*
\mbox doesn't work inside align*:
\begin{document}
\usepackage{mhchem}
\begin{align*}
\ce{K_w} &= \ce{[H3O+][OH^-]} \\
-\log \ce{K_w} &= -\log ( \ce{[H3O+][OH^-]} ) \\
-\log ...
18
votes
2answers
3k views
Highlight an equation within an align environment
I would like to define a command that puts a red box around an equation with yellow highlighting. I have the basics working pretty well. What I am unable to figure out is:
How to keep the alignment ...