5
votes
1answer
128 views

Bounding box for each symbol in an equation

Is it possible to make LaTeX put a bounding box around each element in an equation, as in this file? I am aware of this question, but none of the solutions presented there, which does not require ...
11
votes
3answers
290 views

Graphical placeholder for “variables”

Question The image below exactly shows what I am trying to accomplish in LaTeX. Research Using \fbox (as Peter Grill suggested in this post): \documentclass[]{article} \usepackage{amsmath} ...
7
votes
1answer
180 views

What does $\mbox$ do?

The LaTeX wiki says it makes a box, but when I used it with \mbox{Cos} for example, it simply wrote "Cos" in the same way that writing Cos by itself would have done. What's the point of \mbox?
1
vote
2answers
99 views

How to put Text in two lines inside a box

\rightline{\fbox{LEMA 2: $(a^m-1,a^n-1)=a^d-1$\newline onde, $d=(m,n)$}} This command generates this I wanted to pass this onde d = (m, n) to the line below, but keeping within the box ... How ...
3
votes
2answers
194 views

Bad box because of algebraic expression

I'm getting a bad box in the following (I can see in the PDF that the expression is shooting past the right edge of page contents): \item If $\dfrac{a}{b} = \dfrac{c}{d} = \dfrac{e}{f} = \ldots$, ...
15
votes
3answers
411 views

Angle brackets with an underset arrow

I am trying to make a pair of angle brackets of variable height enclosing a main box along with a box beneath each bracket and an arrow of variable length between these lower boxes. Since I'm sure ...
8
votes
2answers
122 views

\setbox containing maths interferes with surrounding math mode in XeTeX

I encountered what might be a bug in XeTeX (but I would be glad to be proven wrong) while chasing a strange interaction between bytefield, unicode-math, and mathtools. In general, I do not expect a ...
1
vote
0answers
33 views

draw a box for part of a matrix in math environment [duplicate]

Possible Duplicate: Highlight elements in the matrix I have a big matrix as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \tilde{M}_{R+1,N}= ...
16
votes
3answers
2k views

Color box with rounded corners around a fragment of a formula

Is there any way in TeX to highlight some part of a formula with a box having colored background and rounded corners? At present, I need to export such formulas into an image, add those highlight ...
2
votes
1answer
404 views

Errors with multicolumn-equations inside tabular (inside tcolorbox)

I try to rebuild a fairly complicated math-table, and I'm almost satisfied with the result. The MWE actually compiles to the table I want, but with error messages. When I include the table in my real ...
8
votes
1answer
200 views

Why isn't a zero-width box in math mode aligned on the baseline?

I'd like to move equation labels into the margin for an article I'm working on, and the answers in Theorem Name/Numbering in Margin accomplish exactly what I'm looking for. Here is a small example: ...
3
votes
1answer
392 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 ...
2
votes
1answer
242 views

Creating a box framework for inside the formula enviroment

For a list of things to be used inside the formula enviroment, I want to create boxes stacked over each other. I basically want to write $$ A := "Box with lines like 'A is a number', 'A is bigger ...
7
votes
2answers
322 views

Why is there an overfull box with \[ … \]

\documentclass{article} \begin{document} \hsize 200pt %A wonderful serenity has taken possession of my entire soul, like these sweet %mornings of spring which I enjoy with my whole heart. \[ e=mc^2 ...
7
votes
3answers
645 views

A \boxed alternative with minimal spacing?

The following code comes from this post. The problem is that I would like a way to automate the size of the box so as to be very small with a few of spacing, but the following solution doesn't work ...
10
votes
6answers
936 views

A \boxed alternative with nicer spacing?

I like using \boxed to emphasize my answers in homework problem sets. However, whenever I use superscripts/exponents inside the box, the box becomes taller than it seems it should. This causes two ...
4
votes
2answers
2k 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
4k 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 ...
2
votes
2answers
548 views

Multi horizontal alignment in mathmode

I would like to realize an alignment like the following: formulaformula1 formulaformulaformula2 formula3 formula4 So I would like formulaformula1 and formulaformulaformula2 to ...
1
vote
1answer
475 views

Problem with mbox command

I have the following simple code which causes some problems, would be great if someone could point out what is going wrong here: \begin{compactenum} \item Perform addition over all bits \[ ...
7
votes
3answers
1k views

Extra space above boxed multi-line equation

Well, this question is not new. It was asked back in 2007 in texhax, and answered at the same time. However, I couldn't apply the patch as mentioned in the answer, so I decided to ask it here. ...
6
votes
2answers
2k views

How can the \textmu symbol be used in math mode and resize correctly?

I wish to use an upright mu character in various places in my document, and so I've put the following in my preamble: % textcomp, for its upright mu \usepackage{textcomp} % some user macros ...
9
votes
1answer
2k views

Text in subscript

For my text-in-mathmode needs in LaTeX, I use \mbox. However, it does not seem to behave well in subscripts. How can I write text that adjusts its height? $ 3 \mbox{dB} = f_{ 3 \mbox{dB} } $ ...