Skip to main content

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.

1 vote
0 answers
48 views

New environment as a single box [closed]

I am making my new environment for headings. It is as follows: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \begin{document} \newlength{\headspace} \setlength{\headspace}{3mm ...
Vladimir's user avatar
  • 589
3 votes
2 answers
449 views

How to scale \includegraphics to exact width and height?

I have an image foo.jpg. I would like to scale it into a box of an exact size, say 100pt wide by 200pt high. I may want to scale the axes independently, or I may want to preserve the aspect ratio and ...
Taylor R Campbell's user avatar
2 votes
3 answers
270 views

How to set the exact width and height of tikzpicture with pgfplots?

The pgfplots axis environment has options width and height to specify the approximate width and height of the picture drawn, but the resulting box is not exactly as wide or high as specified—it may be ...
Taylor R Campbell's user avatar
1 vote
0 answers
55 views

Missing Item number in enumerate while checking for empty text

This is a follow-up to Missing Item number in enumerate. Similar issue is reported, but only under very specific circumstances. In the prior question, the macro DoIfNonEmptyText is defined which ...
Peter Grill's user avatar
0 votes
0 answers
55 views

Changing from mdframed package to tcolorbox for framed theorems

I have been using the mdframed package for framed theorems in my notes. But there are a lot of problems related to spacing (e.g. bad spacing behaviour of frame right after section title) and page ...
Skadiologist's user avatar
0 votes
3 answers
78 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
71 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
66 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
  • 208k
2 votes
1 answer
66 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
  • 547
3 votes
2 answers
269 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
  • 157
10 votes
1 answer
485 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
147 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
  • 769
0 votes
0 answers
58 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
35 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
96 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
  • 8,618

15 30 50 per page