{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

6
votes
2answers
119 views

Using boxes to define an adjusting (Dirac) bracket

I'd like to define a set of adjusting bracket, called in physics Dirac brackets. This brackets accept three arguments, separated by vertical lines, and all of them are enclosed by angles, e.g. in ...
5
votes
1answer
57 views

Only display savebox if own command is given

I'm experiencing a quite complicated and hard-to-explain problem: I'm using own commands that create and fill saveboxes if they are called in the main tex file. Like this: ...
7
votes
1answer
105 views

Color bleeding when using \vsplit for a box with colored text

I want to \vsplit a box with quite arbitrary content. If the content does some color changes, strange things happen. The following MWE demonstrates the problem. The example text changes font and ...
3
votes
1answer
313 views

Message Sequence chart

I'm drawing a sequencediagram with LaTeX. By now it looks like this: Is it possible to remove the grey boxes? Is it possible to put a space between handshake and ws.connect? This is my Code: ...
4
votes
1answer
84 views

how can I make an fbox like command with certain color, shape and width of border?

I am using a style file that has a certain color for section headers. I want to create a macro, which will behave the same like fbox, only: There will be some (predefined) padding below, above, ...
8
votes
1answer
248 views

Beamer: Overfull hbox in headline

I try to redefine the header of my frames, but for some mysterious reason I get an overfull hbox of 1.6 points or slightly more: \documentclass{beamer} \usepackage{times} ...
11
votes
2answers
376 views

How do I put card backs on my cards?

I have a a document that is making me sheets of cards. A stripped down, almost minimal example looks something like \documentclass{article} \usepackage[utf8]{inputenc} %Needed for input ...
10
votes
3answers
444 views

How to Produce a Half-Box Symbol?

Does anyone know how to produce a half-box symbol in LaTeX which comprises a bar over an entire expression and a vertical line on the right meeting in the corner, like the top and the right edge of a ...
6
votes
1answer
126 views

boxed verbatim environment disappears

I want to center a box containing a verbatim environment. The (almost)MWE below is my attempt to use the answer at center /verbatim text in /figure . \documentclass{article} \usepackage{verbatimbox} ...
6
votes
1answer
92 views

Change direction of a textbox, taking up space from above instead from below

I am designing a custom theme for my LaTeX presentations. This is my title page: Now when I have a longer title, this happens: Here's my code (according to this post): \defbeamertemplate*{title ...
4
votes
1answer
315 views

Reduce space between header and headrule

Problem I'm trying to create fancy headers for my documents using fancyhdr. I want the headrule to be dotted, which can be achieved using \renewcommand{\headrule}{\vbox to 0pt{\hbox ...
11
votes
3answers
305 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} ...
10
votes
1answer
95 views

How to set a box to a rubber length width

Problem I'm trying to create fancy section heading using titlesec. I need to put the section name into a \parbox to have line breaks. I want the parbox to extend to the far right margin, but I don't ...
7
votes
1answer
201 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?
2
votes
1answer
484 views

Breaking Page with Boiboites Package TikZ

I have a problem with package Boiboites I'm writting an exercise enunciate with this package who occupies more than one page, but i cannot break the page. Here's the code: ...
9
votes
2answers
468 views

Framed box, over framed text with image

Hi all, I'm a newby in LaTeX but after researching online, I have seen that it is possible to create boxes and frames adjusted to text and images. I am trying to achieve something like the image, ...
2
votes
0answers
129 views

Unwanted extra vertical spacing with tikz: is it a bug?

I am writing an environment to format its content in a box with a background and that can be split across pages. I am using a splitting algorithm similar to the one used in the boites package. I want ...
3
votes
1answer
438 views

Diary in Latex with additional notes on side

I am trying to make a diary that will have the following format Each entry will be inside a colored box Each entry will have a title with the date and an optional title I want the possibility to add ...
3
votes
1answer
206 views

Using \parbox in \resizebox

I tried resizing a \parbox-d text into a 5cm x 5cm square box (without keeping the aspect ratio). The output is absolutely strange to me, even if I don't specify the height. Couldn't find the ...
12
votes
1answer
159 views

Can I disable underfull \hbox messages for a specific line?

The line \sbox{\mybox}{\parbox{2cm}{\lipsum[1]}} causes some of the above messages (59): \documentclass{article} \usepackage{lipsum} \newsavebox{\mybox} \begin{document} ...
10
votes
2answers
367 views

LaTeX Beamer Block “Sandwich Style”

How can I create a block in LaTeX Beamer in "Sandwich Style", i.e., that has both a title and a footer. Ideally, the background colors could even be different. Here is an illustration (with incorrect ...
7
votes
3answers
505 views

Insert text into a fixed size box

Is there a way to create a box which has fixed width and height? I tried \parbox and some similar things, but sometimes the text overflows. If the text inserted would overflow: it should be resized ...
3
votes
1answer
85 views

Using savebox around the BODY of environ

I tried to use a \savebox around the \BODY macro of \NewEnviron. Can I keep the linebreaks somehow (they are gone, in the MWE)? \documentclass{article} \usepackage{environ} \newsavebox{\mybox} ...
3
votes
1answer
146 views

Tikz lines intersect boxes

Today I just started to learn how to use the Tikz package for drawing flow-charts. I've been reading through the manual and a few online sites such as our beloved TeX.SE, but I can't seem to figure ...
17
votes
2answers
793 views

Package for game/playing cards (not only poker)

Is there a package to design playing cards (NOT ONLY POKER and similar card games, but board games like this and that) in TeX (and friends)? I'm well aware of this one and a half years old topic ...
8
votes
1answer
105 views

Implement functionality equivalent to many thousand \savebox

I have a large (approx 600 pages) index of files, and for each file entry significant computation is required so that additional links can be added. The computation of these links takes quite a bit ...
6
votes
1answer
122 views

siunitx overfull hbox dependent on table-format

There are a few similar questions (see here and here) regarding overfull \hboxes in siunitx tables but neither solves/explains the following. Consider this MWE: \documentclass{article} ...
1
vote
0answers
95 views

Spacing within a box, relative to the page

I am attempting to place a textbox precisely 75mm from the top edge of a page (to correspond with a cut-out on the cover). On printing this out, I noticed I was getting positioning problems, so got ...
3
votes
1answer
90 views

Vertically stack parboxes in a cell of a table

I need to insert an enumerate environment in a table. Following hints from this page: itemize in a tabular environment, I used \parbox to prevent error (Putting itemize environment in a tabular ...
12
votes
1answer
76 views

Tight connection of \vbox es

I don't understand why TeX put a thin whitespace between my two vertical boxes: \documentclass{article} \begin{document} \vbox to 1cm {\rule{1cm}{1cm}} \vbox to 1cm {\rule{1cm}{1cm}} ...
2
votes
1answer
142 views

Use a box to fill text to right margin

I often use an eqnarray (I know it's better to use align, but let's not worry about that for this question unless it changes the answer) as a way to list a bunch of definitions or descriptions of ...
4
votes
4answers
187 views

Is it possible to create a box with a fixed dimension, regardless of how large its content is?

Is that possible to create a box (without frame) so that, even though its content is pretty big, it only occupies a small space in the text follow. For example, a tikz picture, however large it is, ...
4
votes
2answers
116 views

How to create an alert box with a figure to the left? [duplicate]

I'm trying to create an alert box to show some info, with background color and an icon to the left. With the help of this question I've figured out to come up with this: ...
5
votes
2answers
120 views

Absolute vertical positioning of parbox

I create signature area like \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} %some content here \begin{center}\parbox[t]{5cm}{\hrule height 1pt\medskip \textbf{John ...
4
votes
1answer
192 views

Making Inline Code Printing Pretty

I have to include small code snippets like method and class names within continuous text. I do not want to display those snippets as complete seperated listings, they should be displayed inline, ...
0
votes
0answers
22 views

New environment with shaded box leaks into margin [duplicate]

I have written a nice little environment for defining mathematical problems using a trivlist and shaded box. The problem is: The text in the box is aligned with the regular text, such that the box ...
0
votes
2answers
269 views

Vertical bar in text mode [duplicate]

How do I create a vertical bar in text mode, which is a bit thicker and taller than the | character? I used to know how to do this with boxes, but googling no longer turns up any useful resources. ...
5
votes
1answer
440 views

Why the checklist box was put on the left

I just create a simple check list following the way described here: How do I generate a check-list?, My code is below: \documentclass[a4paper,notitlepage]{article} \usepackage[]{ctex} ...
2
votes
1answer
197 views

Grid of colorful boxes with shade

How can I reproduce this in Latex?
5
votes
3answers
554 views

parbox vertical alignment

The following code uses parboxes and hrules to vertically align two rectangles of different heights. The hrule seem a bit hackish to me. Is there a more elegant solution? \documentclass{article} ...
1
vote
0answers
59 views

Dropping boxes on top of the listings environment [closed]

I was wondering if anyone knew a decent way to drop boxes of text on top of the listings environment. This would be most useful for a beamer presentation that I am currently writing. Ideally the text ...
6
votes
1answer
391 views

Equation numbers for boxed multiline equations

I am attempting to set a box around multiline equations is LaTeX using the following code: \documentclass{article} \usepackage{empheq} \newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}} ...
2
votes
0answers
121 views

overfull vbox if multirow is bigger than usual

I have the following table which gives an overfull vbox because the multirow takes more vertical space than each of the rows it spans. Also, I would like the multirow to center vertically if possible. ...
6
votes
1answer
96 views

Make an \fbox of the remaining line width in `exam` class

I'm writing a math test in the exam class, and I want to make framed boxes for the students to write their answer in. I've tried this solution, but the box exceeds the right page margin by 6.79999pts. ...
6
votes
1answer
85 views

Test for vertically overfull parbox

I'm currently updating an old class written in mostly plain TeX into LaTeX (mostly for readability) and I changed a combination of hbox and vbox into a single parbox with all the optional arguments. ...
7
votes
1answer
82 views

Is there a switch to turn off LaTeX counters from inside a box?

I know that amsmath typesets at least twice its material, the first one for measurement and that it takes measures (sic) to avoid some counters being updated twice. Is there a switch a macro writer ...
8
votes
1answer
421 views

Why does \smash screw up vertical spacing after tabulars?

Using \smash after a tabular seems too screw up vertical spacing. Wheras after a paragraph vertical spacing is fine. Witness for yourself: \noindent \begin{tabular}[t]{@{}ll}% One\cr Two\cr ...
8
votes
3answers
186 views

box the size of A containing B

A thing I'd often like to do is put in my document a box the size of some text A and containing some other text B. For instance, I have two tikz nodes, one containing $n$ and one containing $n+1$, and ...
1
vote
1answer
329 views

Resume: How to create a textbox ?

I am creating a resume template. The picture below looks bad, is there a way to fit the entire bullet point "subject" into a box, so it is properly aligned ? Or is there a better solutions that you ...
4
votes
2answers
171 views

Vertical alignment in tabular with fbox

I have problems with vertically aligning content in my single row header table for an invoice template. Currently it looks like this: What do I have to do to align the top fbox to the top of the ...