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

learn more… | top users | synonyms (1)

5
votes
2answers
93 views

Line break in texttt

I would like latex to break long text inside \texttt{} that does not contain any whitespaces. Currently the text just runs off the page. The latex document is generated from a reStructureText ...
2
votes
1answer
45 views

Dividing long sentence to several lines in table

I have a sentence in a table that is too long and makes my table go out of the page. How can I make the sentence divide into several lines so it doesn't ruin the layout of the table? ...
6
votes
1answer
2k views

Automatic line breaking for two-column text

I am using the following document class: \documentclass[twocolumn]{svjour3} Unfortunately, the two columns of output text just look horrible as they are not properly aligned on the right-hand side ...
2
votes
2answers
53 views

Stretch line to \textwidth without starting a new line

I have a figure, containing three subfigures with captions and a caption for the whole figure, that all together takes more than a whole page. I can change the geometry for the particular page where ...
1
vote
0answers
24 views

line-breaking across all document/objects automatically?

I find myself manually fixing long variable names between $$ and \texttt{} and other objects (there are plenty of those in my document since . Those fixes don't hold well after text changes, and ...
4
votes
2answers
53 views

Line Break with mhchem

I use the mhchem package for setting chemical formulas. In some occasions the formula just hangs over the end of the line. Is there any solution to fix this? Für die Abscheidung von \ce{Al2O3} werden ...
1
vote
1answer
26 views

Change some basic details about document type resume

I am writing my resume and using template "9b" from this website. However, there are a couple of items that I would like to modify. Here is the .tex file and corresponding screen-shot after ...
3
votes
1answer
25 views

“! LaTeX Error: There's no line here to end.” with the \boxput* function

I am trying to put some boxes on the second with the paquage \usepackage{fancybox} My code looks like that \documentclass{article} \usepackage{fancybox,color} \begin{document} ...
4
votes
2answers
75 views

Newline linespacing problems within a table cell

I have problems with the linespace inside a longtable environment when forcing a linebreak. Following code should illustrate the problem. ...
4
votes
1answer
37 views

Not sure why footnotes are going off the page

I can't find out why my footnotes are running off the page on the right margin. My beginning code is as follows: \documentclass[a4paper,12pt]{article} \usepackage{changepage} \usepackage{indent ...
1
vote
0answers
45 views

How to elegantly break long doi field

This is a code snippet from my paper. \RequirePackage{filecontents} \begin{filecontents}{bib.bib} @article{baumert62, author = {Baumert, Leonard and Golomb, Solomon W. and Hall, Jr, Marshall}, ...
4
votes
3answers
58 views

Line break in columns in booktabs table

Hi I want to fit the following table on to one landscape page: Therefore I want columns 2,3,4,5,6 to have a line break in the header row only. Also I want to be able to use footnotes and I need to ...
1
vote
2answers
149 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 ...
2
votes
1answer
61 views

How do I ensure that linebreaks in URLs occur at the right position?

I am writing my survey report using LyX. In my bibliography section, there is unusual behavior in my pdf. One reference breaks the margin. This is the issue You can see that one line is out of ...
2
votes
1answer
28 views

Breakline inside tabular whilst keeping the automatic line wrapping

I declared a macro like this: \newcommand{\itemcell}[1]{% \begin{tabular}[t]{@{}l@{}}#1\end{tabular} } Which is basically the macro that's always recommended on this website when people ask on ...
5
votes
2answers
103 views

Long URL extends into margin - it breaks at underscore, but too late

In my dissertation I have a long URL containing many underscore characters as word separators (Wiki software did this). These URLs break at an underscore (good!), but too late, causing the line of ...
1
vote
1answer
28 views

linebreaking when using raisebox in section

How to break the line when using raisebox command in \section. My MWE is : \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{lmodern} \usepackage{graphicx} ...
0
votes
0answers
18 views

Long url is not wrapped [duplicate]

In my report I have a long url in my bibliography section. it is not formatted as the other references. I followed this and this articles for that. But I cannot solve my issue. I am using LyX This is ...
2
votes
1answer
35 views

Multiple Institutes per Line in Title Slide

I'm making a talk in beamer where I have to acknowledge about 10 authors, all from different institutions. By default beamer puts multiple authors per line, but only one institute per line. Here's a ...
4
votes
1answer
46 views

Preventing line break in figure caption

I have the following figure with the corresponding caption: As you can see the caption inappropriately breaks the line, which I want to avoid. Optimally without simply reducing the font size of the ...
22
votes
5answers
7k 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 ...
14
votes
2answers
1k views

Copy from PDF without line breaks at end of each line

When I produce the PDF, open it and copy the paragraph into notepad, there is a forced line break at the end of every line in the PDF. Is there a way to get over this, so that I can copy the paragraph ...
4
votes
2answers
84 views

Two-lined brace in tikz node

I want to produce a timeline in the tikzpicture environment that looks like this: But my code, gives me the following: So I need the brace around both lines of my node! My code now looks as ...
1
vote
1answer
1k views

tabular tabularx automatic linebreak (p/m/b doesn't work as expected)

The following snipped should break at the end of the column \begin{table}[hb] \begin{tabular}{|l|p{.5\textwidth}|} \hline \bfseries Col 1 & \bfseries Col 2\\\hline \hline Line ...
13
votes
6answers
26k views

LaTeX equivalent of <br><br><br> in HTML?

In HTML, all I would have to do is: This is line one <br>.<br>.<br> This is line two to get the following output: This is line one . . This is line two I've been playing around ...
2
votes
2answers
75 views

How to insert soft return in LaTex?

I have one problem with my project. I want to insert soft return. If I insert \\ the text is not fully justified. Can I insert soft return like in MS Word? I have no idea how to fully justify first ...
2
votes
0answers
33 views

Best way on “how to prevent overfull boxes with parameters”

I need to prevent overfull boxes, so that there is never a line larger than \hsize. Is there a way to do this with parameters alone without setting \emergencystretch to a large value? The problem is: ...
2
votes
1answer
41 views

Force newline in sequence diagram comment

I am using msc package to generate message sequence charts, here is documentation. I want to make a comment in 2 lines, because it does not fit in one line on my page. I tried \newline but it didn't ...
9
votes
1answer
88 views

line breaking mystery in `\@dottedtocline`

I'm trying to understand why some entries in a table of contents are overfull even if a sensible break points exist. I pulled down the problem (and the definition of \@dottedtocline) to this example: ...
1
vote
1answer
71 views

Make longtable automatically fit page (line width)

I have a longtable in landscape mode that is automatically split on multiple pages when there are too many rows. I have solved the length problem. Now I have a problem with width, the rows are going ...
2
votes
2answers
50 views

Avoiding hbox overflow problems by falling back to ragged text

I would like the text in my LaTeX document to be justified, unless it would result in an hbox overflow (i.e., words overflowing into the margin). If an hbox overflow would otherwise occur, I would ...
1
vote
0answers
34 views

Change of chapter appearance

I got the following code for making the chapter appearance in [report] mode, which I would like to keep: \renewcommand{\thechapter}{\arabic{chapter}} \titleformat{\chapter}[display] {\bfseries\Large} ...
3
votes
1answer
313 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 ...
21
votes
3answers
7k views

Quote environment with reference at the end right

I want to define a quote environment such that after the quote on the right occurs the author with page number. My solution is yet the redefinition of the quote environment \usepackage{amsthm} % ...
3
votes
1answer
49 views

Can TeX tell me where it is breaking the lines and pages?

I am looking for TeX to tell me where in the TeX file it has broken the lines and pages. I put \label in every word or even character and then it does tell me something but sometimes it is still ...
1
vote
2answers
98 views

How to write a mathematical formula in 2 lines?

I have a mathematical formula with many symbols and Greek characters, but it is too big. So I want to split it in two lines. I use \\ between $, but it doesn't work. Does anybody know how to fix it?
10
votes
2answers
547 views

Environment to allow line breaks at “,” in math mode

I find the question and accepted answer to Allowing line break at , in inline math mode? very useful, BUT I would like to make an environment (e.g. "allowbreaks") out of it. The problem is that I'm ...
15
votes
5answers
2k views

Is it possible to skip the first line in a theorem environment?

I'm currently writing up some solutions, and I like to rewrite the problem before answering it. I've set exercise to be a theorem environment, and the code I'm using is \begin{exercise} ...
5
votes
1answer
37 views

Longtable Long Word wrapping issue

Im trying to wrap long words in a longtable and its not quite working right. some of the words spill over to the next cell. any help would be great thanks! \documentclass{report} ...
1
vote
3answers
67 views

Linebreak inside 'align'

I tried to linebreak inside math mode which did not work. So searching for that led me to try using 'align' instead. So I'm trying to break a line inside align with the following code: ...
46
votes
6answers
16k views

Prevent LaTeX to break an inline math equation

I hope this question was not asked before. At least I haven't found it. I have an inline math equation and LaTeX is breaking it into two parts. In this case I'd prefer to have the whole and short ...
2
votes
2answers
50 views

Prevent linebreak before enumerate

I switched from a proof environment to a custom one, if I begin the custom environment with an enumerate, there is a linebreak that I'd like to prevent. The MWE shows the difference between the proof ...
1
vote
0answers
59 views

How to avoid line break with \[ \] syntax [closed]

I know I should not use $$ $$ for math equations since it's deprecated, and instead I should use \[ and \]. But with this notation, every formula I type is centered on a new line. How can I have the ...
1
vote
1answer
33 views

Using XeTeXlinebreaklocale for non space delimited languages, locales?

I am currently using xeCJK for Chinese/Japanese/Korean languages. Using Polyglossia for Thai, with the line break setting: \XeTeXlinebreaklocale "th" I've seen several people discuss the use of the ...
4
votes
0answers
45 views

Text highlighting that works with CMYK xcolor mode?

I looked at Cool Text Highlighting in LaTeX, and as my MWE (below) demonstrates: ... the first part, highlighted with soul's \hl, fails when [cmyk]{xcolor} is used. The accepted answer in the link ...
4
votes
1answer
39 views

How to make breaklines the result from PythonTeX ?

I try make a document with use PythonTeX like this : \documentclass[a4paper, 12pt]{article} \usepackage{pythontex} \usepackage{fullpage} \begin{document} \begin{verbatim} \py{2014/2009} ...
20
votes
4answers
21k views

Aligned equations in LaTeX

I have a long equation in LaTeX, which I need to break up into more lines. I've done this, although its not quite what I was looking for. Here is a MWE showing my problem: ...
1
vote
1answer
32 views

Strange “No line to end error” from \newchapter{} Thesis Formatting

I'm using a document class from my University, {urithesis} and I'm receiving some strange errors I can't seem to clear up - I was hoping someone might have some experience with similar issues. This ...
2
votes
2answers
65 views

How can I prohibit page break at `\\`?

How can I prohibit page break at \\? I tried \\* and it sometimes worked but sometimes not. Here is a non-working example: \documentclass{article} \usepackage{geometry} \geometry{textheight=2cm} ...
2
votes
1answer
31 views

“\item[text]” text of a description list going off of page

I am trying to make a description list in which an item has quite a long name and the text goes off of the page to the right instead of wrapping to the next line. \documentclass[12pt]{article} ...