{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
1answer
142 views

How make LaTeX interpret each line as a new line within an environment?

I have list of file names in a multicol environment. I can use sort commands on them when needed e.g. (sort -u). I would like to temporarily make LaTeX recognize a single-newline (\n) as a new line. ...
2
votes
1answer
26 views

What are the rules for placing & while using the split environment?

I have the following equation: \begin{equation} \left\{\left(a,b\right) \mid \right.\left. a \in A, b \in B\right\} \end{equation} And I want to force specific line breaking and alignment using the ...
2
votes
1answer
50 views

Break URL in figure caption [duplicate]

I'm trying to break a url that is part of the figure's caption. I used \burl but didn't work. What can I do? This is my main code: \documentclass[11 pt, letterpaper, oneside, openright]{book} ...
2
votes
1answer
22 views

How to left align sub-equations in which some sub-equations are split across multiple lines (with their own alignment)

I have a set of four sub-equations, which I each want numbered and left-aligned. The second and third of these sub-equations are too long for one line so I am using the split environment to manually ...
3
votes
1answer
62 views

Algorithm return statement does not begin on new line

I have the following code for displaying an algorithm: \begin{algorithm} \caption{Compute index of nearest grid point given particle position (1D)} \label{nearestGridPoint} ...
0
votes
1answer
64 views

Wrong wrap URL in bibitem - LATEX [duplicate]

I need fix wrong wrapped url. I tried a lot of examples but not helped me. Thanks. \documentclass [ing,male,java,dept460]{diploma} \usepackage [czech]{babel} \begin{document} ...
2
votes
1answer
29 views

How can I effect a line break in a listing's caption defined with \lstname?

I'm using the package listings and defined the caption as \lstname, so it shows the relative path and the filename when I use the input command of the listings package. However, sometimes, the ...
3
votes
1answer
34 views

How do you make a tight box using \begin{framed} and how do you skiplines in it?

I cant fit a tight box using this code: \begin{framed} \begin{flushleft} \# Description of the data \\ summary(training) \end{flushleft} \end{framed} and I dont manage to skip lines. Can anyone ...
3
votes
1answer
105 views

Long word wont go to next line

I'm using polyglossia package in my document and have some parts where I don't want to have hyphynation so I'm using \disablehyphenation command as documented. Now when I'm having very long words in a ...
9
votes
3answers
164 views

How to typeset Tibetan in XeLatex with correct linebreaks?

I am trying to typeset Tibetan language in a document, but the text does not wrap at the margin. I think this could be easily fixed if I tell XeLaTeX to recognise the Tibetan tsheg character ('TIBETAN ...
2
votes
1answer
40 views

Column overflow with \category in ACM proceedings template

I'm stuck using the acm_proc_article-sp class. The \category section is significantly overrunning the column width and infringing on the right column. I have been able to fix this by adding a \sloppy, ...
8
votes
2answers
11k views

How to make a title of two or more lines?

My document has a long title, so I want the title spans two lines. I've use this: \title{my title that must be in two or more lines} but it not works. How can I get it done?
4
votes
1answer
42 views

How to auto linebreak before/after parenthesis in inline math

I read this answer "Allowing line break at ',' in inline math mode" breaks citations I want to change ('s catcode automatically to avoid breaking some packages. ...
0
votes
1answer
16 views

Problem about the sizes of the brackets after linebreaks

I have a problem in the brackets of the following code: \begin{align} S = \int d^Dx \left\{ \mathscr{L}_{m=0} - \frac{1}{2}m^2(h_{\mu \nu}h^{\mu \nu} - h^2) - \frac{1}{2}m^2F_{\mu \nu}F^{\mu ...
2
votes
1answer
37 views

Splitting up an expression (that has braces)

I am trying to split up the longest set (the super long expression) here into multiple lines, I've looked at some other similar questions on this forum and tried a few different things but nothing ...
15
votes
1answer
1k views

How to break long URLs using common hyphenation but adding a line feed indicator?

I saw several questions like this one that request a solution for breaking apart URLs. I wonder if it is possible to hyphenate the words in a URL as it happens in normal text (i.e., breaking apart ...
1
vote
1answer
38 views

LaTeX produces lines containing only a point in the bibliography

If citations have a distinct length, the automatically set point at the end of the citation appears in the next line: I am using natbib with bibiographystyle agsm for my references. Here's my ...
3
votes
0answers
46 views

BreakURL package using DVIPS only works on URL and not DOI

I've prepared my bibliography using biblatex, and my DOI addresses are not breaking their lines properly. I know that using pdflatex will solve this issue, I have to compile my document using latex -> ...
2
votes
1answer
45 views

Make added hspace disappear if at a line break

Consider the following example \documentclass[a4paper]{memoir} \pagestyle{showlocs} \usepackage{amsmath,amssymb} \begin{document} \hspace*{8cm} text text text $\{ x\in X \, \vert \, \allowbreak x ...
3
votes
2answers
107 views

Redefining line break (double backslash) for align environment

I am trying to figure out if it is possible to (locally) redefine \\ (double backslash) within amsmath's align environment. On the one hand, I'd like to be able to dynamically insert extra columns, on ...
3
votes
1answer
80 views

suspended hyphen without linebreak between word and hyphen

I have a word combination like this metallo-porphyrins and -phthalocyanines which eventually gives a linebreak between the hyphen and the word phthalocyanines. I tried to include the ngerman package ...
2
votes
1answer
26 views

Cannot get line break in section heading in jss article. The section headings are centered

I am unable to get line breaks in my section headings - have tried all of the suggestions above. I am compiling in pdflatex and using the jss format. The section headings are centered for jss ...
3
votes
1answer
60 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
52 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
76 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
150 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
32 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
52 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
69 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
129 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
87 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
147 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
148 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
62 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
809 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
42 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
101 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
160 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
44 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
35 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
41 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
28 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
8k 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
122 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
88 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
90 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
21 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 ...