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

learn more… | top users | synonyms (1)

4
votes
0answers
60 views

How to do a conditional line break - edited

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
27 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
35 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
120 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 ...
2
votes
1answer
52 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
769 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
69 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 ...
7
votes
1answer
79 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 ...
2
votes
1answer
46 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
97 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
34 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
50 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
42 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
61 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
56 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
79 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
33 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
45 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
53 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 ...
7
votes
1answer
47 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 ...
6
votes
2answers
40 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 ...
24
votes
1answer
415 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
63 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
15 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
35 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
67 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
70 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
33 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} ...
4
votes
2answers
101 views

Automatic line-break in tabular

Sorry if I've missed the answer in another post, but I've literally spent 3+ hours googling this problem now. I'm making a tabular and I'd like to to automatically do a like break rather than going ...
4
votes
2answers
41 views

Problems with line-break in Chapter Title using a custom Command for Chapter

If you have to force a line break in a chapter title, this would be possible doing so: \chapter[][A Long title that has to be broken,\\ how sad is this!] But in my document I had to define my own ...
1
vote
1answer
59 views

Very ugly stretched Text

I got an enumeration within multicols that's very ugly stretched when there's a line break. How can I prevent this?
5
votes
1answer
100 views

Can \\ be omitted in verses?

As far as I know, a double line break introduces a new paragraph. Within verse this is used to separate stanzas, which can also be done with \\!. So in LaTeX source code for long, standalone poems, ...
1
vote
2answers
37 views

custom newline style in environments

I want to add something to each newline, like this: \documentclass{article} \newenvironment{mystuff}{dark magic goes here}{or here} \begin{document} \begin{mystuff} first row second row \end{mystuff} ...
2
votes
1answer
44 views

float row figure box - two lines in caption

I am trying to get the caption on two lines with this command but using \\ does not work. If anyone know how to do this it would be helpful \begin{figure} \begin{floatrow} \ffigbox{% ...
7
votes
4answers
144 views

Line breaks of math expressions in subfloat environment

I would like to show a figure in which there are a graph representation above its edge and node lists in LaTeX. I have written something like this: \begin{figure}[!ht] \subfloat[First figure]{ ...
3
votes
3answers
77 views

How to use `\newline` after an item list?

Concretely, this is what I am trying to do: \documentclass{article} \begin{document} \begin{itemize} \item This \item That \item Where \end{itemize} %if I put \newline or \\ here it ...
0
votes
0answers
51 views

Numbering figures in beamer while using the caption package [duplicate]

I am trying to number my figures in beamer while using the package caption but it doesn't work. I want to use caption because I can break a line with \\ and I like the way the caption is formatted. ...
7
votes
1answer
36 views

Line break in siunitx product numbers

I was wondering if there is a way to allow for line breaks within product lists of the siunitx package: \documentclass{article} \usepackage{showframe} \usepackage{siunitx} \begin{document} This is ...
2
votes
1answer
59 views

How to wrap section?

I would like to wrap the section. How can I do it? The following code is my MWE. \documentclass[b5paper,10pt,twoside,parskip=half,numbers=noenddot,bibliography=totoc]{scrbook} ...
3
votes
1answer
46 views

condense non-numbered bibliography into one line

What I am trying to do is basically the same as (almost) answered here: http://tex.stackexchange.com/a/5574/39336 The difference is that I am using a different bibstyle. This bibstyle creates the ...
3
votes
2answers
106 views

Space between images

I use \\ for line breaks like the followings. I am wondering if there are better ways to do rather than adding \\. Thank you in advance for your help. \documentclass[fleqn]{article} ...
2
votes
1answer
47 views

newline in description of `newglossaryentry`

How is it possible to get a newline at the beginning of the description? So the description starts at second line? MWE: \documentclass[11pt,english,ngerman,numbers=noenddot, headsepline]{scrreprt} ...
9
votes
1answer
124 views

How to float something right even if it wraps down a line?

I have a situation where I have some data in section headings (and sometimes normal paragraphs} that needs to be: floated right not split across lines I was able to accomplish this for most cases ...
4
votes
3answers
57 views

cellspacebreak macro

(I am rolling my own little system to take my LaTeX file and convert it to reasonable HTML and Epub. I have run into the following problem.) I would like to keep my tabulars very simple. There are ...
5
votes
1answer
57 views

How to enable line breaking in the standard proof environment with amsmath?

I want to redefine the proof so it accepts linebreaks in the name \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax \trivlist ...
5
votes
2answers
122 views

Manually break lines like auto-breaking in lstlisting

I would like to decide where the long line should break, but with actions pre-/postbreak and without advancing in line numbering. I've tried that one: \documentclass{article} \usepackage{color, ...
10
votes
4answers
299 views

How to break this long radical into multiple lines?

I've got a very long radical in a display-math environment, so long that the equation spills in the right margin. How can I break that equation over multiple lines, so that it doesn't go into the ...
3
votes
1answer
47 views

Make a command start new line in a list if it is not currently at the end of another list

I am trying to typeset a structured proof as demonstrated by Leslie Lamport in his paper How to Write a 21st Century Proof. In particular, I am trying to typeset Figure 3 (shown below). My code and ...
4
votes
1answer
65 views

Bigfoot - problem in automatically or manually perform line breaks

I am using the bigfoot package in order to have two categories of footnotes along with the parameter para, in order to place the footnotes one after the other. The problem I am facing is on the line ...
5
votes
2answers
152 views

How to break a paragraph between double {}

Document class I use the following document class: sig-alternate.cls The document class can be found at: http://www.acm.org/sigs/publications/proceedings-templates Problem: I have the following ...