4
votes
1answer
91 views

very bad underfull hbox

I would like to include a progress bar in my presentation and, when in draft mode, a page number below the progress bar. I have the code to do this, and it looks great, but I get one instance of this ...
6
votes
2answers
105 views

What to do with both “underfull \hbox” and “overfull \hbox” in the same line?

I've recently read through my \jobname.log files to spot errors in typography. I came across this: Overfull \hbox (6.8925pt too wide) in paragraph at lines 650--651 [][]\T1/cmtt/m/n/10 ...
4
votes
1answer
224 views

Xelatex polyglossia hyphenation

Is there a way to make the polyglossia package solve the hyphenation problem that presents itself in the log as "Overfull \hbox" automatically? (Note: I find that having shorter lines—even for the ...
3
votes
1answer
83 views

Using savebox around the BODY of environ

I tried to use a \savebox around the \BODY macro of \NewEnviron. Can I keep the linebreaks somehow (they are gone, in the MWE)? \documentclass{article} \usepackage{environ} \newsavebox{\mybox} ...
1
vote
1answer
227 views

Text wrapping in a minibox?

For a class I'm given access to a LaTeX version of the homework so that it's easier to fill out. We're given boxes we're suppose to answer the questions in similar to: \begin{picture}(420,570)(0,0) ...
9
votes
3answers
144 views

Box with adaptive length

When I want to put formulas into boxes, I like the box to adapt to the length of my formula. For example, I don't want to put $1+1=2$ in a very large box. To address this, I use the command \encadrer ...
5
votes
1answer
479 views

Overfull hbox in tabular

In the following (M)WE, the tabular version of the Contact information from a CV gives an overfull hbox warning when compiled with pdfLatex, but the minipage version does not. Why? I have not found a ...
16
votes
3answers
695 views

Rounded box around placeholder text that supports line breaking

I want to draw a rounded box around a piece of text like that: The left and right borders should be half circles and line breaking should be supported. This my code so far: \setuppapersize[A7] ...
0
votes
0answers
34 views

Badbox in TexnicCenter.. How to solve it? [duplicate]

After compiling my Project in Latex, I got 206 badboxes of all the types you want. However, I can only see the reference of the Badbox, for example: Underfull \hbox (badness 1607) in paragraph at ...
5
votes
1answer
191 views

Newline Not Working Inside \pbox After Using \selectfont Command

I have the following command defined for a custom row of a two-column tabularx table with column specifiers rX: \newcommand{\pbrow}[2]{\pbox[t]{\linewidth}{#1} & \pbox[t]{\linewidth}{#2} \\} ...
5
votes
2answers
86 views

Boxes of zero height, depth and width unexpectedly affecting document spacing

I was adding some mark up for a roughdraft of a document I'm working on. But when I eliminated the mark up, the spacing and linebreaks came out differ. My intention was to create boxes of zero ...
0
votes
2answers
171 views

Linebreak in table cell at document margin

In order to allow line breaks within a table cell, I use \parbox. But when the cells I want to have line breaks in are in the last column of the table, the best thing would be to break them at the ...
2
votes
1answer
94 views

Prevent underful hbox in custom environment

I created an environment for a thesis about a framework, which formats documentation of some methods. The method(s) are at the top with one line per method, set with \lstinline from the listings ...
6
votes
1answer
117 views

Yet another overfull \hbox question

Consider the following example: \documentclass[a4paper,11pt]{article} \usepackage{showframe} \begin{document} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor ...
13
votes
2answers
246 views

Persuading (la)tex “silently to go beyond the envelope of 'good taste' ” to avoid an overfull hbox

My understanding, based on reading this website, is that (la)tex performs at most three passes when trying to typeset a paragraph: one based on \pretolerance, one based on \tolerance, and one based on ...
7
votes
1answer
311 views

Penalty or badness for linebreak near start or end of sentence

I would like to set a penalty or badness for breaking a sentence (or the contents of some \command{...}) too early. More specifically, I would like the penalty of a line break to be dependent on the ...
2
votes
4answers
636 views

Boxes overflow column

It's all in the subject. I used all kinds of boxes in a towcolumn article, but whenever the boxed text is long enough, the box happily continues into the other column! Is there a "smart" box that ...
2
votes
1answer
859 views

When I prevent hyphenation using an \mbox, the box gets pushed into the right margin

I've used \mbox to prevent LaTeX from breaking certain long words into hyphenated pairs. Now I have a new problem: the unbroken words are extending into the right margin. Here's some minimal sample ...
8
votes
1answer
539 views

Handling overflows in biblatex bibliographies

I'm finally making the transition to biblatex. This is a remarkable package, and has allowed me to cut out quite a bit of old code I used to use to handle eprints, DOIs, crossref mapping problems, ...
2
votes
2answers
330 views

Two paragraphs side-by-side and page breaks

I have a little mind puzzle here. This idea was bugging me since I saw a question about breaking cells in a table on a page break. Let's think of a table row that's built from cells that are ...
0
votes
1answer
96 views

Space for generated text

Throughout my PDF document, generated text on the end of the line is spilled out to the margin. That is, if I use, e.g., \ref{} or \cite{}, then LaTeX does not consider the actual size of the ...
4
votes
2answers
2k views

Suppress black box at end of line

Under TeX, when I write a line too long, it prints a fat black box at the end of the line. That is probably a feature, but I dislike it. How to turn that OFF? Is there a command-line option or ...
8
votes
1answer
378 views

Adding overfull hbox 'slugs' to final document version

I'm using a documentclass which looks dramatically different in draft mode compared to final. I'm preparing my document for the final formatting, so I don't want to pass the draft option. However I ...
5
votes
5answers
12k views

How can I insert a newline in a framebox?

I have several frameboxes in my document, using the following command: \framebox(115,115){ R-Sq: \newline For example} I want to force a new line, but neither \newline or \\ appear to work. Is ...
4
votes
3answers
451 views

Restricting the length of a line of text while allowing line breaks

While attempting to answer this question, I re-read Chapter 14 of The TeX Book (on how TeX breaks paragraphs into lines). It got me thinking: Is there a way to restrict the length of a string of text ...
61
votes
3answers
24k views

What are underfull hboxes and vboxes and how can I get rid of them?

Often, TeX outputs underfull hbox and vbox warnings when running and in the generated log file. What are these and how can I get rid of them?
62
votes
2answers
21k views

What does “overfull hbox” mean?

I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean?