0
votes
1answer
40 views

How to keep increasing counters for content that is (optionally) hidden?

I have a framework for creating exercises, where the content of the solution to each subproblem is fed into a \solution-macro, which only displays its content if a global boolean is set to true. What ...
5
votes
1answer
61 views

Tips on ways to mark important equations/statements in a thesis/paper

I'm writing my masters thesis and in it I have a set of examples for different chapters which I separate from the rest of the thesis by a mdframed-box. Furthermore, I have a set of equation that are ...
5
votes
2answers
99 views

Coloured shadowbox around equations?

I currently put some boxes around equations using: \newcommand*\eqbox[1]{ \definecolor{shadowcolor}{RGB}{0, 0, 102}\setlength\shadowsize{2pt}\shadowbox*{#1} } \eqbox{$1+1=2$} How to have the same ...
5
votes
1answer
132 views

Box or [ around multiple lines inside align

I have the following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{4} \begin{minipage}[h!]{0\linewidth} \text{Let:} \end{minipage} ...
5
votes
3answers
179 views

Equations in a box - table doesn't work

I want to put some limit equations in a table but all I get are errors such as "! Missing $ inserted." and "! You can't use `\eqno' in math mode.". Am I doing something wrong or is there another way ...
6
votes
1answer
470 views

Equation numbers for boxed multiline equations

I am attempting to set a box around multiline equations is LaTeX using the following code: \documentclass{article} \usepackage{empheq} \newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}} ...
3
votes
2answers
1k views

Coloured shadowed boxes around equations

When I want to highlight some important result, I traditionnally put my equations in boxes: \begin{equation} boxed{\Delta = b^2-4ac} \end{equation} I would like to have a more fancy thing: to be ...
7
votes
2answers
7k views

How can I box multiple aligned equations?

This question is two-fold. In my document, I currently have boxes around single equations like so: \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
5
votes
1answer
127 views

boxed equation but framed only some sides

I need to box part of an equation, but I need the frame to be open one side. In the following MWE I would need the left part of the equation not to have the right frame of the box and the right part ...
6
votes
1answer
367 views

How can I adjust the box around my equation?

I currently use the \boxed{} command to place boxes around my equations. However, I would like to have more control of the style of the box. Is there a way to do this? To take a specific example, ...
5
votes
2answers
619 views

hf-tikz doesn't box around equation

In TikZ based \boxed construct is causing pdflatex to hang it was suggested to use hf-tikz instead of manually using tikz. The documentation indicates that this package doesn't work properly for tall ...
3
votes
1answer
398 views

How to create a figure with math content

What's wrong with the following figure in the text? First, it says "amsmath: Unable to redefine math accent \vec." and then "Undefined control sequence" but neither is any helpful to me. It uses LLNCS ...
6
votes
2answers
1k 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
912 views

Equations in fancy boxes

I've checked the post here, where the package empheq is used for embedding equations into coloured boxes. With that idea, I wrote in my file the following: % in the preambule \usepackage{empheq} ...
21
votes
2answers
36k views

Attractive Boxed Equations

I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider \documentclass{article} ...
5
votes
1answer
2k views

Boxed equation with empheq: adding text outside box

I'm trying to have a box around my align environment, so I do the following: \usepackage{empheq} \begin{empheq}[box=\fbox]{align} equations \end{empheq} This works fine, but I would like to have ...
6
votes
3answers
7k views

Change border color of a \boxed equation?

I recently asked this question. The solution worked for me but I have a problem. cropped images are as small as possible. I would like to have a gif that bounds to borders of box of the equation. so I ...
19
votes
2answers
6k 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 ...
8
votes
1answer
697 views

How to centre my display math overfull hboxes?

I have an overfull hbox which I've decided to live with. Actually, several. However, since they're in \[…\], it would look better if they could remain centered, i.e. overflowing the margins equally ...
4
votes
2answers
237 views

Determining the height of the current line, especially in displayed math

Is there a way to determine the height of the current line? More specifically, after the hbox comprising the current line is finalized, I'd like to determine it's height (and perhaps also depth) and ...