{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

3
votes
1answer
2k views

Shadowbox that breaks page

I am trying to typeset a block of text in shadowbox. The text is quite long, therefore I would like it to span across two pages where necessary. TeX will not perform a pagebreak, though. Here is my ...
3
votes
1answer
34 views

Box diagram (with text in and around it)

How can the attached box diagram be drawn in latex? I have tried using the table environment, but it does not seem to work well. Is there a quicker and easier code for it?
1
vote
1answer
77 views

Will it stretch? Plumbing the depths of Interline glue

I've gone back to basics to gain a better understanding of how TeX works. One of the things I've been puzzled about is the workings of interline spacing and why ocassionaly (depending on font sizes ...
3
votes
1answer
161 views

How can I get the following output,using what commands?

If there is no frame ,I just can get it . \begin{verbatim} \verb+text+ \end{verbatim} but with the frame ,I don't know how to manage it.
2
votes
1answer
40 views

parbox vertical alignment after brace in equation

In the code below, I am trying to center the parboxes vertically, relative to the braces. I have been playing around with the position argument, to no avail. Can you help me with this? Thanks in ...
5
votes
2answers
73 views

fancy quote with picture

I'm trying to make a custom quote environment. I'm beginning from the following: \documentclass{article} \usepackage{xcolor} \usepackage{times} \definecolor{quotationcolour}{HTML}{F0F0F0} ...
1
vote
2answers
95 views

Why underfull message in Texmaker in \[…\] equations

Why I am getting underfull hbox badness 10000 in paragraph at lines Message even when I am not using \\. After reading many questions on the same message, I eliminated all \\ that I used ...
2
votes
1answer
100 views

How to make gradient ellipse title box with border?

I am using the tcolorbox package, and I want to use a gradient ellipse title box with border on the titlepage. It is possible somehow or I have to use another package to manage this?
1
vote
2answers
1k 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
52 views

Fancybox question

i've been messing around with boxes recently, and i'm struggling with doing 2 siple things. Here is the tex code first. \documentclass{article} \usepackage{lipsum} \usepackage{tcolorbox} ...
3
votes
2answers
74 views

How to store an mdframe in a savebox?

The title question is the last piece of information I would need, to solve my problem my way. Putting a \sbox or lrbox-environment around a mdenvironment yields a ! Missing \endgroup inserted. ...
1
vote
1answer
99 views

Complicated Boxed Frame Design by LaTeX

It has been long time not touching LaTeX and I recently try to remember all things which I have forgotten. Instead of going over manuals, I look up some books which have some good design and try to ...
2
votes
2answers
60 views

Draw a box containing the grandchild and add text at the bottom of box

I want to draw a minimal box which contains all the grandchilds (pink boxes), and move the text of deep green box to the bottom of the new box. How could I do it? codes: \documentclass{standalone} ...
2
votes
1answer
66 views

Use the Exercise environment from Legrand Book template

I am using the Legrand Orange book template and like the typesetting of the exercise environment. I wanted to use the same environment to just have my text within the ocre color box. From the ...
1
vote
1answer
69 views

\hphantom behaving like \mbox, not like the counterpart of \vphantom

I have the following figure as part of a slideshow I'm writing with beamer. If it is relevant, I've used pst-jtree (which is essentially a bunch of macros over pstricks) to produce the tree branches. ...
3
votes
2answers
244 views

Make box in math mode with current math font

The commands $\mathcal{\mbox{$M$}}$ and \mbox{$\mathcal{M}$} produce different output. I would like a replacement for \mbox that creates a box preserving all features of the current font in ...
2
votes
1answer
33 views

Use \raisebox with \depth in caption

I want to use \raisebox in a caption. I know that \protect is often needed in these situation, but this (and other combinations I have tried) does not work: \documentclass{article} \begin{document} ...
3
votes
1answer
123 views

Beamer : how to make a box from top to bottom without white space up and down?

\documentclass{beamer} \usetheme{Warsaw} % thème \usecolortheme{wolverine} % variante de couleur % Enlève les icônes de navigation \beamertemplatenavigationsymbolsempty ...
1
vote
1answer
86 views

Including “boxes inside boxes” in baposter

I have divided my poster into \headerbox correctly. I would like to modify the following example because in the results section I would like to make subdivisions or boxes in order to show different ...
2
votes
1answer
70 views

Box with fancy colors

Does anyone know how to create these? I think they made it by using tcolorbox but I can't find a way to generate them.
0
votes
2answers
53 views

Replicate a box | Part 2

You can follow part 1 here. As for part 2, I'd like to know how to replicate the image you see below.
4
votes
1answer
78 views

Replicate a box using fancybox

As the title says, is there a way to do this by using the fancybox features? I'd really like to know if it's possible. Also, what's the font written in the text? Is there a way to replicate it?
3
votes
2answers
55 views

Boxes within a Dotted Box

How do I create the dotted box? For the rest of the diagram I used a matrix, but I'm having trouble creating that box. Here's the code I used. \begin{center} $\begin{matrix} $ x(n)$\rightarrow ...
1
vote
1answer
89 views

Parallel Boxes - Identity

how do I make this identity? Is there any way to type it without the use of tikz? Thanks (My biggest problem is how I type the connected boxes)
3
votes
3answers
75 views

Vertical stacked parboxes: Spacing and Calculating

I need a table which will work in twocolumn mode and can span over multiple pages. Since I've given up with supertabular (too buggy, too less control), I wrote a simple solution for my purposes with ...
2
votes
1answer
47 views

Rubber width `\parbox`

I am trying to create a rubber width \parbox in LaTeX so that the whole line will be evenly filled. It is for creating a mad-libs style fill in command that will stretch a certain amount of width. I ...
0
votes
1answer
65 views

Text alignment in clipped parbox

I have the following problem: I need to put variable length content into a fix-sized parbox the gets clipped with clipbox command. And want the content to be vertically centered. As long as the ...
2
votes
1answer
23 views

Table of contents alignment problem with multi-line \pbox in \inlcudepdf addtotoc

I'm inserting many 1-page PDF's that I also include in the table of contents. The only issue I have is with the alignment of my entry with the toc counter for PDF # and it's corresponding page ...
2
votes
1answer
95 views

Strange \parbox issue: vertical positioning

I'm working on updating my resume and converting it into a LaTeX-based CV. I'm reusing features from several open templates, which I liked, but I'm trying to modify the document per my taste and ...
1
vote
1answer
34 views

Custom linespacing in a parbox

Is there a way to set the line spacing into a \parbox? What I am trying to do is create a new command from a \rotatebox and \parbox and assign locally, i. e. only inside of the \parbox, custom line ...
2
votes
1answer
46 views

rcases with parbox to fit residual space

I have the following construct (using package mathtools) \begin{drcases} Content.... \end{drcases} \parbox{.53\textwidth}{Long Multiline Text Blablabla} I am using cases to display some long ...
5
votes
1answer
186 views

Vertical spacing between parboxes

I'm using \parbox for creating a flexible table-like structure of paragraphs as in the following minimal working example: \documentclass[a4paper]{scrartcl} \usepackage{polyglossia} % ...
1
vote
1answer
43 views

First word hyphenation in parbox with strut

I've a problem with parbox spacing in combination with hyphenation. What I like to achieve is setting parboxes in a tabular-like way as key value pairs. So I have two parboxes with a given width per ...
3
votes
1answer
58 views

Length space on parbox

I am trying to build a table on LaTeX with Parbox. I have found how to do with \parbox. However, the length between rows makes the text so pack. Do you know how to increase the length? I have tried ...
0
votes
1answer
65 views

Cut off text hight than a given value

Is it possible to have a text box which cuts of text running out of its height? Considering the following minimal working example, I would like to have the text in the first parbox to be cut of as ...
3
votes
1answer
99 views

Hyphenation/text wrapping in \parbox

I have a \parbox with some text. The text should be wrapped as normal, but it doesn't seam to work, while the words wrap in normal text: \documentclass[a4paper,parskip]{scrartcl} ...
4
votes
2answers
239 views

Tikz: Creating a rectangle with a fake \parbox

In the example below, I am trying to get identical blue and red boxes, without any text in the red one. I would like to have the red box exactly identical to the blue one, whose size depends on the ...
1
vote
2answers
64 views

Balanced Text Wrapping in \parbox

Is there a possibility to balance the lines if a text has to be wrapped in a \parbox? \documentclass[a4paper]{scrartcl} \usepackage{polyglossia} \setmainlanguage{english} \begin{document} ...
2
votes
2answers
86 views

saint Louis fed quarterly review style

How can I generate a title that is similar in appearance to the titles in the St. Louis FED review Journal. I've linked the latest paper from that journal.
3
votes
1answer
71 views

Change height of a box, recalculate rubber lengths

I'm using \setbox and \usebox to define a box, measure its default dimensions and render it later. During rendering, sometimes there is more vertical space available than measured initially, and I'd ...
1
vote
1answer
38 views

Render content normally, then wrap into box of given size, letting text stick out to the right

With komascript and geometry I made a page layout such that I can render a logo at the top right of every page simply with \ohead{\hfill\usebox{\rtlogo}} except that this pushes the logo only out ...
2
votes
2answers
201 views

How to make a two level colored box with text?

I need some help to create boxes with two layers, color and text (as in the picture) that fit into textline. I thought about using tcolorbox but didn't work out for me yet. It is "needed" (it is not ...
9
votes
4answers
2k 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
0answers
36 views

Box highlighting of text with rounded corners and hyphenation support

I used tcolorbox to highlight text some text in paragraphs, it seems to work smoothly, but it disables text hyphenation, that the highlighted piece fo text cannot be start somwhere at one line and ...
0
votes
0answers
56 views

Box highlighting of text with rounded corners (soul-based)

Here it is an excellent solution from Gonzalo Medina. Could somebody help me to make it with nice small rounded courners?
5
votes
1answer
85 views

How to design page layout in plain TeX using OPmac?

I'm trying to create a slideshow in TeX using Opmac. I need a page layout like that: And I try this code: \input opmac \chyph \margins/1 a5l (1,1,1,1.2)cm % page format \input ctimes ...
5
votes
1answer
68 views

TeX: Lining up three boxes

This question is really a continuation of my previous question. Basically, I'm wondering why this does not work: \hbox{\vbox{\hbox{This is}\hbox{A line}}\hfil\vbox{\hbox{And so}\hbox{Is ...
2
votes
1answer
54 views

Placing symbol in margin

I am using \def\margin_symbol{\rlap{\protect\makebox[-3cm]{X}}} which I use in sections as \section{\margin_symbol My Header} to place an X 3cm to the left in the margin; however, my problem is ...
2
votes
1answer
34 views

Beamer and listings… how to include \end{frame} multiple times

Following up on THIS QUESTION, I want to include code in my slides. The code includes "\end{frame}", so I had to box the code as suggested in the link, but if I want to include code including ...
0
votes
0answers
54 views

Beamer Overlay — Reveal box around line of {align} environment

Summary: How can I create an overlay slide where the only thing being done is boxing/circling the last line of an align environment? In a lot of math classes, we begin with some initial problem, then ...