All Questions
59
questions
0
votes
1
answer
71
views
Reduce size of integral box
I am trying to write an integral over quite a few factors. Everything put together will easily exceed one line, maybe even two. If I try to align everything with some align environment (be it align, ...
0
votes
1
answer
115
views
Why smash doesn't suppress the horizontal space of subscript with sum?
I try to understand the smash command, and I made a simple example :
\documentclass{article}
\usepackage{amsmath,amssymb, amsfonts, mathtools}
\begin{document}
\begin{equation*}
\sum_{\...
2
votes
4
answers
294
views
Specifying an array columnwise in math mode
I would like to do the same sort of thing as in the question How to create table column wise in LaTeX?, except that I want to do it in math mode.
To be precise: I want to enter an array of items of ...
2
votes
0
answers
189
views
How to define a math mode macro like mathtools' \Aboxed but colored for multiline equations in an align/align* environment without breaking alignment?
Before I get to the question and to not receive the answers I do not want, I want to point out that I mainly have 4 usage of equation or math-related boxes in LaTeX (For the question related to the ...
5
votes
2
answers
946
views
Boxes with text or numbers
I am trying to get a neater version of something like this
Following is what I have done to get this
\begin{equation*}
\begin{aligned}
\overbrace{\fbox{r}\fbox{r+1}\dots\fbox{2r-1}}_{Block-2}\ \ ...
0
votes
0
answers
29
views
xpatch + listing + realboxes + mathmode gives wrong spacing
I stumbled upon a problem that was quite hard to reproduce as it seems it required a very specific combination of several packages to make the code compile and yet produce the problem.
The problem is ...
10
votes
2
answers
285
views
Different position of indices after parentheses of the same height
Let us look at the following code:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\frac{\partial^2u}{\partial x^2} = \frac{\left(y-y_0\right)^2-(x-x_0)^2}{\left((x-x_0)^2+\left(y-...
2
votes
1
answer
171
views
How do I increase the spacing before and after the empheq environment (with tcolorbox)?
I want to ask a question on how to properly increase the spacing before and after the boxes set inside an empheq environment. Here's my MWE that I compiled using LuaLaTeX.
\documentclass{scrbook}[DIV=...
2
votes
1
answer
141
views
Achieve consistent symbol height independently from subscript and superscript
Consider the following:
\documentclass{minimal}
\usepackage{amsmath}
\begin{document}
\fbox{\(+\)}, \fbox{{\(+_L\)}}, \fbox{{\(+^R\)}}, \fbox{{\(+^R_L\)}}
\end{document}
it produces:
As you can ...
1
vote
1
answer
454
views
Creating a LaTeX box
I'm taking some notes for my math class and I would like to create a box like so to separate important points and examples so that it doesn't look so cluttered:
I'm not sure what it uses, but could ...
5
votes
1
answer
129
views
Mathematic font typesets differently in savebox environment
When I typeset the same equations using beamer inside a savebox environment, and inside the main document, the font used for the math equations comes out differently.
Here is a MWE showing the ...
3
votes
3
answers
2k
views
Issue using resizebox within equation and split environments
I have an equation below that is wrapped in an equation and split environment. Because the equation is long, it will run over the margins, so I used resizebox. According to this SO question I need to ...
0
votes
0
answers
128
views
vbox: splittable aligned equations? measuring true height after vsplit
I am learning low-level tex to write my own custom *latex macros. As an experiment I tried to put math equations (multiline or not) inside \vbox/ \hbox, measure their dimensions, and tried to split ...
5
votes
1
answer
186
views
Question about exercise 17.16 in TeXbook
The answer to the exercise is:
\def\sqr#1#2{{\vcenter{\vbox{
\hrule height.#2pt
\hbox{\vrule width.#2pt height#1pt \kern#1pt \vrule width.#2pt}
\hrule height.#2pt}}}}
\def\square{\mathchoice\...
11
votes
3
answers
1k
views
Squares for answer choice options and perfect alignment to mathematical answers
Since 2005, I have generally used this model to create multiple-choice tests for my students. I kindly ask you if there are packages or macros, or particular strategies to have squares with the ...