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

learn more… | top users | synonyms (1)

2
votes
1answer
73 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 ...
5
votes
1answer
169 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
82 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} % ...
4
votes
1answer
36 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
57 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 ...
6
votes
2answers
106 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
54 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 ...
1
vote
2answers
31 views

LaTeX doesn't break lines with capitalized words to the end properly

I have a text like: Lorem ipsum dolor sit amet, consetetur BRANDNAME sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero ...
4
votes
1answer
102 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
43 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
41 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 ...
4
votes
3answers
70 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 ...
6
votes
2answers
133 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 ...
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
60 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
33 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
2answers
42 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 ...
3
votes
3answers
44 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} ...
1
vote
0answers
48 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 ...
6
votes
1answer
129 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 ...
1
vote
0answers
57 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 ...
3
votes
1answer
57 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 ...
5
votes
4answers
208 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 ...
12
votes
1answer
157 views

Does \\* within footnotes have any effect?

One is taught that \\* is an alternative to the line-breaking \\ that tries (often unsuccessfully) to inhibit a page break. Normally \\* would be used in ordinary ("body") text. (And I hereby ...
2
votes
1answer
82 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 ...
7
votes
2answers
801 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 ...
3
votes
1answer
139 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
269 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 ...
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} ...
2
votes
1answer
62 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} ...
6
votes
1answer
107 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 ...
3
votes
1answer
42 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: ...
3
votes
2answers
65 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
0answers
43 views

Minimum number of characters in the last line of a paragraph [duplicate]

Last line of paragraph should end with a minimum of five characters of the word. Is it possible to obtain this with LaTeX ?
4
votes
1answer
95 views

Splitting a very long word into several lines without using the \seqsplit package

I have a very long word (in a table tabular) that needs to be split up into several lines by using to the page margins. Normally I would use the advice given here and elsewhere but my word contains ...
4
votes
1answer
69 views

Problem with latex box

I defined a new command in order to create an empty box with a title. The code is the following: \newcommand{\mybox}[2]{ \textbf{\emph{#1}} \vspace{2mm} {\centering\fbox{ ...
5
votes
2answers
102 views

Line break with _

I have been searching what is the proper line break when using _ but I did not find any rules for that. I have a table which is too big and the content has to be divided into two lines. I have a name ...
1
vote
2answers
49 views

Line break after description label

How can I ger a line break after the label of a description environment item? I'd like to keep the indentation and the bold face for the item label, but I'd like to have the body of the item in a ...
2
votes
2answers
77 views

Simple newline in equation [duplicate]

I'm trying to line-break in the middle of a series of defined matrices. The code looks like: \begin{equation} I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, X = \begin{pmatrix} 0 & 1 ...
2
votes
0answers
89 views

How to make a line break in a TikZ matrix cell?

Can I use TikZ's own tools to make a line break in the matrix cells or do I have to use a tabular-environment or a \parbox? MWE (doesn't work, I included the faulty code) \documentclass[ 11pt ...
8
votes
1answer
70 views

Applications of various strength of \linebreak command

This is a curiosity-driven question. The LaTeX \linebreak command comes with five options, from 0 to 4, determining its strength. \linebreak[0] allows TeX to break a line where he normally does not ...
7
votes
2answers
58 views

Which choice of line-breaking parameters gives the minimum number of lines

Sometimes, you don't care about the "beauty" of TeX line-breaking algorithm, but just want that one or two extra lines in a document. When faced with such a situation, I start adding ~ at appropriate ...
26
votes
1answer
493 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
228 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 ...
4
votes
1answer
55 views

BibLaTeX: allowing a line break between citations for the same year in authordate-comp

I am using BibLaTeX, with the authordate-comp style. I have one citation where I cite seven citations for the same author for the same year, using \parencite. This results in a citation like ...
3
votes
1answer
46 views

Conditional Linebreak for back references

In my bibliography I use back references. Now, I would like them to appear flush right in the last line of my reference. This can be done easily with an \hfill. However, if the back reference becomes ...
6
votes
1answer
108 views

Allow/force word wrapping at ideographic spaces

I am making a set of flashcards to help me practice my kanji, and the format I want is quite simple: On the front, I'll have the character, and on the back I will have its meanings and readings (with ...
1
vote
5answers
98 views

Line breaking in equation

This is the equation I want to write in LaTex: I have read these advices, but for split and multilined commands it says that they are undefined (and also for multiline, but nevertheless this is not ...
2
votes
1answer
48 views

\tag{} causes line break in align environment. how to prevent?

while using the leqno and fleqn options of amsmath package tags tend to cause line-breaks: MWE: \documentclass{article} \usepackage[leqno, fleqn]{amsmath} \usepackage{mhchem} \begin{document} ...