{boxes} are the units used by (La)TeX to construct a page by pasting them together horizontally or vertically. A single character from a font is a box, as are the lines of type and the eventual page.

learn more… | top users | synonyms

5
votes
1answer
45 views

Debugging Friggeri's CV - Underfull \hbox (badness 10000)

I am trying to debug my CV made using Friggeri's CV template but there is still a recurrent warning I cannot get rid of no matter what I try... I am using the same friggeri-cv.cls file, I have only ...
2
votes
1answer
45 views

Controlling height of box

I am currently using the code \newsavebox{\FVerbB} \newenvironment{code} {\VerbatimEnvironment \hspace{-0.25cm} \begin{lrbox}{\FVerbB} \hspace{-0.29cm} \begin{BVerbatim}} {\end{BVerbatim} ...
3
votes
1answer
38 views

How to make a box around an equation in align-environment

I would like to draw a frame around one equation to point it out. I used \fbox{...} but it didn't work out. Here is a minimal example where I tried it. Any package suggestions? \documentclass[ ...
6
votes
1answer
40 views

Why is a varwidth incorrectly vertically centered by \raisebox{-0.5\height}?

I was creating a pseudocode/JavaScript comparison table, and wanted to typeset algorithms written with the algorithm2e package vertically centered in table cells. Out-of-the box, algorithm2e can't do ...
4
votes
0answers
34 views

Peek ahead a \vbox: \vsplit and reassemble again?

I'm wondering if it's possible to implement a peek method to inspect the head of a \vbox without changing the content of the \vbox. It could be done by brute force using a \copy of the original \vbox, ...
3
votes
0answers
77 views

How to get box dimensions within lualatex

I'm new to lualatex, which looks phenomenal. I wonder what the easiest way is to access the dimensions of a box from within lualatex. I intend to use it in more complicated situations than this (as ...
11
votes
1answer
73 views

Measure total glue in a box

Someone gives me a box, and my goal is to know as much as possible about the amount of glue inside that box. I can assume that the box is not huge, but it may contain arbitrary stuff (so I cannot ...
1
vote
1answer
44 views

Shadow title-like box in beamer

I'd like to have the same box as the title one. I try an imitation, but is there a direct way with beamer stuff ? \documentclass[xcolor=dvipsnames]{beamer} \RequirePackage{fontspec} ...
5
votes
3answers
102 views

Adding a hrule between hboxes decreases their vertical distance

Using pdftex. Given two sample programs test0.tex \vbox{ \hbox{X} \hbox{Y} } \bye test1.tex \vbox{ \hbox{X} \hrule \hbox{Y} } \bye gives the following outputs. test0.png test1.png So, ...
7
votes
3answers
205 views

Make box with minimum width (in math mode)

How can I give a box a minimal width, in math mode? That is, I would like a command something like \minwidth{exp}{width}, which will always typeset exp, but additionally, if the natural length of exp ...
10
votes
1answer
88 views

Measure a very large \vbox

I would like to measure the total height of a \vbox even for boxes which are larger than \maxdimen. It would be enough, if the code would compute the total height correctly only for small boxes. For ...
4
votes
4answers
81 views

\vtop vertical top alignment of \vsplit \vbox

Well, I wanted to have a minipage spanning across pages, so first I thought to split a minipage so it can , but I learned you cannot; so I got to breakable vboxes, and in trying that, learned that ...
3
votes
1answer
46 views

Why can I not vsplit a parbox? (and fbox alignment, and unvbox syntax)

I was trying to experiment with the code in this answer: Breakable vboxes, and I got something I didn't expect; consider this MWE: \documentclass{article} \usepackage{lipsum} \usepackage{xcolor} % ...
8
votes
3answers
128 views

Box for multiple lines and automatic width

I feel this is rather a dumb question, but I could not find an answer. I'm looking for a \parbox without the width parameter, i.e. it should be determinded by its content. And the content is multiple ...
2
votes
1answer
41 views

PDFLatex is counting numbers due to a parbox

I am having a problem with a minipage or \parbox and its parameters. Currently I try to do some business cards with the package called ticket. Therefore I modified one example delivered with the ...
6
votes
1answer
42 views

Define \shearbox with \rotatebox and \scalebox

Similar to this problem, I want to define \shearbox with \rotatebox and \scalebox using singular value decomposition: The latex code is as follows: \documentclass[12pt]{article} ...
0
votes
1answer
50 views

round box around theorem [on hold]

When I run the following file I get error: must run latex with -shell-escape flag. How do i do that? \documentclass[a5paper]{article} \usepackage[]{minted} \usepackage{tcolorbox} ...
4
votes
3answers
120 views

Reusing saveboxes

Since \newsavebox{\name} assigns the box register number to \name, there are probably a maximum of 256 boxes available. Is there a way to release a \savebox after you are through with it?
5
votes
2answers
156 views

Coloured box with tikz

I'd like to break a coloured box when the page which contains it breaks... here is an example which shows this issue: \documentclass[11pt]{report} \usepackage[explicit]{titlesec} ...
3
votes
1answer
47 views

Using \textwidth via strip@pt with beamer and the picture environment

OK, I admit I haven't tried my MWE without Beamer. My goal is to use e.g \textwidth with the picture environment, and my overall goal is to include several rectangular portions of an .eps file within ...
4
votes
1answer
91 views

very bad underfull hbox

I would like to include a progress bar in my presentation and, when in draft mode, a page number below the progress bar. I have the code to do this, and it looks great, but I get one instance of this ...
7
votes
3answers
88 views

How to align text in title with \fcolorbox

I have defined a new command to make some titles for a newsletter. I'm using the article class for the document. The command is defined with the following code: \definecolor{myblue}{rgb}{0.16, 0.32, ...
2
votes
0answers
57 views

How to make “callouts” or “standout blurbs” among a larger body of text?

I'm not sure what the word I need to search for is, to find help if this question has already been answered. In magazines it's common to pick out words from the middle of a body of text and repeat ...
4
votes
0answers
75 views

Bottom margin not respected with tikz and verticaly centered boxes

I've been working on making a Cards Against Humanity clone in TeX and have everything but this one last bit working. The text on one card is long enough that I need to stick the logo/game name on the ...
1
vote
1answer
44 views

getting rid of underfull Bad boxes

\begin{table}[h] \begin{center} \renewcommand{\arraystretch}{1.5} \renewcommand{\tabcolsep}{0.2cm} \begin{tabular}{|c|c|c|c|} ...
7
votes
2answers
108 views

tcolorbox empty title but with frame?

I want a box with the header frame for empty title. How can I do that? If I remove the title, the header frame will be removed automatically. I've tried to put an empty title so that I can keep the ...
6
votes
2answers
55 views

Custom date format

I am trying to create a fancy date format as shown below: The following is a MWE of what I have so far. For some reason or the other I can't seem to get the right height. ...
1
vote
1answer
51 views

Draw a box around a title on the title page

As part of a title page, I'd like to make a simple box around my Title. Nothing fancy, just a black lined box around it. But I don't want the box to be as narrow as usual but to have some space around ...
5
votes
1answer
57 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 ...
6
votes
2answers
105 views

What to do with both “underfull \hbox” and “overfull \hbox” in the same line?

I've recently read through my \jobname.log files to spot errors in typography. I came across this: Overfull \hbox (6.8925pt too wide) in paragraph at lines 650--651 [][]\T1/cmtt/m/n/10 ...
7
votes
1answer
111 views

Text doesn't fit the box

I created the following picture with Inkspace and made export to tikz. The problem is that the text doesn't fit the boxes. And the arrows should be colored with a gradient, but it's not so important. ...
5
votes
3answers
118 views

How to measure the minimum width or height of several boxes?

I know we can get the maximum width or height of several boxes via: \setbox0=\vbox{\hbox{a}\hbox{b}\hbox{c}} The maximum width is \the\wd0 \setbox0=\hbox{\hbox{a}\hbox{b}\hbox{c}} The maximum height ...
6
votes
1answer
169 views

Arrow-shaped text boxes (for use in ipe vector graphics editor)?

Ipe vector graphics editor I am currently evaluating the ipe vector graphics editor. A very attractive feature is that one can use LaTeX-commands inside its text objects as long as these are legal ...
5
votes
2answers
81 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 ...
3
votes
1answer
43 views

\fbox does not work in \headebox baposter

I am doing my poster, I need to put a set of itemize in a box. I can not put the all text but here a portion of my code \fbox{ \begin{itemize} \item \textbf{\color{red}{Adaptation of classic VH}} ...
3
votes
1answer
91 views

background color of colorbox doesnt fill enclosing framebox entirely?

I am using a colorbox (that contains a parbox) inside a framebox. Inside the parbox there is an itemize environment I need some paddding around the text so I put fboxsep for the colorbox to 6pt ...
7
votes
4answers
175 views

Set size of \colorbox for a single character

my question is simple (or not) I want to set the size of the \colorbox command or \fcolorbox command for a single character. The problem is the next: As seen in the image, the height and width are ...
1
vote
1answer
26 views

Empty body centered on the page and vertically splited

I want to have an empty page such that the body is centered. Next I want to have two minipage's each half the width of the body and of its height, such that they will vertically split the body. Here ...
5
votes
1answer
67 views

Stretching an \fbox horizontally to fit the page

I have a frame box next to some text (Komentar:), and I would like to stretch it so it fills up the page. I've done this using the calc package by subtracting \widthof{Komentar: } from \hsize (or ...
2
votes
1answer
107 views

Make a text box with color?

I'm new user in LaTeX, and I would like to know which is the better code to do a colored squared round box with text in a page? I would like to show important notes for example. Best Regards.
6
votes
1answer
80 views

Strange behavior of smart diagram with \resizebox

I'm working with package smartdiagram. Since I can't specify the width of the diagram (or can I...?), I'm using \resizebox as a workaround. This strategy works fine EXCEPT when I set custom colors ...
4
votes
1answer
72 views

Convert a latex command with parameter into a two begin end commands without parameter

I have defined a command \newcommand{\CV}[1]{\parbox[c]{0.2\textwidth}{\begin{flushleft}#1\end{flushleft}}} which I obviously have to call like \CV{My text} However I rather would like to use ...
0
votes
1answer
209 views

How can we change the height of a header box

In my poster done using baposter, I need to change the height of the \headerbox. for example, I have this example: ...
4
votes
3answers
86 views

Set default width of \shadowbox to line, not column, width

When I insert a shadowbox using Lyx (Insert>Box>Drop Shadow) the width is specified as 100% of column width (1\columnwidth). This is the source code it generates: ...
7
votes
1answer
104 views

How to make a dynamic comment box next to \address cluster?

I'm sure you're aware what \address{blah} is. Well, I'd like to make a boxed comment that's just as high as my address and stretches from the left margin of the document to 3cm to the left of the ...
5
votes
1answer
98 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} ...
0
votes
0answers
31 views

Rounded corner box with shading [duplicate]

I wish to draw a rounded corner box (top-left side as a square, top-right side with 6pt radius curve and the bottom of two sides also with radius curve), in addition to that there should be shading, ...
23
votes
3answers
380 views

What are the ways to position things absolutely on the page?

I know that there is tikz, but also eso-pic and textpos. I'd like to see a list of possible ways (not necessarily packages) for absolute positioning of things (which I believe amounts to "boxes") on ...
1
vote
1answer
38 views

Adding a “box” to latex document with different style than the rest

I have my CV written using Latex, using moderncv document class. I really like the output, but at the bottom of the CV I need to put a disclaimer (required in Poland), which doesn't really fit into ...
0
votes
2answers
67 views

Problem with boxes and paragraphs

I am trying to create a form for my company. I am new to Latex and based on some tutorials i was able to get to a certain point. But as you can see The fbox is starting from a different margin I am ...