{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
23 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
94 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
41 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} ...
192
votes
16answers
111k 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. Something like this: \begin{tabular}{|c|c|c|} ...
3
votes
2answers
43 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
74 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 ...
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
55 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{ ...
4
votes
1answer
58 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 ...
5
votes
2answers
77 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 ...
36
votes
4answers
8k 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 ...
3
votes
1answer
51 views

Error with nested environment and forced linebreak inside tabbing

I reduced the offending code to this: \documentclass[12pt,a4paper,notitlepage]{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} \newenvironment{foo}{}{} ...
2
votes
1answer
149 views

Why Latex does not start a new line automatically?

Here is the preamble of my latex file: \documentclass{article} \usepackage[margin=.5cm]{geometry} \usepackage{lipsum} \begin{document} \lipsum \end{document} My problem is the text in the document ...
1
vote
2answers
28 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
41 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 ...
8
votes
4answers
4k views

How to add line break to caption without using caption package

I wish to add a line break to a caption, but I would wish to avoid adding of caption package. Is it possible? \documentclass{article} \usepackage[format=plain, ...
2
votes
0answers
51 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
46 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
39 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
411 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
54 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 ...
2
votes
1answer
63 views

Overfull bad boxes with natbib

I have a problem with the \citep command of natbib, namely, that I get a lot of bad boxes (overfulls). Most of these happen within a citation. I tried \usepackage[square, authoryear]{natbib} (as ...
6
votes
1answer
62 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
64 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 ...
27
votes
2answers
966 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 ...
2
votes
1answer
32 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
39 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 ...
4
votes
2answers
92 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 ...
9
votes
2answers
159 views

How to get listings that both feature line breaking of long identifiers and keywords highlighting?

I'm currently writing a book chapter in bioinformatics, and I would like to provide my readers some useful command lines to invoke recent software. To that purpose, I'm using the listings package to ...
1
vote
1answer
58 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
99 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
1answer
77 views

I can't find/fix the errors in order to be able to compile it

\documentclass{article} \usepackage{amsmath} \begin{document} $These are two truth tables for the following: $\neg (p \vee q)$ is logically equivalent to $(\neg p) \wedge (\neg q)$ ...
23
votes
4answers
8k views

Prevent line breaking in inline math, but allow flexible spacing

How can I easily tell Latex to prevent line-breaks inside a part of an inline formula, without affecting inter-word spacing? Writing something like $ab(c+d)$ in Latex is bad: Latex might put a line ...
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} ...
1
vote
1answer
65 views

break on @ symbol in table cell

I have a table that often overruns the width of the page. I figured out that if I format the cells as paragraphs with a set width then LaTeX will wrap the contents of the cell. However, the column ...
2
votes
1answer
38 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
137 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]{ ...
6
votes
3answers
2k views

Underscore makes text go past end of line into margins

In my LaTeX document, I have a few special terms that contain underscores, such as AAA_BBB_CCC. In one case, such a token is placed at the end of the line, and for some reason it reaches into the ...
3
votes
3answers
71 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 ...
64
votes
9answers
21k views

Forcing linebreaks in \url

I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the ...
7
votes
2answers
2k views

Biblatex: Removing underlining of journal title and enabling line break of it

I'd like to use authoryear-comp for my bibliography. However, I'd like to suppress underlining the journal title that seems to be set default. Also, I got the problem that a line break is not ...
7
votes
1answer
33 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 ...
0
votes
0answers
50 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. ...
2
votes
1answer
57 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
45 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 ...
2
votes
1answer
40 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} ...
0
votes
1answer
71 views

Line break in author list for elsarticle document class

I'm using the Elsavier document class elsarticle where the authors are added with individual \author{Bob} commands. I have a long list of authors (generated randomly for this example): ...
3
votes
2answers
105 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} ...