{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.
5
votes
1answer
48 views
Break box (a long caption) over pages
I want to have text of a certain width less than the page width, which goes across several pages. Normally you’d put text into a (\par)box to set its width but these boxes cannot be broken across ...
6
votes
2answers
70 views
title of a colored box
In an another post, beamer style text box, I've seen a box that I'm interested in making it. However, I would like to use it in a book, and I would like before the title to write: Definition (or ...
1
vote
0answers
14 views
Removing overfull and underfull box warnings
Always when I want to prepare a document with LaTeX I receive different warnings including underfull and overfull but I don't know how I can handle these warnings.
As you can see here I have two ...
5
votes
1answer
44 views
Box around several but different items in an itemize environment
I am trying to highlight, at the end of my slide, several items in a list with a box in something similar as in the method shown in Box around a few items in an itemize environment.
The difference ...
122
votes
7answers
25k views
Remove ugly borders around clickable cross-references and hyperlinks
I know that I can use hyperref to make cross-references and hyperlinks clickable. That makes the clickable areas outlined in fluorescent green, however. How can I make the green boxes go away?
2
votes
1answer
49 views
how to extend shaded to full page width?
I use "shaded" to indicate the reader that the text is about something special. This works fine but i can not extend the box to the full page with. How is this possible?
I use LYX and i can imagine ...
3
votes
1answer
63 views
vertical spacing on enumitem
In the example below I want the enumerate list to essentially be ``inline'' with the word Example from the example environment. It works perfectly with text or enumerate* (inline list), but I cannot ...
0
votes
1answer
108 views
Mimicking (*office) CV-layout in TeX
To me (who considers himself a TeX-beginner for a long while to come) it seems like quite a mountain to climb, with much guessworking required, to convert this CV template into a (reasonably close, or ...
2
votes
2answers
632 views
Remove the colored section box from moderncv
Using moderncv as follows;
\documentclass{moderncv}
\moderncvtheme[black]{casual}
I'd like to remove the coloured struts/rectangles/boxes, adjacent to section headings, from the output.
Can ...
5
votes
1answer
41 views
Header content higher than header heigth
Edited: based on the discussion below I created an interactive file to help people to understand the margins. I'd like to get your opinion about that.
You can access it here: Geogebra file to ...
16
votes
3answers
971 views
Color box with rounded corners around a fragment of a formula
Is there any way in TeX to highlight some part of a formula with a box having colored background and rounded corners?
At present, I need to export such formulas into an image, add those highlight ...
12
votes
1answer
118 views
Differentiating between \hbox and \mbox
What are the differences between \hbox and \mbox?
Related:
This answer to "What are the different kinds of boxes in (La)TeX?" discusses different boxes in general.
This answer to "Difference ...
6
votes
3answers
1k views
Extra space above boxed multi-line equation
Well, this question is not new. It was asked back in 2007 in texhax, and answered at the same time.
However, I couldn't apply the patch as mentioned in the answer, so I decided to ask it here. ...
4
votes
2answers
180 views
Boxed text between pages
I've made boxed text into a manuscript using tikz by following the example in texamples, it works like a charm as long as the box is short enough to fit into a page.
\documentclass{article}
...
4
votes
1answer
61 views
Equal separation between south of one node and north of another
I am new to TikZ and am trying to get these three boxes with equal spacings between the outer frames of the boxes such that the two arrows are the same length. I am going to have a flow chart with ...
9
votes
2answers
109 views
Multi-line box around a sentence in a paragraph
I am trying to draw a polygon box around a sentence within a paragraph. This box would wrap over multiple lines and terminate exactly at the end of the sentence (i.e. without white space filling the ...
9
votes
4answers
164 views
How can I have a verbatim text in specific sized box?
I am trying to typset the following
\resizebox{0.95\textwidth}{!}{%
\begin{verbatim}
require( "lattice" )
require( "grid" )
\end{verbatim}
}
I have a lot more to add to this box, and it needs ...
1
vote
2answers
54 views
Need to left align referenced image in mdframed Info box
I have been successful at creating a set of Warning, Note, and Info boxes using mdframed package, and they look very good. However, I need to left align an inserted image rather than have it on its ...
2
votes
1answer
32 views
algorithm2e with boxruled gives overfull hbox
I am using the algorithm2e package with the boxruled option to format my pseudo-code. However, I am getting an overfull hbox, which I suspect is due to margin/box conflicts.
Does anyone have a fix ...
3
votes
2answers
1k views
Draw box with colored background and linebreaks which adjusts to the text width?
I want to draw labels on a photograph. The labels will only contain 1..3 words, and sometimes there shall be a linebreak, e. g.
Big House \newline
(empty)
Is it possible to create a box which draws ...
4
votes
1answer
80 views
listings caption gray box meaning of code
Some time ago I copied this code from Stackexchange to have a nice gray box at the top of my imported source code which I displayed with listings:
\DeclareCaptionFont{white}{\color{white}}
...
6
votes
2answers
93 views
How to edit the length of a color box?
I've typed my Resume and Im using a color box, with a line underneath it. However the grey colored box doesn't reach the full length of the page width.
\documentclass[letterpaper,11pt]{article}
...
7
votes
3answers
594 views
How to construct a coloured box with rounded corners
Here is the specs of the box.
Color of the bar rule should be:
\definecolor{mycolor}{rgb}{0.122, 0.435, 0.698}
Radius of the 4 corners of the box: 4pt
Thick line = 0.5pt
Text should be 6pt ...
8
votes
2answers
61 views
\setbox containing maths interferes with surrounding math mode in XeTeX
I encountered what might be a bug in XeTeX (but I would be glad to be proven wrong) while chasing a strange interaction between bytefield, unicode-math, and mathtools.
In general, I do not expect a ...
7
votes
2answers
99 views
How to avoid the enlarging of a \vbox by \vbox\unvbox?
The \vbox{\unvbox ...} operation should remove obsolete vertical space. In the following case, additional vertical space appears somewhere inside the resulting box. The resulting \vbox grows from a ...
2
votes
1answer
67 views
how to centerlize a box in the very center of the paper?
I am trying to draw a box in the center of the current page (A4 size). I try the following code
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
...
1
vote
1answer
49 views
Horizontal boxes in article class
How can I have a box with multiple boxes inside like the following in the article class?
It should be at the beginning of the page on the left side.
3
votes
1answer
52 views
Bottom-right box
I am preparing a poster with LaTeX and I want my blocks to be only half boxed to the bottom-right. Which means that I want to draw a half box made of only two lines. Can anyone help me?
6
votes
2answers
151 views
Generate a square and line
how should i write a command to automatically place a box on the left side wherein this box can contain text and beside the box are lines which depends on an argument.
5
votes
2answers
108 views
Getting a particular kind of page border using background package
I am doing my project report using latex, and the format requires a particular kind of page border around each page. (Its a black thick box enclosing a thin box).
I saw this question,
Multiple border ...
1
vote
1answer
40 views
How to set \framed to make the baseline of the whole \framed as same as the first line in this \framed in ConTeXt?
An simple example:
\starttext
\setupframed[align=right,frame=off,offset=none]
\framed{A\hskip3em\framed{B\\ C}}
\stoptext
How can I set the framed which contains B\\ C so that the baseline of ...
4
votes
1answer
71 views
Highlight theorem environment using todonotes
I'm trying to highlight theorem-like environment (defined using amsthm) utilizing todonotes.
In the preamble I have:
\newtheorem{que}{Question}
\newcommand*{\question}[1]{%
...
3
votes
1answer
169 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 ...
4
votes
1answer
45 views
Removing boxes in a ytableau
I am attempting to draw a ytableau where I remove the boxes around the outermost part of the table. Basically, what I would like to do is remove the boxes around all of the numbers in the example ...
15
votes
1answer
346 views
Non-invasive replacement for \fbox?
I am trying to create a macro that improves on \fbox by working correctly in all cases and by being minimally invasive with respect to padding. What I've got so far works fairly well, but I'm having ...
1
vote
0answers
83 views
Covered Box Beamer Shadows [closed]
It seems to me that in beamer, a (rounded) box with shadows that is covered (transparent, normally visible on the next slide) has buggy shadows, I'm not sure if this is a know bug, or maybe an error ...
1
vote
1answer
73 views
Textbox on frontpage
in my thesis I would like to include a "textbox" in the lower left corner of the front page. It should contain the names of my supervisors. But I'm not able to put a box there, I suppose it has to do ...
5
votes
1answer
81 views
Creating form boxes with labels
I want to recreate a form with LaTeX, that can be filled by hand or --- of course --- via LaTeX. How can I create the boxes, with a footnotesized label at the top and enough space for the text to be ...
3
votes
1answer
171 views
Set the width of a fcolorbox
Hi a very basic question I'm sure, but is there a way to tell \fcolorbox in xcolor to draw the box of a certain width.
For example with \fbox I would do
\documentclass{article}
\usepackage{xcolor}
...
0
votes
2answers
145 views
How to put \algorithm and \algorithmic environments inside a box?
I want to put an algorithm inside a box. Here is the code
\fbox{\parbox{0.8\linewidth}{
\begin{algorithm}
\caption{My algorithm}
\begin{algorithmic}[1]
\scriptsize
...
\end{algorithmic}
...
4
votes
5answers
4k views
How to draw box around text that contains a verbatim block.
Typically, to box in some text, I use the following:
\fbox {
\parbox{\linewidth}{
This is some text! Blah blah blah...
}
}
However, say I have a verbatim block within that. It will ...
11
votes
2answers
11k 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}
...
4
votes
2answers
112 views
How can I box multiple aligned equations?
This question is two-fold. In my document, I currently have boxes around single equations like so:
\documentclass[11pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
...
3
votes
1answer
345 views
Breaking framed boxes across pages - or, a better design for a homework problem set?
My school's recommended homework document class file uses a boxedminipage to typeset problem statements so they appear in a box. However, this has the unfortunate consequence that they can't be broken ...
1
vote
1answer
83 views
footnote inside itemize
I know that I should use \footnotemark and \footnotetext{} (or not?) for putting a footnote inside an itemize environment, but when the items are split on more pages, I want the footnote to be placed ...
3
votes
1answer
59 views
can't put figures in a box
The other day I had a problem in creating an example that contained text and listings, I asked about that here: lstlisting in a box? David Carlisle found a very good solution for it, and after toying ...
62
votes
1answer
2k 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?
5
votes
1answer
80 views
Hide paragraph but keep space
I need a command that replaces its contents by white space of the same size. Unlike \phantom it should work paragraphs and/or images. It should do more or less the same as the \visible command of the ...
3
votes
1answer
88 views
lstlisting in a box?
My problem is that I am trying to write a document with coloured sections for examples. Examples can contain code listings. Somehow I can't seem to combine a background colouring with a listing, or ...
7
votes
2answers
329 views
Beamer overlay box around text - the correct way?
I have something that "works," but I'm wondering if there's a more elegant solution. I want to box some text after an itemize in beamer, so this is what I'm doing:
\documentclass{beamer}
...


