Questions tagged [boxes]

{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.

Filter by
Sorted by
Tagged with
0 votes
3 answers
65 views

How can I remove the extra vertical space above and below this matrix?

I have written the following code: \documentclass[a4paper,twoside,12pt]{article} \usepackage[margin=1cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage{sansmathfonts} \...
Federico's user avatar
  • 113
0 votes
1 answer
53 views

Reduce size of integral box

I am trying to write an integral over quite a few factors. Everything put together will easily exceed one line, maybe even two. If I try to align everything with some align environment (be it align, ...
Sellerie's user avatar
  • 133
0 votes
0 answers
36 views

Why does a `tcolorbox` code listing box using `listing above text` not keep the output with the code?

I'm trying to use a tcolorbox to list code above output in a document with 2 geometries. My attempt is failing utterly and I can't figure out why. Here's the problem: The box is being split into two, ...
cfr's user avatar
  • 189k
2 votes
1 answer
52 views

How to center text-boxes and draw a rule from each box

I know my headline sounds highly confusing so let me provide you my MWE \documentclass{article} \usepackage{tikz} \usepackage[most]{tcolorbox} \newtcolorbox{frameGray}{enhanced, colframe=black,...
Leon's user avatar
  • 473
3 votes
2 answers
163 views

Remove horizontal spacing between \makebox and \dotfill

I want to present some information in a format which has a scenario described then dotfill to a right aligned result. If the scenario+result would fill the line, I want it to break to the next line ...
jw5801's user avatar
  • 95
10 votes
1 answer
427 views

Understanding boxes at the primitive level

I'm learning plain TeX as a nerdy hobby. My current project involves trying to divide the page into unequal columns. I only want to use boxes and glue, with no external dependencies, e.g. eplain. ...
Jordan Dennis's user avatar
0 votes
1 answer
60 views

How can I create a box for a combine of a figure and a table?

How can I create a box for a combine of a figure and a table? \documentclass[paper=b5]{scrartcl} \usepackage{tabularray} \usepackage{graphicx} \newsavebox\SomeNumbers \sbox\SomeNumbers{\begin{tblr}{...
hana's user avatar
  • 759
0 votes
0 answers
31 views

Overfull \hbox problem in Algorithm caption of ACM template

I faced a problem that my overleaf report that 'Overfull \hbox (8.5pt too wide) in paragraph at lines 92--92' I used 'algorithm2e' package for ACM template. Here is the test demo I used: \...
yuyang sun's user avatar
0 votes
0 answers
19 views

Vertically align parbox text with tabular text

I have a table made with tabular that's 3 lines and a parbox that's 1 line. I want the text in the parbox to line up with the first line of the table, but I can't seem to make that happen. I would ...
joshisanonymous's user avatar
3 votes
2 answers
67 views

Extra horizontal spacing of zero width box

I would like to add a pair of gray quotation marks around the text without affecting the surrounded text. For this I tried to use \makebox with zero width. However, I was still getting: To my ...
Jinwen's user avatar
  • 7,808
0 votes
0 answers
18 views

How can I reduce the height of box surrounding the `\rule`?

I want to make a fancy list of items (based on http://www.latextemplates.com/template/medium-length-professional-cv): \documentclass{article} ...
abukaj's user avatar
  • 127
3 votes
2 answers
38 views

\makebox inside 3rd argument of \setfoot generates error

If I replace the current version \setfoot with that commented out, I get: "Missing \begin{document}". I guess it has to do with the fact it is flushed right. \documentclass{article} \...
Erwann's user avatar
  • 2,070
0 votes
0 answers
40 views

If you were the word "box" and a word beginning with a letter "m" to describe `\mbox` what might your English phrase be?

Note that English phrase "mathematics blackboard bold" is an example of a super-sequence of \mathbb which has the same meaning as \mathbb. If you were the word "box" and a word ...
IdleCustard's user avatar
3 votes
1 answer
145 views

How do I put a box around a column in a matrix in Latex?

I want to build a matrix in Latex code and wrap some components of it with a square. For terms that are on the same line I managed to do it well. But for terms of different lines I am not able to do ...
Ramos's user avatar
  • 33
1 vote
0 answers
242 views

Collect information to render later

I am not sure I am using the right terms for describing what I want to do, so the title may be off. I want to be able to use a custom command like for example \PersonalData{Name}{Some Name} but not ...
Zelphir Kaltstahl's user avatar
0 votes
2 answers
101 views

Why are braces mandatory in boxes?

Both \hbox and \vbox (and similar box commands) require explicitly to enclose their content inside of curly braces, so they behave differently from macros. What's the reason of this specification? If ...
User's user avatar
  • 2,540
1 vote
0 answers
58 views

What English word does the `b` in `\bbox` represent? [closed]

Two of the LaTeX commands for building boxes are: The h in \hbox is a subsequence of the English word horizontal The v in \vbox is a subsequence of the English word vertical What English word might ...
IdleCustard's user avatar
2 votes
1 answer
71 views

Boxes in the diagrams package

I am trying to draw something like this using Paul Taylor's diagrams package I've tried e.g. \documentclass{article} \usepackage{diagrams} \begin{document} \begin{diagram} \mathrm{input} & \rTo ...
idontgetoutmuch's user avatar
0 votes
1 answer
28 views

Row of frameboxes overflows the margin by one box

Why, when I have a row of \frameboxes, does pdflatex try to fit one too many on a line, overflowing the margin? In the example below I would expect the first line to have three boxes and the second ...
Keelan's user avatar
  • 5,373
1 vote
0 answers
104 views

Highlight underfull boxes

Overfull \hboxes can be highlighted/marked in the output document by enabling draft=true or overfullrule=true in the \documentclass settings. Furthermore, slightly overfull or underfull horizontal ...
albert's user avatar
  • 927
0 votes
1 answer
90 views

How to use resizebox without changing the font size? [closed]

I tried resizebox command at textwidth (0.5) but then I noticed the fonts being shrunk. Is it possible to resize box without affecting the font size? Thanks in advance.
Dhirgham Murran's user avatar
1 vote
0 answers
44 views

Add a vertical line centered inside a framebox

I would like to have a vertical line inside my framebox. So my framebox should be divided into two equal halves. I haven't found anything about it in the forum yet. Here is a code snippet. \...
wayne's user avatar
  • 601
1 vote
0 answers
122 views

tcolorbox does not break and starts on next page

I'm a beginner with latex and would have liked to make a recipe book. Each recipe would be framed in a tcolorbox as shown on the screenshot below: The problem is that the boxes don't break if there ...
texduinopythcpp's user avatar
0 votes
0 answers
29 views

How to change a direction of growth for boxes?

I have read here that it is possible to change the direction of growth in horizontal boxes. Note: horizontal boxes can, of course, contain text typeset in right-to-left languages, such as Arabic or ...
Robert Manson-Sawko's user avatar
0 votes
1 answer
31 views

How to make multiple independent columns and then fill them horizontally?

I am implementing an idea for rendering authors. As far as I could see no other package could do it for me, but I am happy to be corrected. The idea is to place authors in several independent columns, ...
Robert Manson-Sawko's user avatar
2 votes
1 answer
78 views

Increasing natural height of minipage / fbox

I would like to define an environment encapsulated by a box where I am able to insert unspecified content (text, equations etc.), but where I can increase the natural height of the box. A minimum ...
DavidH's user avatar
  • 77
0 votes
0 answers
33 views

Subcaption box size in a TikZ picture

I want to insert auto-referenced labels (a), (b), ... for grouped pictures, but the node boxes which contain these labels come out to be too large: \documentclass{article} \usepackage{caption, ...
StaticZero's user avatar
0 votes
1 answer
103 views

Big Boxed equation with title using tcolorbox

I currently have this command: \NewDocumentCommand{\deq}{omo}{% \begin{tcolorbox}[ colback = blizzardblue!30!white, colframe = white, ] \setlength{\abovedisplayskip}{0pt} \begin{...
Peluche's user avatar
  • 579
2 votes
1 answer
90 views

Boxed equation with title and subtitle using tcolorbox

I'm looking for a method to improve my current command: \newcommand{\deq}[2][]{\begin{tcolorbox}[ colback = blizzardblue!30!white, colframe = white, top = -0.3cm, bottom = 0.1cm]\begin{flalign}...
Peluche's user avatar
  • 579
0 votes
0 answers
26 views

How to create a separate two-column box in two-column article

I am trying to implement a two column box for an abstract. Visually, it is very similar to elsarticle class abstract, except the text in the box is meant to be two-column, if twocolumn option was ...
Robert Manson-Sawko's user avatar
1 vote
2 answers
55 views

How to make a justified colored text panel with text continuing around it

I am a beginner to LaTeX and am trying to make a right or left-justified colored panel with text in it, while text continues around it. I have tried with both a minipage and with defining a textbox ...
jstor-poweruser's user avatar
0 votes
2 answers
68 views

Center a `tabular` table despite it overflowing the page slightly

I want to put a really large table (which is just ever-so-slightly larger than the normal page content) in the center of the page. Centering works well when the content fits, but I'd like to "...
Tanja's user avatar
  • 5
0 votes
1 answer
50 views

Why smash doesn't suppress the horizontal space of subscript with sum?

I try to understand the smash command, and I made a simple example : \documentclass{article} \usepackage{amsmath,amssymb, amsfonts, mathtools} \begin{document} \begin{equation*} \sum_{\...
mahaaaham's user avatar
5 votes
2 answers
222 views

Overfull hbox caused by paragraph consisting of a single line

I have a document using A4 paper and relatively smaller margins than default (3cm), so the line width is quite large. There are some paragraphs that consist of a single line, for which I'm getting an ...
Keelan's user avatar
  • 5,373
0 votes
1 answer
90 views

Why link box appears on the left side when it should appears on the right inside minipage

With this example I have created a clickable area on top of an image in right to left context, the result is fine outside minipage (clickable box appears on the right). But when repeating the same ...
Salim Bou's user avatar
  • 16.8k
2 votes
2 answers
230 views

Scale a letter but it keeps the original space

La\scale{T}eX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication ...
Gqqnbig's user avatar
  • 482
0 votes
1 answer
91 views

LyX: Change display color of multiple boxes?

I have a big LyX document with many of these boxes with background color "olive": On my old PC, these worked well. But I just got a new PC and for whatever reason, the text in these boxes ...
user avatar
0 votes
0 answers
52 views

Is there a way to set parbox to a maximum height?

This question is the opposite of this one. Instead of a minimum height, I would like a maximum height. Text after the exceeded height should not appear. I tried using: \parbox[][200pt][t]{0.3\...
Vebjorn's user avatar
  • 1,758
0 votes
0 answers
20 views

Ensure that box does not exceed a number of linebreaks

I have made a box that I do not want to exceed 22 lines. If it does it will overlap with some other text which is not desirable. How can I ensure that the text will not have more than 22 lines? I had ...
Vebjorn's user avatar
  • 1,758
2 votes
1 answer
55 views

Numbered boxes to "List of Boxes" in Optex

I'm trying to make a "List of Boxes" in Optex like the one offered by tcolorbox. I used two tricks for "round frames" and "new list of X" and "new caption" from ...
user574859's user avatar
0 votes
1 answer
84 views

About text floating into columns (vboxes again)

With the help of others, I managed to have text flow smoothly into columns. Finally, I got rid of the overflow, TeX does with limited vboxes. Now,a solution always implies the next question: If I ...
user284656's user avatar
-2 votes
1 answer
101 views

Improved: Questions about vboxes and their dimensions. Why are the vboxes extended over a given limit? [closed]

I'll try to improve the question: As you can see, the forth column is longer than the values shown and I have learned, that this not an extension of the \vbox, but an overflow. So, TeX does not want ...
user284656's user avatar
1 vote
2 answers
50 views

Displaying values of box sizes Why are the values of the box-dimensions displayed in a box the values from the previous box?

Why are the values of the box-dimensions displayed in a box the values from the previous box? \parindent=0pt \newdimen\columnwidth% \columnwidth=100pt% \def\text{This is the text to fill all the ...
user284656's user avatar
3 votes
2 answers
86 views

About spreading vboxes and their dimension

I have a \vtop box spreading to 40pt. The box does spread according to the actual text more than 40pt. Question is: Where and how may I get the value of the spread that is done by TeX to the first box?...
user284656's user avatar
6 votes
6 answers
1k views

How to split a page into four areas in tex

I would like to know how I can divide a page into four boxes with the same length and width. I attached a screenshot below. I am trying to make a page with four boxes and enter text in each box. The ...
djohn.math's user avatar
2 votes
1 answer
121 views

\hspace{50pt} no effect in the title of a tcolorbox

Please consider my minimal example and tell me why the \hspace{50pt} command has no effect in the box title. Is there another way to place an empty input field in the title? \documentclass[12pt,...
Z.J's user avatar
  • 389
1 vote
0 answers
59 views

How to make properly horizontally aligned a (\vbox) vertical box (\box_use) used in a corresponding environment?

Suppose I define a (\vbox) vertical box in order, in one hand, to compute the height of its content and, in the other hand, to (\box_use) use its content. The following MCE (that doesn't involve the ...
Denis Bitouzé's user avatar
1 vote
1 answer
265 views

Tikz breaking paragraphs into lines and placing them at different locations

I had this question about a feature that would make my life much much easier. Is it possible to take a paragraph, have TeX break it into lines, and then have tikz access the individual lines and place ...
yannis's user avatar
  • 1,952
3 votes
3 answers
307 views

Box around tikz-cd

About this code, I'd like to create two boxes around these tikz-cds. Is it possible? Thank you so much. The code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[a4paper,top=3cm,bottom=...
Puck's user avatar
  • 1,119
0 votes
1 answer
27 views

Framed boxes with borders that take up no space (like the effect of `outline` CSS property)

I would like to make some simple schemas using stacked or overlapping framed boxes with content. I could almost use a table instead, but I do not see how to do some of the "overlaps" in a ...
Alexey's user avatar
  • 2,007

1
2 3 4 5
32