{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
2answers
130 views

Color-box behind inline text / inline math without vertical space

I'd like to provide a ‘background-colour’ for spans of code or math inline with text, in the same way that CSS allows. I've tried to do this with \colorbox, but unfortunately, that seems to add ...
0
votes
0answers
24 views

New colored box environment [duplicate]

Is there someone who can do the followig: I would like to define a new environment for a colored box with a title that I can call as follows: \begin{mybox}{*Title*} ** Text ** ** Math ** \end{mybox} ...
175
votes
1answer
48k views

What are the different kinds of boxes in (La)TeX?

I've seen hbox, vbox, mbox, parbox and others used in various code samples. What are the different kinds of box in (La)Tex? Which are suitable for use in LaTeX, as opposed to plain TeX?
0
votes
1answer
29 views

The first box is slightly shifted when using tcbraster

I am writing a small manual for my students to learn the most common LaTeX commands that we use in class. My main problem is that the first box inside tcbraster (and tcboxedraster as well) is always ...
1
vote
1answer
31 views

Why does titlesec make boxes thicker and how can I fix it?

I am trying to give my section headings a light grey box around the text. However, for some reason, when I add the titlesec package (which I am using to format chapter titles) it changes the ...
0
votes
1answer
25 views

Adjust the location and size of beamer's framebox for a custom theme

I am trying to create a simple custom beamer theme for presentations by my lab at school. Our department has a relatively nice powerpoint theme as shown below which I have for the most part ...
1
vote
2answers
73 views

colored boxes diagram with text

I am trying to represent a diagram with boxed like in the pictures: So, 4 diagrams as showed below. The problem is that I do not know how to make them colored, with the math signs and the text in ...
9
votes
1answer
7k views

How to control the vertical height of boxes

I would like to create boxes where I can control the height of the boxes. Right now I have used the command. \colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}} This gives me a box that ...
2
votes
1answer
25 views

Fbox increase the spacing between the box and it content (inner margin)

Is there a way to control the top and bottom spacing between the box and it content (text)? and secondary about left and right spacing? in other words i am looking for the analogous of \arraystretch ...
4
votes
1answer
62 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
39 views

\framed and \itemize with custom item labels

This question is a slight extension of this previous post and in particular the answer by @knut. Unlike the situation in that post, I also have my own custom labels for each item, i.e. my code looks ...
51
votes
4answers
24k views

\parbox vs. minipage: Differences in applicability

Lamport, LaTeX: A document preparation system, states on p. 104: There are two ways to make a parbox at a given point in the text: with the \parbox command and the minipage environment. They can ...
3
votes
1answer
54 views

clip box environment to height/width

Is it possible to clip a tabular in a box environment, so rows outside the box are hidden? \documentclass{article} \begin{document} This is a table with multiple items: \begin{minipage}[t][1cm][t]{0....
2
votes
1answer
42 views

Box with dashed border

How can I modify the definition below to get an unfilled box with thick dashed lines around it and rounded corners? I don't want it to be numbered either. \newmdtheoremenv[outerlinewidth=2,...
0
votes
1answer
47 views

formatting a cover letter - footer with logo

I am having a hard time to position and align with logo a footer for a letter. attached is the type of footer i d like possibly with a ruler before. I am using a template with a class file. % % ...
2
votes
2answers
94 views

List of Unused \newbox, \newcount, \newdimen, \newskip, etc

Want a appropriate command to list out unused Box, Counter, Dimension, Skip from the CLS/STY file.
4
votes
2answers
378 views

How can I write like this example and boxs in latex

How can I write like this example and boxs in latex thanks very much
6
votes
1answer
227 views

How to get box dimensions within lualatex

I'm new to lualatex, which looks phenomenal. I wonder what the easiest way is to access the dimensions of a box from within lualatex. I intend to use it in more complicated situations than this (as ...
1
vote
1answer
42 views

Clash between amssymb and MnSymbol

Following from another post Margin notes on both left and right? I am having problems while using both MnSymbol and amssymb in the same document. It says ! LaTeX Error: Command\centerdot' already ...
39
votes
4answers
84k views

Attractive Boxed Equations

I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider \documentclass{article} ...
2
votes
2answers
1k views

Breaking Page with Boiboites Package TikZ

I have a problem with package Boiboites I'm writting an exercise enunciate with this package who occupies more than one page, but i cannot break the page. Here's the code: \documentclass[11pt,...
0
votes
2answers
45 views

Chapter Styling with background color out of textwidth

I tried to use hbox/wbox, tabular and colorboxes. Just look at image and this source. Could anybody help with correct styling? \documentclass{book} \usepackage{lipsum} \usepackage{tcolorbox} \...
3
votes
2answers
43 views

Drawing separated dashed/filled rectangles (sub-tables) within a tabular environment

Please, I need to draw a table that looks exactly like the following one Thickness is not important here, but rather the grouping and shading of symbols in rectangular sub-tables within the main ...
0
votes
1answer
27 views

Customize font size

What is the best way of using (large) custom font sizes in latex documents (e.g., for title pages)? I thought of using \scalebox. I have also seen there exists a \newfont command - can this be used?
2
votes
1answer
52 views

Text boxes that cover several pages

I am trying to faithfully reproduce the first section of the standard UK Police Witness Statement Form, known as an MG11. I am having difficulties lining up the boxes for the front page with the box ...
0
votes
2answers
42 views

How to create a breakable whitebox with fixed height

I want to create a whitebox with empty space (in order for people to write in it when the document in printed) but i can't find any solution to do that. I tried tcolorbox but I can't fix the height of ...
1
vote
1answer
43 views

table and box over certain cells

I was trying a way to make a box for a certain part of my table like the following Is there a way to create the red box? My code so far for the table: \begin{tabular}{cccc} \toprule &...
1
vote
1answer
40 views

Box around item in Beamer environment

I want to put a box around the last item of the main itemizing structure (the item starting with "Set ...") of this slide. Any help? \documentclass{beamer} \usepackage{etex} \usepackage{graphicx} \...
1
vote
1answer
49 views

New environment special colored box

I would like to construct a new environment that I can call like: \begin{Box}{*Title of Box*} ** Text ** ** Math equations ** \end{Box} It shall have the following properties: The box ...
3
votes
1answer
56 views

“Something's wrong--perhaps a missing \item” error in \newenvironment using a \vtop box

In attempting an answer to "How to label a list / make a line before list stick with the list?" I answered using a \vtop box to contain the entire list including the label. I then, trying to improve ...
2
votes
1answer
35 views

An error using \mathit

A command is defined in the preamble to typeset the arc symbol over a pair of letters or a triple of letters. WinEdt compiles $\arc{AB}$ but not $\arc{\mathit{AB}}$. \documentclass{amsart} \...
5
votes
3answers
158 views

How to calculate width of remaining part of line

I wish to create section heading using titlesec like image But I have some difficulties in determining the width of remaining of line to include blue box containing section label, my method ...
4
votes
0answers
38 views

\write at the beginning of a table cell adds spurious vertical space

If a tabular column of type p (or a few others such as tabularx's X) starts with a write, this inserts some vertical space. MWE: \documentclass{article} %\usepackage{array} \newcommand{\writethis}{\...
7
votes
3answers
267 views

Environment to replace \vbox{\hbox{…}\hbox{…}\hbox{…}\hbox{…}…}

I am using LaTeX (LuaLaTeX,actually) and lately I found myself doing this a lot: \vbox{% \hbox{\strut foo}% \hbox{\strut bar}% \hbox{\strut baz}% } I use it inside tabular environments, ...
1
vote
1answer
29 views

Problems with `\declaretheoremstyle` `\headformat`

I'm trying to change the headformat option in declaretheoremstyle, but I'm getting errors, even when copying the code in thmtools that allows \headformat=margin. Here's my preamble: \documentclass{...
2
votes
1answer
35 views

Fixed position for boxes at the body area

First of all, I'd like to find a solution without Tikz (PGF) because I'll share this file and people could not be able to install additional packages. So simplest solution could be good. I'd like to ...
4
votes
1answer
56 views

How to make a layout with colored boxes around sections

I am trying to reproduce the following layout with latex: Is there any package or document class made for such a layout? The example is made in word using tables. But I think using tables in latex ...
10
votes
4answers
153 views

How can I align two boxes to the top right and top left of a surrounding box?

Assuming the following structure (auto-generated from another document), how should I define \csup and \csub to line the sup boxes to line up with the top of the neighbouring box, and the sub boxes to ...
16
votes
2answers
11k views

How to highlight important parts (with a gray background)

In the below link http://www.math.uiowa.edu/~goodman/algebrabook.dir/bookmt.pdf the author highlights anything which is important using a greyish color background. For example, if you see ...
3
votes
1answer
135 views

homework sheet solution

I would like to create homework sheet solution to looks like the following image My code \documentclass{article} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{...
1
vote
1answer
30 views

How to enclose texts and equations in the following types of boxes?

How to enclose texts and equations in the following types of boxes (for outputs see here), $$ \bbox[yellow] { e^x=\lim_{n\to\infty} \left( 1+\frac{x}{n} \right)^n \qquad (1) } $$ and, $$ \bbox[...
1
vote
1answer
63 views

LyX: How to change color of an individual Shaded Background Box?

I can change it globally by going to Document -> Settings -> Colors: Shaded boxes. However, what if I want different boxes to have different colors? For example, in my case, by default I set the ...
6
votes
2answers
108 views

Can two \vtop boxes exist side by side?

So I am trying to see if I can put two \vtop boxes side by side. The below is the closest I have gotten. This is a kind of a "plain-tex in latex" example. \documentclass[fontsize=13pt,letterpaper,]{...
100
votes
2answers
56k views

What does “overfull hbox” mean?

I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean?
2
votes
1answer
23 views

Align \boxed{} equation inside systeme*

I would like to know how can I align a *systeme** environment with only a \boxed{} equation belonging to it. The code I have produces the right system of equations, but the boxed equation is ...
3
votes
1answer
41 views

Space below the box in mdframed package doesn't appear

I am using the mdframed package along with the options skipabove and skipbelow and although the vertical space above the box is appearing, as it should, the space below does't appear! What am I doing ...
-3
votes
1answer
93 views

how to design a box like this [closed]

A how to design a box like this B how to design a box like this C how to design a box like this D how to design a box like this E how to design a box like this
1
vote
1answer
21 views

How to flushbottom in the middle of a page respective to the next page

Consider the following MWE: \documentclass[twoside]{article} \usepackage{lipsum} \usepackage{calc} \usepackage{printlen} \uselengthunit{mm} \begin{document} \newbox{\mybox} \savebox{\mybox}{\begin{...
2
votes
1answer
523 views

Creating a box framework for inside the formula environment

For a list of things to be used inside the formula environment, I want to create boxes stacked over each other. I basically want to write $$ A := "Box with lines like 'A is a number', 'A is bigger ...
16
votes
1answer
27k views

What is a “Overfull \hbox (9.89561pt too wide)”?

I have this warnings around, some of them seems to be solved naturally but I never really understand what do they mean. What this means? Edit: I would like to keep the question in more general terms,...