{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.

learn more… | top users | synonyms (1)

1
vote
0answers
27 views

line exceeds margin in cover letter [duplicate]

I used newlfm to create a cover letter. However after I made some pieces of text bold, italics and underlined, some lines exceeded the margin. I then used \sloppy. Still, there is one line that juts ...
30
votes
2answers
1k views

How to visualize the underfull box in final output PDF files

I am finalizing a document. There are a few underfull vbox I just cannot figure out where they are. Sometimes it is easy to figure out which page is underfull vbox from the log file, but sometimes it ...
1
vote
1answer
67 views

make a title for a poster

It will be very helpful if someone kindly help me fixing the title of the code below: \documentclass[a0,portrait]{a0poster} \usepackage{tikz} ...
3
votes
1answer
47 views

Text hypenation inside array-typed environment

I'm trying to write a cases or array environment, inside display mode, with some long line of text. The thing is I can't achieve a linebreak. I know for certain that array won't allow this. I also ...
5
votes
1answer
71 views

Greedy line breaks for 2 lines

I have some text to typeset which is short enough so that it fits to either 1 or 2 lines. I'm using \raggedright. I'd like to set up parameters like \hyphenpenalty so that as much as possible would ...
9
votes
4answers
5k views

Newlines after section headings in amsart

This latex code: \documentclass[9pt]{amsart} \begin{document} \subsubsection*{Animals} Rabbit horse monkey cow \end{document} Generates something that looks approximately like this: ...
2
votes
2answers
244 views

How can I make my title wrap in a tikzposter [duplicate]

I'm making a poster using the tikzposter document class, it's working nicely except that my title is too long and I can't make it wrap, I've tried \\, \protect, \newline and \par. \\ and \par throw ...
5
votes
1answer
105 views

Why might \\* (“line break here, but no page break”) not work, and how can one fix this?

One is often taught that "\\ causes a line break which is not a paragraph break" and "the variant \\* additionally prevents a page break". (I hereby acknowledge user egreg's admonition that "\\* ...
2
votes
1answer
93 views

Table with a single column using text-wrapping

I have a table with 3 columns. The first two just have cells with 1 or 2 short values which I do not want to wrap and I want to be the minimum allowed size. The 3rd column has a lot more text, and ...
0
votes
1answer
45 views

How to make tabbed newlines

I need to make my text look like this for a homework assignment, how can I achieve that? (Sorry if the title or tags don't fit, I don't even know how this is called)
2
votes
1answer
121 views

Using Sagetex on cloud.sagemath.com, is it possible to make Sageblock code wrap automatically?

Creating a LaTeX document on the Sage Math Cloud. Whenever I use a sageblock, I end up with endless typesetting warnings because the notes and code inside the sageblock does not automatically wrap ...
13
votes
2answers
412 views

Breakable period

LaTeX will not insert a line break before or after a period . I understand why you'd want to avoid line break before a period, since you'd otherwise get stranded periods at the end of sentences. I ...
5
votes
1answer
394 views

Latex Table - \smallskip breaks vertical lines

I am creating a table, in which I want to separate groups of lines, using \smallskip. However, at the very left of the table there is a \multirow cell, whose vertical lines are now broken. Is there a ...
2
votes
0answers
24 views

Curly brackets with long content cross the margin [duplicate]

I wonder if there is a way to break a line when it is too long with a curly bracket crossing the margin. Thanks. \documentclass[12pt]{article} \begin{document} blablabla blablabla blablabla blablabla ...
3
votes
1answer
113 views

How to prevent globally and strictly Overfull by relaxing Underfull or justification?

To suppress overflows, on one extreme, we have ragged layouts which suppress justification : \usepackage{ragged2e} % ...
26
votes
1answer
559 views

Why does TeX prefer an overfull box to hyphenating here?

Here is a short file which produces an overfull hbox: \documentclass[12pt]{report} \usepackage[left=1.5in,right=1in,paperwidth=8.5in,paperheight=11in]{geometry} \begin{document} \trivlist ...
4
votes
1answer
49 views

How can I change the low, med, high penalty settings for \linebreak? Or perhaps there's better way of breaking lines?

This question really belongs as a comment to Applications of various strength of \linebreak command but unfortunately my reputation is so low that I'm not allowed to comment. ...
0
votes
1answer
83 views

How to paste a line break into the find box

This is a very, very simple question, but I can't seem to find an answer anywhere. I pasted a document from Word into TeXnicCenter. The tabs copied over nicely, and I can paste those into the find ...
229
votes
17answers
150k views

How to add a forced line break inside a table cell

I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following: ...
6
votes
2answers
154 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 ...
3
votes
2answers
62 views

Reducing spaces

I have a paragraph in itemize. The paragraph is a long one as as a result it moves to a new line. However, I want to reduce the interline space. I have used \baselineskip but it is making the text ...
4
votes
1answer
111 views

What, in the custom class I use, prevents line breaking in listings?

I have found how to wrap code inside lstlisting block. When my document has article class, everything works as expected. However, when I change the document's class to one I need in my work, lines do ...
3
votes
2answers
52 views

How to run \IfSubStr on a macro parameter that may contain a newline

I have a macro where parameters may contain newlines but when one does, everything seems to break. How can I prevent this problem? I also want \IfSubStr to look for a match anywhere in the ...
2
votes
1answer
46 views

Line breaking of URLs at “-”

I have a URL in my bibliography which line-breaks in an unpleasant way. The URL breaks as follows: http://www.mathworks.se/help/matlab/matlab_oop/(break) implementing-operators-for-your-class.html I ...
6
votes
1answer
203 views

How to do a conditional line break

I want to know how to do a conditional line break. Whenever the error message "There is no line to end here" comes, I want to disable the line break, otherwise to enable it, with a \\ command or ...
4
votes
3answers
98 views

How can I put the vertical line using multicolumn?

How can I fix the vertical lines? \begin{landscape} \begin{table}[htbp] \caption{Cronograma de Actividades} \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} \hline ...
2
votes
1answer
72 views

Separate sectioning titles for main text, headings, and toc for line breaking purposes

I am using the titlesec package with the toctitles option, which modifies the optional argument of sectioning commands so that this optional argument is used only in headings; the non-optional ...
6
votes
2answers
180 views

Using \\ to Start New Line [duplicate]

When I was initially learning to use LaTeX, the professor who taught me the basics instructed me to use \\ as a way to end a previous line and start a new line of text. However, many of the veteran ...
0
votes
0answers
52 views

Why Latex cannot compile when I add “\left[ ]\right” [duplicate]

Successful code: \documentclass[a4paper,cs4size,UTF8]{ctexart} \usepackage{amsmath} \usepackage{mathtools} \usepackage{amssymb} \begin{document} ...
4
votes
0answers
51 views

Why `\\` is wrong here? [duplicate]

The following codes return errors \documentclass{article} \begin{document} cd\\ [asd] \end{document} But this one will work \documentclass{article} \begin{document} cd [asd] \end{document}
0
votes
0answers
73 views

Overfull in option of thm when using “showkey” usepackage

I have a problem when using the showkeys uspackage, I get overfull in the option of the thm statement. and when I remove the showkeys it breaks automatically. I do not know the error might comes from ...
0
votes
1answer
40 views

Reduce the number of lines of a paragraph [duplicate]

How can I tell Latex that I want my paragraph with n less lines? I saw a question some days ago, but after twenty minutes of heavy searching (I think), I found nothing. There is a “penalty” or ...
3
votes
3answers
62 views

Formatting a large matrix across multiple lines

I have the following latex to create a matrix: \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amsthm,amssymb} \usepackage{graphicx,ctable,booktabs} ...
3
votes
2answers
113 views

How to remove unnecessary space in flalign* environment

This is the first time I've ever used TeX and I'm super confused as to why this is happening. When I used the flalign* environment within the enumerate environment, it leaves line break after the item ...
1
vote
0answers
86 views

Extremely long equations giving overfull hbox

I am using wxMaxima for doing homework. I have extremely long mathematical equations. I exported my work to a .tex file. But now I have several overfull bad box warnings. I tried to use geometry ...
1
vote
0answers
98 views

Line break long chemical names that contain brackets

I have some very long chemical names that are spilling into the margins, and I'd like to just tell LaTeX how to hyphenate them automatically so I don't have to manually go back and insert hard line ...
15
votes
3answers
538 views

How to obtain perfect greyness with TeX?

Greyness, or typographic color is the apparent blackness of a block of text. I would be curious how you deal with improving it in TeX. How much can TeX's inherent line-breaking algorithm be fine-tuned ...
3
votes
1answer
67 views

What spacing/justification change might fix this hbox overfill in an enumerate environment?

I'm planning on cleaning up a large TeX file for viewing on an e-reader (hence, small page size), and as I'm new to TeX I'm practicing on a sample file and following these instructions. However, I'm ...
43
votes
5answers
11k views

When should I use non-breaking space?

DEK gained a reputation of painting red the draft dissertations of his students, taking particular note of incidents when they omitted a non-breaking space that should have been included. I have this ...
5
votes
4answers
720 views

How to add a line break in math mode but number the whole as one formula?

I am trying to get the following formula on two lines like this: \begin{equation} W \in \mathbf{M}_N \rightarrow W' \in \mathbf{M}_{N+1}\\ (w_{ij})_{1\leq i,j\leq N} \mapsto (w_{ij})_{1\leq i,j\leq ...
7
votes
2answers
827 views

LaTeX is crossing its limits

Pardon for the funny title. I have a large report in the middle of which there is a sentence Let $\mathcal{L}$ : $\mathcal{O}$ $\rightarrow$ $\mathcal{S}$ be a function This shows in the report as ...
2
votes
1answer
119 views

Tabular seems to create huge white space between lines

I am having a strange problem with a document I write. When I insert a table latex produces huge white gaps between the text lines and sends the table to the next page. I thought two possible ...
3
votes
2answers
130 views

Splitting the equation on two lines

I have the following equation (as you can see I have used split): \begin{equation}\label{testequation} \begin{split} d_{m}^{\phi}\left(A,f\right)=\sqrt[m]{\mid ...
3
votes
1answer
268 views

Typesetting mathematical formulas in line breaking

When you typeset a mathematical formula is there a rule regarding the breaking of the formula in a new line, meaning if for instanse the formula breaks in a plus sign (+) or in a equal sign (=) then ...
8
votes
1answer
752 views

Overfull hbox in biblatex

I just ran into a problem using biblatex with a long author and title: The output extends past the right margin of my text, because biblatex does not insert a linebreak before the date. Please see the ...
3
votes
1answer
56 views

Obeylines in letterhead

when I am writing a letter and using the class scrlttr2. I would like to use \obeylines for the address, so I can just paste an address into my latex source code, i.e. somewhat like this: ...
6
votes
1answer
118 views

Is there a standard for automatic line-breaking for text with various alignment types?

The context is that I'd like to not have to manually choose newlines and rather eyeball the length of text and possibly specify the number of lines or horizontal width the text should take up. I'm ...
2
votes
1answer
76 views

Line break in table [duplicate]

I want to go on writing in the first array but in a new line. The command \\ is not working for this. Can anybody help me please? My code is: \documentclass{article} \usepackage[landscape]{geometry} ...
3
votes
2answers
80 views

\hyphenation does not work

TeX trys to hypehnate my word "universeller" in a totally wrong way. It makes it to "Üniverseller" and removes the quotation marks in the front before. When I use \mbox it writes the word over the ...
4
votes
1answer
161 views

Left-aligning URL with line breaks in bibliography

URLs break fine in my bibliography. My problem is that they are justified which creates a gap between "URL:" and the URL itself (see below). Is there a way to left align only the URL? I am using ...