All Questions
29
questions
1
vote
1
answer
64
views
How to put a text inside a box within a boxed environment?
I have the following LaTeX code, which makes use of a boxed environment. I want to put some of the text within a dashed and normal box, but it throws an error. Any ideas how to achieve this?
\...
-1
votes
2
answers
85
views
How do you get a black-colored border around a bounding box? [closed]
Below, we see an example of the \bbox command.
$$ \bbox[5px,border:2px solid red]
{
e^x=\lim_{n\to\infty} \left( 1+\frac{x}{n} \right)^n
\qquad (2)
}
$$
Note that the color for the borders of the ...
0
votes
0
answers
43
views
If you were the word "box" and a word beginning with a letter "m" to describe `\mbox` what might your English phrase be?
Note that English phrase "mathematics blackboard bold" is an example of a super-sequence of \mathbb which has the same meaning as \mathbb.
If you were the word "box" and a word ...
0
votes
1
answer
32
views
Row of frameboxes overflows the margin by one box
Why, when I have a row of \frameboxes, does pdflatex try to fit one too many on a line, overflowing the margin? In the example below I would expect the first line to have three boxes and the second ...
2
votes
1
answer
93
views
negative glue and hbox of same size do not cancel each other out
This code:
\hskip-1cm \hbox to 1cm{\hfil}\hbox to \hsize{\hfil Hello World}
\bye
yields
Overfull \hbox (20.0pt too wide) in paragraph at lines 1--2
Why is that? I would assume that applying negative ...
0
votes
1
answer
561
views
Box design tikz
I found this box, but didn't know the design. Can you tell me which library or packages are used to design it. Thanks
0
votes
0
answers
71
views
How to create a similar box to be inserted in side notes?
I want to create some side notes similar to this one, but I have no idea what package should I use to design it ?
7
votes
2
answers
377
views
How to Specify Outline Thickness and Fill/Outline Colors?
This question asks for an extension of this answer. Consider the code:
\documentclass[12pt]{book}
\usepackage{xcolor}
\usepackage{cabin}
\usepackage{scalefnt}
\input pdf-trans
\font\f=qx-lmr10 at ...
3
votes
1
answer
187
views
Box repeat shape of word
Hi, is there any way how to make "box" follow shape of words?
2
votes
4
answers
558
views
How to vertically align text and equations
How could I vertically move the third line on the left upward so that it doesn't appear broken with the two lines above?
I'd like to obtain this.
I have used this code.
\documentclass{article}
\...
4
votes
3
answers
280
views
How to create numbered-named saveboxes in a foreach-loop?
Is there a principally way to create numbered saveboxes?
For a usage like: \usebox{box-1}, \usebox{box-2}, \usebox{box-3}
The follwing MWE gives no error, but no output.
PS: It seems to be clear why ...
2
votes
1
answer
65
views
How TeX places text horizontally and vertically?
Am I right that TeX processes text in a manner like this? Since the very first character it is forming an hbox of textwidth width. When the first hbox is filled in its width, TeX makes a hyphenation, ...
4
votes
1
answer
92
views
Why does TeX stretch more than the plus component and it's OK?
The code is as follows:
\newlength{\stretchable}
\newlength{\fixed}
\setlength{\stretchable}{2cm plus 6cm}
\setlength{\fixed}{8cm}
\hbox to 10cm{|\hfil|} % the sample of a 10cm hspace
\...
7
votes
1
answer
546
views
The concept of boxes in TeX
Am I right that TeX considers a text in terms of boxes (rectangles) where each character (char) is in a rectangle with three dimensions (height, width and depth (hwd)) and the origin point?
And that ...
3
votes
1
answer
350
views
What is so special about "\@tempboxa"?
When storing a box, why do so many folks use \@tempboxa? Why not \@foobar or \@MyGreatTemporaryBox or simply \@temporaryBox0? Is there anything special about this \@tempboxa? Knuth says simply \...