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

learn more… | top users | synonyms (1)

3
votes
1answer
82 views

Last word of paragraph appears on new page after figure

I use a figure environment without placement specifiers, and it ends up being put on top of a page, with the very last word of the preceding paragraph put just below it. This means that the page with ...
1
vote
0answers
71 views

Insert a line-break in online equation editor [closed]

How do you do a carriage return (line-break) when using the Online LaTeX Equation Editor](http://www.codecogs.com/latex/eqneditor.php)? I have written: \documentclass{article} {a_n^m} \Return ...
1
vote
1answer
96 views

Manual line break in tabular (tabu) breaks the layout of other columns if not using X column parameter

I know this problem has been discussed many times, and the proposed solutions were to use yet nested parboxes inside table cells, but I would like to avoid that. Up to now, I was using my table with ...
7
votes
1answer
160 views

How to prevent a stranded comma on the next line?

In this document, where I am replicating my original document in order to get the issue I am highlighting here, a comma is stranded on the next line: \documentclass[a4paper, 14pt]{extarticle} ...
2
votes
1answer
37 views

Maintaining indentation in a long Ensure-block with algorithmicx-package

I have a long "Ensure-block" in my algorithm. How can I force the second line to be exactly under the first "Text"? \documentclass{article} \usepackage{algorithm} \usepackage[noend]{algpseudocode} ...
7
votes
0answers
54 views

lineno package has different output in pdflatex and lualatex [closed]

Using line label references from the lineno package prevents lines from being broken at explicit hyphens in words adjacent to the label. Consider the following MWE: \documentclass{article} ...
3
votes
1answer
74 views

Line-breaking unformatted URLs that contain no hyphens

Minimal example: \documentclass{article} \begin{document} https://path.to.really.long/url/that/contains/no/dashes/but/instead/a/whole/lot/of/forward/slashes/which/makes/it/exceed/the/page/width ...
2
votes
1answer
132 views

why changing page margins using geometry package causes bad math inline break?

I had no idea that changing page margin size can cause problems with line break with in-line math. I have this MWE that shows one problem. I like to make the page margins smaller, so I can fit more ...
5
votes
2answers
70 views

Add optional text that may be invoked by tex to avoid bad boxes

I'm currently writing a very long document and whenever I switch styles (I know, I shouldn't do this as often) I get tons of bad boxes, mainly due to long, unbreakable pieces of math inside a ...
8
votes
1answer
97 views

Get the automatically produced line and page breaks from LaTeX

My aim is to produce an html-file with the same text as the pdf produced by LaTeX- The html shall represent the pagination and line-break structure of the pdf: When there is a linebreak in the pdf I ...
5
votes
2answers
172 views

Include a line break in algorithm-caption while maintaining indentation

I've a question about the alignment of the caption in an algorithm-environment. For instance, the following code-example \documentclass{article} \usepackage{algorithm} ...
2
votes
1answer
151 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 ...
3
votes
1answer
66 views

Add line break after every line

When I enter this C = B log(1+SNR) 270.88 = 200 log(1+SNR) The two lines are printed on the same line. I can force a line break by using \\ but this is very annoying. Is there a way to ...
5
votes
1answer
818 views

avoid linebreak in \lstinline if possible

By using \lstinline{mysourcecode} I put some code within my document. I would like to avoid that this code is broken to a new line, if possible. so, if the codeline itself is less long than a full ...
4
votes
1answer
45 views

How can i make (force) a paragraph to be justified and have a specified number of lines

How can i make (force) a paragraph to be justified and have a specified number of lines? Intra-line spacing is not important, but the paragraph should be completely rectangular. Below is a minimal ...
1
vote
1answer
127 views

Linebreak in biblatex citation

I am using biblatex and really liking the flexibility, though I have to say there are too many options for a single person to understand in a lifetime :-/ So far I do two things with cited ...
4
votes
1answer
164 views

Equally distribute text among a given amount of lines; automatically adjusting the width

Given some text, I want to centrally align this text on a given amount of lines. For example, \documentclass{article} \begin{document} Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, ...
2
votes
1answer
47 views

Too long math “formula” inside the text [duplicate]

It's possible that someone already asked it, but I'm unable to find something about so I've to ask again. I'm having this problem: I will put a math formula inside the text using the $ $ environment ...
1
vote
1answer
37 views

Adjust line spacing after new line

I would like to adjust the line spacing under a section when I add a new line. \setlength{\parskip}{} does not work because it only changes the spaces between sections, not between newlines (\\). ...
2
votes
0answers
31 views

Setting color text to improve eye movement from the of one line to the start of the next? [duplicate]

The web site http://www.beelinereader.com/ provides a chrome browser extension which colorizes paragraphs so that moving your eyes from one line to the next is much quicker than with just black ...
9
votes
2answers
2k views

Adjust the indentation whithin the algorithmicx-package when a line is broken

I have this code \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm} \caption{Minimal Working Example for my Problem} ...
0
votes
0answers
42 views

How can I cancel line break between items in bibliography biblatex?

I use biblatex. I have problem with linebreak between bibliography items. I have for short url: The space between the organization and url is not optimal. I want nolinebreak between organisation ...
3
votes
1answer
30 views

Tables with fixed column widths and language switching

I'm trying to typeset a German-Slovak vocabulary list and some grammar. Since table entries might get long, I'm using tables with p-columns. For correct hyphenation, I want to switch to Slovak in the ...
24
votes
6answers
9k views

How do I make LaTeX push long citations to a new line?

When I use the \cite command for my citations, often LaTeX will overflow the margins for my lines, and the text looks pretty bad. How can I make LaTeX push long citations to the next line ...
2
votes
1answer
125 views

Syntax of Using Math Mode: Empty Lines (Beginner Question)

I'm just starting to learn LaTeX. I tried typing \begin{equation*} (sample of different operators and symbols separated with \,) \end{equation*} and I got a whole bunch of errors. It seems LaTeX ...
4
votes
1answer
104 views

problem with newcommand with line break \\ and tabular inside

I define a new command \nonBranchingRule that takes 3 arguments. Intuitively, it defines a rule where the last argument is a comment (optional argument) for the rule. I want to place the comment under ...
3
votes
0answers
94 views

Is it possible to allow linebreaks in the ISBN number of (auto-generated) bibliography files?

I hope it's not a duplicate but I was not able to find a solution. I generate my *.bib file using Citavi. The problem is, that if the ISBN number is near the end of the line it generates overfull ...
0
votes
0answers
23 views

Line Breaking Question with Polyglossia

I am working with multiple languages (with polyglossia), and I am having issues with extra line breaks where I don't expect them. See the minimal example below. The line surprisingly breaks after ...
5
votes
2answers
569 views

Adding a blank line in algorithm2e

Is there any way to add a blank line in algorithm2e? I have the following document: \documentclass{article} \usepackage[linesnumbered]{algorithm2e}% http://ctan.org/pkg/algorithm2e \begin{document} ...
1
vote
0answers
19 views

Breaking lines of code using using mcode [duplicate]

I am using the following code in the main tex file: \usepackage[numbered,autolinebreaks,useliterate]{mcode} and this code in the appendix file: \lstinputlisting{C:/path/function.M} Considering ...
76
votes
1answer
35k views

What is the difference between \newline and \\?

As far as I know, \\ and \newline both insert a new line. But they do not have an identical expansion and tracing shows they do not execute the same commands, so what is their difference?
0
votes
0answers
28 views

Line breaks in source code [duplicate]

When composing an article in LaTeX, where is it appropriate to break lines in the code? An easy (and adequate) answer is, 'Wherever you like,' but is there a commonly accepted standard (e.g., after x ...
4
votes
2answers
306 views

Bold, horizontally and vertically aligned, multiline table headers

I'm trying to print a table where the first row, containing the header, should be bold and both horizontally and vertically centered. Additionally, I'm using longtable environment from this package, ...
4
votes
2answers
52 views

seqsplit does not work unless the string is given as an argument directly

Consider the following example. If I do \seqsplit{ReferencedIDs} the string does not get split. If on the other hand, I insert the string as an argument directly it does. As usual, I don't know why ...
7
votes
2answers
498 views

How to avoid citations being placed on a new line when \blockcquote ends with a list?

When csquotes's \blockquote and displaycquote ends with a list the citation is put on the next line after the list rather than directly after the last list item. Can one force csquotes to place the ...
3
votes
4answers
151 views

Vertical align content of table - with using automatic linebreak (tabularx)

I'm searching for (simple) method to get rid of the unbeatiful white spacing that is creating by using for example this minimal example. \documentclass[12pt,a4paper]{article} ...
5
votes
1answer
214 views

Line break in modern beamer theme impossible?

I use the new LaTeX beamer theme mtheme by Matthias Vogelgesang (see http://bloerg.net/2014/09/20/a-modern-beamer-theme.html). As some section titles are a little longer I tried to break the titles ...
0
votes
0answers
30 views

Does not break word into parts for a new paragraph [duplicate]

When I use \texttt{}, it does not break it into parts for new paragraph. Do you have any idea?
1
vote
1answer
40 views

How to add an empty line between two formulars

I have the following code \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
6
votes
2answers
291 views

Problems with tilde (~) and line breaking

I'm trying to avoid a line break between the word "Table" and the number reference for that table. Following the advice of another Q&A, I went through my whole document and replaced all spaces ...
2
votes
1answer
159 views

The correct way of making vertical spaces between paragraphs

This little piece of advice is all over the web: "Do not break the document flow in LaTeX." So what is the "correct" way of making an "extra large" break between two paragraphs (the same thing you ...
0
votes
1answer
69 views

biblatex prevent page numbers from linebreaks within the bibliography

I'm using biblatex with the alphabetic style. I've noticed that line breaks after the dash between the page numbers (e.g. for journal entries) could occur. Is it possible to prevent this and make the ...
2
votes
1answer
103 views

aside in XeLaTeX can't break line automatically

I downloaded a resume template and try to modify it. However, when I modify the email address on the left aside. Since my email address is much longer than the previous mail address within the file. ...
1
vote
0answers
30 views

How to prevent linebreak in the word “.NET”? [duplicate]

Sometimes, LaTeX breaks the word ".NET", leaving the dot on the previous line and putting "NET" on the next line. Can I force it to put all four characters either at the first line or at the second ...
6
votes
4answers
247 views

LaTeX package “titling”, titles with hard line breaks, and \MakeUpperCase

I have a document with a title that is spread over several lines using hard line breaks. To configure the title formatting, I use the titling package with code adapted from its documentation: ...
9
votes
2answers
1k views

Avoid line break between em-dash and the next word

I'm writing a text in Spanish, and I have a phrase wrote between em-dashes (that work like parentheses). The problem is that if the "opening" em-dash is too near the end of the line, then it may ...
2
votes
1answer
1k views

\medskip doesn't seem to work

I've just begun using TeXShop but seem to have come across a problem - I have a centered section that uses a \medskip right after a newline. Like so: \begin{center} Some text \\ Some subheading \#1\\ ...
15
votes
1answer
42k views

In-line \verb — overfull hbox problem

I'm having a problem that I've had before and I'm tired of hacking my way through it and hope that there is some supported solution. I'll go ahead and create a document for example: \documentclass ...
1
vote
1answer
42 views

Correct linebreaking on comment text for sidecaption using memoir class

I use some tricks to have a good \sidecaption command for the memoir class. But how can i have a correct separation between title name and some possible comments on the figure ? Figure 1.1 : My ...
3
votes
2answers
170 views

Breaking problem in tcolorbox — break at — breakable

My MWE, \documentclass[a4paper,twoside,openany,12pt]{book} \usepackage[left=1cm,right=1cm,top=2.5cm,bottom=2.5cm,marginparwidth=0cm,marginparsep=0cm,outer=1cm]{geometry} \usepackage[T1]{fontenc} ...