Highlighting Math Equations in LyX/LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter rynlee
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
rynlee
Messages
44
Reaction score
0
Hi All,

I was wondering if anyone is familiar with a nice way to box or highlight a math equation in LyX. LaTeX code would work as well.

Thanks,
Darin
 
Physics news on Phys.org
I don't know LyX, but since you are happy with LaTeX code...
You can use \framebox to box a whole paragraph, e.g.
Code:
\framebox{\[ E = mc^2. \]}

Or you can use \boxed to box just the equation (i.e. not the numbering etc.)
Code:
\[ \boxed{E = mc^2.} \]

For highlighting equations in a text, I would prefer the latter.
 
thanks! I tried that code in just LyX mathematical format and it worked perfectly, just use the \boxed command.

Hopefully this will help anyway else out there that looks for this type of thing.