{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
1answer
34 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 ...
3
votes
2answers
47 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
82 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)
2
votes
2answers
81 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
3answers
64 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 ...
3
votes
1answer
101 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 ...
2
votes
2answers
184 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 ...
3
votes
1answer
56 views
+150

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
0answers
33 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
52 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
64 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
18 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
26 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 ...
2
votes
1answer
53 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
46 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 ...
5
votes
1answer
80 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 ...
0
votes
0answers
46 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 ...
4
votes
1answer
58 views

How much bigger are delimiters

While trying to duplicate TeX dimension computations, I noticed that the delimiters placed with \left…\right are slightly bigger than the box around which they wrap. How much bigger, how is that ...
2
votes
1answer
26 views

Verbatim without breaks

Hi I found a lot of questions which suggest something like How to box verbatim to prevent page break? to prevent breaks in a Verbatim environment. However this does not work for me as I display some ...
1
vote
0answers
16 views

Auto-resizable box [duplicate]

How to create a box like parbox which automatically resizes to the length of its content and can contain multiple lines? I tried mbox but it can contain one line of text only; on the other hand, ...
1
vote
3answers
139 views

Aligned equations in a colored box

I would like to put a set of aligned equations into a colored box. After a quick search on tex.stackexchange, I have found the following solution to put (apparently) one equation in a color box : ...
1
vote
2answers
48 views

Box around equations in align environment and no indentation

I have the following code and I want to do two things to it.First, I want to have the output maximally on the left, that is I do not want any indentation of the stuff in the align environment, I want ...
8
votes
2answers
89 views

Problem with \setbox

I wrote the following box, which contains my name displayed vertically: \setbox0\vbox{\hbox{M}\hbox{a}\hbox{t}\hbox{t}\hbox{e}\hbox{o}} I'd like to dysplay it twice in a line, so I wrote: ...
0
votes
2answers
41 views

How to insert a text box with controllable margin

I want to insert a text box with controllable margin. Specially, how to format the following text as the following Figure? And how to set the space? Currently, I use \noindent\fbox{ ...
1
vote
2answers
78 views

Package for framed boxes

I saw the following framed box in a Tex-generated PDF and was wondering what package had been used to make it: Does anybody recognize it?
1
vote
3answers
145 views

How to inject a color into boxed objects?

Consider the following MWE. I want to give a color (red) to the boxed object (Hello). Unfortunately, it does not work as expected as if the boxed objects are shielded. How to remove such a shield? ...
3
votes
1answer
28 views

replace rule below title with box

I'd like to change the rule above and below the title in this document, instead putting the title, author and date information inside a (hopefully stylish looking) box. Any help appreciated! ...
5
votes
1answer
32 views

storebox doesn't work before begin{document} like normal savebox

One can use storebox package to save space. For example, I will expect that this works as it is similar to the use of savebox. However, it does not. One needs to move the \storebox{\foobox}{FOO} ...
1
vote
1answer
39 views

Textbox of arbitrary shape [duplicate]

Textboxes are rectangles which can contains text and other stuffs. I was wondering if there is some package that allows to create textboxes with arbitrary shapes. I mean, can I obtain something like ...
1
vote
1answer
40 views

How to create boxes within columns (Beamer)?

I need to have three columns and the text within each should be enclosed in a box. below is my code, but it is not working: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{calc} ...
0
votes
1answer
51 views

Boxed equations and arrows

I would like to implement this into an align-environment (or equivalent) how can I do this? I tried with boxes but the structure is rather complicated since I want a large box on the left-hand ...
4
votes
1answer
130 views

How to make this particular type of box?

I need this type of command. Someone can help me? I do this with tabular and some negative space but it is very difficult to work like this.
6
votes
1answer
78 views

Reflowing marginpars typeset using pdfsavepos

I'm trying to typeset marginpars more accurately on the correct side of the page using a solution based on pdfsavepos by David Carlisle. (The code below is a slight alteration of it.) I got most of ...
1
vote
1answer
61 views

How to write text that takes up no space? [duplicate]

How does one write text such that whatever comes next is placed as if the text had not been written? Edit: More specifically, I would like to place text in the top-left corner of a tikzpicture by ...
3
votes
2answers
116 views

Wrap a few lines of Algorithmic in a box

I have some pseudocode where I want to reveal an algorithm little-by-little. Currently I highlight the code that is revealed by coloring it red and this looks good onscreen. However, on print, this ...
1
vote
0answers
42 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.
2
votes
1answer
57 views

“Underfull \vbox while \output is active”, adjusting stretch/shrink does not make the error vanish

I intend to use the sidenote package along with David Carlisle's implementation of \marginpar based on \pdfsavedpos from the answer here: http://tex.stackexchange.com/a/52436/44160. I've simplified ...
2
votes
1answer
39 views

Background color of the block of text

I want to have something like given in the picture. Borders above and below of the box are optional. I tried \colorbox, but it doesn't work. \documentclass{report} \usepackage{color} ...
7
votes
1answer
259 views

How can I fill vertical spaces with dotted horizontal lines?

I'm sure this must be a duplicate, but I can't find it. I'm preparing a worksheet for students to use when starting to work on an assignment. Here is a (naturally sweetened) version of the code: ...
5
votes
1answer
53 views

Unused \setbox0 in beamerbasedecode.sty

Inside the source file beamerbasedecode.sty of beamer package, there are the following lines: \def\beamer@stoptexts{| stop:0| } { \catcode`\|=13 \catcode`\:=13 \catcode`\,=13 ...
4
votes
2answers
39 views

How can I set contents in a box of zero width and specified height, optionally rotating, using expl3 syntax?

Using Steven B. Segletes's answer, I can centre something horizontally, optionally rotating it, using \centering \makebox[0pt]{\rotatebox{<angle>}{<contents>}} \par However, I would ...
2
votes
2answers
44 views

forcing vertical size of savebox to equal page height

Is there a better way of generating a \savebox whose dimensions are equal to the paper dimensions than sticking in a \strut of length equal to the page height (width is an argument to the \savebox ...
2
votes
2answers
57 views

How to box aligned equations

\boxed{ \begin{align*} x &= 1 \\ y &= 1 \end{align*} } obviously doesn't work/compile.. \begin{framed} \begin{align*} x &= 1 \\ y &= 1 \end{align*} \end{framed} sort of work, but ...
3
votes
1answer
65 views

TeX expert needed: how to \setto(optimal)width?

there is a problem I have been trying to solve for a while but without success so far. As far as I know, TeX is very good at appropriately breaking text lines with respect to a fixed container width. ...
6
votes
2answers
150 views

Vertically align text to graphic

At first this might look like a duplicate, but I couldn't find any solution, although I tried various (combinations of) vspace, minipage and box-commands. Situation: I have some pictures (all have ...
2
votes
1answer
84 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 ...
3
votes
1answer
45 views

How do you make a tight box using \begin{framed} and how do you skiplines in it?

I cant fit a tight box using this code: \begin{framed} \begin{flushleft} \# Description of the data \\ summary(training) \end{flushleft} \end{framed} and I dont manage to skip lines. Can anyone ...
3
votes
1answer
133 views

How to fit title and author into footline of the CambridgeUS beamer theme

I am writing a presentation using a beamer theme; the code I wrote is this: \documentclass{beamer} %\documentclass[handout]{beamer} % THIS PUTS TWO SLIDES ON EACH PAGE %\usepackage{pgfpages} ...
1
vote
1answer
31 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 ...
4
votes
2answers
99 views

Resizebox within equation environment

How does the resize command work with the equation environment? The following code results in an error. \begin{equation}\label{model3_coef} \resizebox{0.91\hsize}{!}{y_{t}^{3} = -145.071 - ...