{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

0
votes
0answers
5 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 ...
3
votes
2answers
36 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. ...
2
votes
1answer
15 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
21 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
62 views

how to design a box like this [on hold]

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
19 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} ...
1
vote
1answer
20 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 ...
3
votes
2answers
77 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
37 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, ...
34
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
65 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 ...
2
votes
0answers
31 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
48 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
48 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
27 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
50 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
38 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 ...
2
votes
1answer
86 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
42 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
38 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
27 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
16 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
88 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
60 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
54 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
89 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", ...
0
votes
2answers
31 views

How to avoid underfull boxes in itemize?

I am using an itemize as shown in this example: \begin{itemize} \item \textbf{The First}\\ Some text here over fifty lines.... bla blah \item \textbf{The Second}\\ Other text here ...
1
vote
1answer
45 views

Making set length text box

LaTex noob here. Im looking for a simple way to make a box in latex that won't expand to fit the text. I have been trying to use a minipage within a fbox but it keeps expanding. I have been trying to ...
2
votes
1answer
59 views

Beamer box problem

I am working in "Frankurt" theme on my beamer presentation. Sometimes I am faced with overflow problems. For example: \begin{frame} \begin{definition} \begin{multicols}{2} \begin{enumerate}[a)] \item ...
7
votes
3answers
183 views

Building custom text-box using tikz

I'm trying to build a Dungeons and Dragons style LaTeX-Template and would like to recreate a certain box-style as seen here: Using tikz I managed to recreate the rough shape but I don't have any ...
0
votes
0answers
26 views

long remark box

I have the following remark box. However, the text that I'd like to add in it could fit in 2 pages. \NewEnviron{myremark}[1] {\par\medskip\noindent \begin{tikzpicture} \node[inner sep=0pt] ...
3
votes
1answer
106 views

How to create theorem boxes

I wrote a chapter for a book, and we use a structure.tex with a lot of definitios and macros. Now I'm writing other book and I would like to use those kind of boxes as below. Note that when the box ...
1
vote
0answers
29 views

How to make marginal boxes that respect page breaks

At the moment, I'm using a combination of \makebox and \parbox to insert labels into the margin in my thesis. For the most part, this works, but occasionally I have a long label that doesn't quite fit ...
3
votes
2answers
77 views

Express boxes properties in tikz coordinates

In my understanding, any LaTeX box displays such fundamental properties: .. and anything is wrapped into a LaTeX box. So, when I produce a tikz picture, it must be somehow wrapped into a box. ...
1
vote
1answer
71 views

How to wrap the title in an a0poster with a page width color box?

Current Preamble I want to wrap the top part of my document with a colored banner, spanning the entire page width and to the very top of the document. Here is my preamble and title section: ...
5
votes
4answers
170 views

Spacing after \vtop

There is insufficient spacing between the lines in the MWE, made using an \hbox filled with two \vtop boxes. \parindent=0pt \newdimen\linewidth \linewidth=4in \newdimen\colsep \colsep=1em ...
3
votes
1answer
75 views

How can I do unvbox when define macro?

This is another approach to solve the problem in question "How can I write to file part of text between two flags?". I try to "remember" parts of text to use them later. So, I do \newbox\@tmpbox ...
1
vote
1answer
40 views

How to move contents of fbox to top?

My question is how to align things in fbox in general but here's the clumsy solution I came up with: \documentclass[12pt]{article} \begin{document} { \fontfamily{qag}\selectfont \fbox{\vbox to 3in ...
0
votes
0answers
48 views

Underfull \hbox (or \vbox) and Overfull \hbox (or \vbox)

I'm currently using the dis class with strong requirements on text with and text heigth. After compilation of my latex file I got a lot of warnings of the following kinds Underfull \hbox (badness ...
2
votes
2answers
67 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 ...
5
votes
1answer
39 views

Allow user to specify multiple values with one command

I am attempting to define a macro that can be used to specify the names of committee members for a thesis/dissertation. I would like to allow the user to specify this command multiple times to add ...
0
votes
1answer
46 views

Overfull with two columns, one small box and one big box, how can I deal with the overfull without breaking the boxes?

I have a twocolumn document with some sections where I use some box type of content (tcolorbox for instance) On one of the page, I have two boxes, one small and one big. The big one is too big to fit ...
2
votes
1answer
75 views

Drawing colourful box in a A4 page

I am writting my masters thesis. I want to put 2x2 block boxes in some pages. For example: I can add as image but I do not want to do that. I can draw box using tcolorbox using the following code: ...
2
votes
3answers
192 views

How to draw this diagram in Tex

I am trying to draw the attached diagram in Tex (the attached is from Microsoft Word). Happy to make some tweaks, but it needs to look something like this. Thank you very much! edit: could you give ...
1
vote
2answers
91 views

colorbox around parbox too big

I want to typset some text with colored background and outline, that spans the whole \textwidth. I tried to get this with a colorbox surrounding a parbox. It works in some way, but the colorbox is ...
5
votes
1answer
87 views

Can tcolorbox enhanced boxes be combined with TikZ externalisation and save boxes? If so, how? If not, what's the best workaround?

I am getting the following compilation error when combining TikZ-enhanced boxes from tcolorbox with TikZ's externalisation: ! Argument of \tikzexternal@laTeX@collect@until@end@tikzpicture has an ...
2
votes
1answer
42 views

Itemized in a box with auto scaled width [duplicate]

I would like to have an list (itemize) with a box around it. I know that \framebox doesn't work, because it doesn't support line breaks. Also I don't want to use \parbox because I'd have to set the ...
3
votes
3answers
69 views

\savebox forgets its content across columns inside align

I want to save part of an equation, which is to appear in a single column in a multicolumn align environment. It works as long as I \usebox inside the same column, otherwise it appears blank. Here's ...
3
votes
3answers
79 views

reuse of \newsavebox and avoiding compilation warnings

The answer here may be obvious but I can't find it. I use \newsavebox in many routines and for different purposes. These are saved globally and I guess are a reasonably precious resource. In all ...
3
votes
1answer
77 views

How to renumber a theorem environment with mdframed package?

I have the next document, which compiles fine. I want to change the numbering of theorems according to the number of section or chapter (view image). I wrote: ...