{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

2
votes
2answers
80 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.
1
vote
1answer
35 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 ...
0
votes
1answer
24 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 ...
4
votes
2answers
367 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
0
votes
2answers
39 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
41 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
23 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
47 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
0answers
17 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} ...
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
37 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
44 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
42 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
32 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
150 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 ...
0
votes
2answers
40 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 ...
4
votes
0answers
36 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
264 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
22 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
33 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 ...
3
votes
1answer
50 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
152 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 ...
3
votes
1answer
129 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
26 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
49 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
98 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,]{...
2
votes
1answer
21 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
40 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
82 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{...
1
vote
1answer
35 views

How to create a box with caption and label like a float?

I want to create a box (in which I put extra information for the reader) that behaves like a float. In other words, it should have a caption (outside of the box that says Box 1: Here is my box caption)...
3
votes
2answers
85 views

edit the minimum length of \hfill

Once again I have a pretty special problem: I'd like to edit the minimum length of \hfill. According to de.wikibooks it is a TeX primitive. Therefore, I assume, that it can't be edited. What is it ...
1
vote
2answers
64 views

Framed paragraph with double-line frame

Regarding various ways but most requires rigorous settings to embed a paragraph of words in a box or a frame with double-line box, I try to use a single commend to acquire the effect. However, ...
36
votes
2answers
2k views

Should I use ~ or \mbox?

~ stands for a non-breaking space, and \mbox{<text>} creates a box with text in it that cannot be broken (since its a "box"). I understand that \mbox has broader application than ~ (e.g. when ...
4
votes
2answers
69 views

How to make a box with fixed size?

\parbox[pos][height][contentpos]{width}{text} gives me a box where height is actually "minimal height", while width= exact width. I would like height to also be "exact height". How can I do this? Text ...
3
votes
0answers
40 views

How to justify escaped proportional text inside monospaced/fixed listing?

I have a fixed column listing on which I have escapped to LaTeX to write a proportional bit of text. The following pic illustrates what I have: On the green box, the proportional text have ...
2
votes
2answers
62 views

Checkboxes in front of labels

How do I create a checkbox in front of the label in an enumerate environment. I don't want to change the label to a checkbox, but want a checkbox in front of the label. So for example. Answer the ...
2
votes
1answer
61 views

Tip/Advice/Question box with a symbol on the left [duplicate]

Some books contain boxes with additional advice, tips or questions which have a signaling symbol on the left (like a question mark, an exclamation mark, a light bulb etc.). Is there a package which ...
1
vote
1answer
36 views

Supressing indent on the following paragraph

I have made a environment that formats some example text in a box that sets it apart from the main text of the book. It becomes a sort of a figure that the other text refers to. There is plenty of ...
1
vote
1answer
59 views

Box part of equation in align environment

I want to box, as an answer, an equation of the align* environment. Not sure how to do it. \begin{align*} (1+2i)z_2&=-11(2-i)\\ z_2&=\dfrac{11(i-2)}{1+2i}\\ z_2&=11i \end{align*} I have ...
2
votes
1answer
41 views

Mark lines like overfull

I apologize if this has been asked before. I have searched and searched to no avail, it seems questions about getting rid of over/underfull boxes drown out any questions about how to produce the marks....
2
votes
1answer
129 views

Two column CV - Create box on top of the document

does somebody know, how can I push this box under the address box? I added this code: I hope you can help me with this. Best regards, Gabriel Main file: %\title{My two column CV} % % tccv (two ...
2
votes
2answers
54 views

Minipage are not at same height with textbox

while using minipage, in the second column there is a text box. When I've used fbox in the second column then the text of the first column goes downward so height not remained same for both sides. ...
1
vote
0answers
75 views

How to avoid overfull and underfull boxes?

I can't solve my problem with overfull and underfull hboxes and vboxes. \usepackage{setspace} \usepackage{subfiles} \usepackage{nomencl} \makenomenclature \usepackage{color} \usepackage{tabularx} \...
1
vote
1answer
32 views

familydefault ignored when sbox defined in preamble

I would like to define my global family default once in the preamble. I would also like to define my save boxes in the preamble, but somehow the latter does not seem to work with the former, as it ...
0
votes
1answer
24 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 ...
2
votes
1answer
90 views

Line breaks in code affecting outcome appearance (boxes)

I fear the answer to my question might be obvious to many of you, still I couldn't explain it to me. Using a parbox in an fbox and changing the textcolor works out as desired. But I came across a ...
7
votes
1answer
69 views

inverse rounded corners

is there a way to use tcolorbox (or some other package) to create inverse rounded corners. By using the following code \begin{tcolorbox}[colback=red!5!white, colframe=red!75!black, arc=4mm, ...
1
vote
2answers
56 views

Determine the height of a box with a rule

\documentclass{scrartcl} \usepackage{calc} \usepackage{showframe} \begin{document} \setlength\parindent{0pt} \newsavebox\maintitleBox \newlength\maintitleHeight \newcommand{\maintitle}[1]{% \...
2
votes
2answers
102 views

Making a text box replace a \vspace

I have an enumerate list that has it's items separated by a \vspace {1 in}. Each \item is a question that needs to be answered within that space, and, I want to create a "possible answers sheet", ...