{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

4
votes
3answers
156 views

Custom enumerate environment inside Fancybox

I would like to put a enumerate environment (customized with the enumitem package) inside of a shadowbox created from the Fancybox package. Here's my MWE: ...
2
votes
0answers
44 views

Box height in tabular

I have this macro \code that produces a box. And I want to create a tabular "environment" that acts like enumerate except it puts the items into a grid. \documentclass{article} \usepackage{tabularx} ...
10
votes
5answers
738 views

In LaTeX, make a box with the width of another text

I am looking for a command like \makebox{text to set width}[c]{new text} which would make a box with the width of text to set width containing ____new text____ centered.
0
votes
0answers
34 views

How to duplicate content/vboxes?

I am trying to create exercise and answer environments for lecture notes, where I type \begin{exercise}... \end{exercise} followed by \begin{answer}...\end{answer} within the text. I want to include ...
6
votes
4answers
244 views

Equations and Equation Numbers within a Box

I use the code below to make a box around equations. It puts the equations numbers outside the box, however I would like to have the equation numbers within the box. How can I alter my code to do ...
2
votes
1answer
43 views

How to use \makebox in \tl_map_function?

While trying to answer LaTeX for music I came to the problem that I can’t use a \makebox inside the function for a \tl_map_function:NN call. The problematic line is commented out in the following ...
2
votes
1answer
284 views

Invisible and unselectable text

For alignment reasons (for boxes that align themselves on the text they contain), I currently use this command : \newcommand{\uplowtext}[1]{ \transparent{0.}TJPtjp \transparent{1.}#1 ...
2
votes
1answer
51 views

Unexpected change in pagination when 'no' change in contents, using `boxedmini2e`

I am using the package boxedminipage2e to produce several framed boxes with some text inside. Because these boxes have a fixed height and width, I am expecting that whether or not these boxes contain ...
2
votes
2answers
145 views

vertical center aligned inside align environment

How can I make the top of the aligned pack vertically aligns with the x ->? How can I use a box or something to achieve this? (There are other options of course but I would like to use box or ...
3
votes
1answer
94 views

Print size of box to latex output

I need to know the dimensions of many objects in a given unit. Essentially I need the size \fboxes would have would I draw ones around the objects. Can I use the typeout command and a modified ...
4
votes
1answer
149 views

Boxes in tikzposter

I designed a poster with the style tikzsposter. My problems are the too big distances between title of the poster and a box and the position of the text in a box I tried already the options given in ...
1
vote
2answers
122 views

Remove space between consecutive fbox commands

I type several fbox commands and for some reason the boxes are separated with small spaces: MWE: \documentclass{article} \usepackage{fullpage} \setlength{\oddsidemargin}{-15mm} \raggedright ...
6
votes
1answer
58 views

XeLaTeX misplaces ActualText box

The following MWE uses accessibility features of PDF provided by the package accsupp to replace the content of the selection corresponding to BBB with ZZZ in the string AAABBBCCC. ...
2
votes
1answer
54 views

Increase vertical space for tikz boxes

Problem: This problem is two-fold: How would I do in order to increase the top and bottom margin for the orange box where it says "Code if true"? How would I do in order to always align the orange ...
1
vote
1answer
63 views

Create generic containers that dynamically expand for text

Problem: I am trying to create color containers that can hold text that vary in size. What I have not been able to figure is what method you should use in order to achieve this. Example 1: ...
1
vote
1answer
62 views

Making text appear in a box [duplicate]

Sorry if this is similar to previous questions, but I need to check if this is the best solution. My issue is that I am writing a document which contains HTTP messages for example of a snippet: ...
1
vote
0answers
39 views

Complex formed/shaped boxes (with coloured rim/frame and height as specified in \begin{minipage}[height=…])

This is the first question I ask. I honestly searched though the topics and I haven't found a solution yet and I even find it difficult to describe in a short title what is looked for in the german ...
3
votes
1answer
210 views

How to avoid underfull \hbox when using subfigures?

When compiling the MWE below with pdflatex, I get the warnings Underfull \hbox (badness 10000) in paragraph at lines 26--27 and Underfull \hbox (badness 10000) in paragraph at lines 36--37. I tried ...
2
votes
1answer
61 views

Create link of empty box

I make my first attempt on a beamer template. I created a simple graphic with my company logo and some fields as header (background for title). Now I would like to use the logo as home button. In ...
1
vote
1answer
66 views

Breakbox box placed on a new page instead of breaking the page

I made a list of serveral items that I'd like to be framed. That was no problem with \fbox{...}. Since the text is not longer than 1 page, it goes straight to the next page insteat of starting in the ...
6
votes
1answer
110 views

Why hbox does not start a new paragraph?

These two produce the same result: abc %\null def \bye abc \null def \bye These two are different: abc %\null def \bye abc \null def \bye Does anybody know where this behavior is ...
4
votes
2answers
345 views

how to get a newline in \fbox?

I am trying to have two lines in inside \fbox but is not working. Below is my code \documentclass{beamer} \usepackage{vietnam} \begin{document} \begin{frame} \frametitle{Exhaustive Search} ...
4
votes
2answers
192 views

Table with multirow, multicolumn, interior braces and vertical entries

Partly as a challenge and partly because I wanted an electronic copy, I sat down last night to try to LaTeX the following complicated table: The first problems I encountered were the size and the ...
1
vote
2answers
235 views

Fbox'ed minipages with fboxsep=0pt, fboxrule=0.0001pt and colored border

I have arranged within approx. 20 minipages a data plot, several pictures with attached labels taking columnwidth, columnsep of the twocolumn paper format etc into account. For debugging purposes, I ...
3
votes
1answer
65 views

Smashing diacritics on all uppercase characters

I need all uppercase letters with diacritics to have the same height (depth) of the corresponding naked uppercase letter. Motivation: obtaining a regular baseline grid when stretching the baseline is ...
4
votes
1answer
69 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
143 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
116 views

Add a fitted box to a multiline equation

I am trying to draw a fitted box around some equations. However, I was not able to control the width of the box. How can I achieve this? \documentclass{beamer} \usepackage{amssymb,amsmath,empheq} ...
3
votes
1answer
178 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
135 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 ...
1
vote
2answers
150 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 ...
5
votes
2answers
111 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} ...
3
votes
1answer
164 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
132 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
212 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
88 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
236 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 ...
3
votes
1answer
216 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} ...
8
votes
2answers
383 views

Difference between \framebox{$$} and \boxed{}

I want to put an equation in a frame box. Is it the same that if I create a framed text box environment first then put the equation inside or use the environment \boxed{}? ...
0
votes
2answers
76 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.
5
votes
1answer
134 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?
1
vote
1answer
717 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
212 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
108 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
92 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
110 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
198 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
247 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
124 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
0answers
79 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 ...