{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

0
votes
0answers
12 views

header rule margin with boxes

I'm creating a document with a box in the header and an other one in the footer. But I would like to have the same space between the bottom of the top box and header rule and between the top of the ...
0
votes
2answers
42 views

Ignore particular tabular cell height and simple overflow its content (like \multirow)

I want latex to ignore the height of a tabular cell and to overflow its content to the above and below tabular cell (see image - red arrows). First I tried \multirow but this doesn't align the text on ...
6
votes
2answers
84 views

Problem with vertical alignment in tabular environment

I'm having a few issues with vertically aligning table elements. There seems to be too much space either above or below the text or image. Is this to do with the fbox environment? I want both the ...
1
vote
0answers
9 views

\parboxes with facing pages in `eledmac`/`eledpar`

Currently I'm trying to typeset a document with facing pages using eledpar and eledmac. On some pages I'd like to fill in images between paragraphs. In order to have a predictable height for these ...
3
votes
3answers
102 views

No space before first section in framed box

I am looking for the correct way to lay out content in a framed box. In my opinion the space before the first section in a box looks odd in comparison to the same content at the start of a page. How ...
2
votes
1answer
71 views

Rescale paragraph to fit margins or detect used width of paragraph

I want to write a command or similar that allows me to rescale a given paragraph to fit a given frame, keeping the aspect ratio. The problem is that the paragraph is usually manually set and not ...
4
votes
2answers
58 views

Boxes with equal height

I am looking for a simple way to make the following boxes the same height. \documentclass{article} \setlength{\parindent}{0pt} \begin{document} \fbox{\hbox to 0.3\linewidth{\vbox{test}}}% \hfill ...
3
votes
1answer
68 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} ...
4
votes
1answer
3k views

Set the width of a fcolorbox

Hi a very basic question I'm sure, but is there a way to tell \fcolorbox in xcolor to draw the box of a certain width. For example with \fbox I would do \documentclass{article} \usepackage{xcolor} ...
9
votes
1answer
54 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, ...
15
votes
5answers
8k views

How to draw a square of 1cm in LaTeX filled with color?

How to draw a square of 1cm in LaTeX filled with colour? I found mdframed and framebox does this, but there need to write text inside it. I just need to draw a box.
5
votes
1answer
63 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 ...
3
votes
1answer
47 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[ ...
8
votes
1answer
7k views

What is a “Overfull \hbox (9.89561pt too wide)”?

I have this warnings around, some of them seems to be solved naturally but I never really understand what do they mean. What this means? Edit: I would like to keep the question in more general ...
6
votes
1answer
47 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} ...
6
votes
1answer
47 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 ...
11
votes
1answer
76 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 ...
3
votes
0answers
83 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 ...
8
votes
2answers
233 views

How to avoid the enlarging of a \vbox by \vbox\unvbox?

The \vbox{\unvbox ...} operation should remove obsolete vertical space. In the following case, additional vertical space appears somewhere inside the resulting box. The resulting \vbox grows from a ...
1
vote
1answer
57 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
106 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
218 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
90 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 ...
8
votes
3answers
132 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 ...
3
votes
1answer
50 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} % ...
4
votes
4answers
90 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 ...
12
votes
3answers
495 views

putting a box around each line of text in a paragraph

In my environment I would like to automatically make a box around each individual line of text in a paragraph so that I can operate on each line. I think this should really be done in LaTeX rather ...
39
votes
3answers
2k views

Bounding box for each letter

How can I take input text and replace each character with a solid (and/or hollow) rectangle representing the bounding box for that character? In the case where two characters are closer together from ...
0
votes
1answer
252 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: ...
2
votes
1answer
44 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 ...
4
votes
3answers
127 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
1answer
2k views

Problem resizing an itemize environment with a \scalebox: “Something's wrong”

I have a \block containing a \itemize: \begin{block}{title} % \scalebox{0.8}{ \begin{itemize} \item 1... \item 2... \end{itemize} % } \end{block} I try to use \scaleboxand ...
6
votes
1answer
2k views

Rounded corner colored box around figure

I'm trying to get Rounded corner grey-colored box around figures. One solution would be to use \usepackage{float} \floatstyle{boxed} \restylefloat{figure} but this results in black box around a ...
5
votes
2answers
162 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} ...
9
votes
2answers
3k views

How to continue the framed text box on multiple pages?

I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end ...
10
votes
6answers
949 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 ...
19
votes
2answers
500 views

TikZ -The pretty boxes to frame the theorems-lemma-proposition-etc

I came across a website which provides examples of pretty boxes to frame theorems in LaTeX with extension bioboite and not with TikZ. Here is code with: \documentclass{article} ...
3
votes
1answer
50 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
102 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
95 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
68 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 ...
5
votes
2answers
789 views

Setting the vertical distance in \overline

I want to overline a piece of text, but the line is too close to the number, which is not nice, so I want to add some kind of padding between the overline and the text. This is what I've made up so ...
4
votes
0answers
77 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 ...
8
votes
1answer
914 views

fancy text boxes like in Redhat documentation or mercurial book

I would like to have framed texts with an Icon on the side like the ones here http://www.centos.org/docs/5/html/5.5/Release_Notes/ar01s06.html or ...
1
vote
1answer
49 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
3answers
8k views

Colored fancy boxes

I am trying to produce some fancy boxes. I have found the fancybox package that does the boxes I want. What I can't find now is: How do I change their background color? I would also like to make the ...
7
votes
2answers
122 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
57 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. ...
3
votes
1answer
49 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}} ...
6
votes
1answer
193 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 ...