{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
71 views

how do I make latex allow breaking a line whenever reaching line boundary [closed]

I started writing my HW in latex, I use an online latex editor+compiler. Sometimes, when I write long math expressions, the expressions exceed the right boundaries of the page. I've seen that it has ...
15
votes
1answer
1k views

Class 'standalone' and linebreaks for a 'Je suis Charlie'

I have produced a Je suis Charlie image, and I wanted initially to use the standalone class, but I did not obtain the intended result. Here is the intended result: Here is the produced result: ...
4
votes
2answers
130 views

Pleasing line breaks with extremely long words that must fit on the page

I'm typesetting some technical documentation that includes identifiers with very long names. It is unacceptable to break or hyphenate these names because that would look confusingly like juxtaposed ...
0
votes
0answers
11 views

\nolinebreak in \caption [duplicate]

I have long caption of figure element and dont want to break the line in particular place. I use \nolinebreak but get error: ! Argument of \caption@ydblarg has an extra }. <inserted text> ...
4
votes
1answer
67 views

LaTeX elsarticle \cline for array mode

I am making a matrix like this one: \documentclass[preprint,11pt,3p]{elsarticle} \usepackage{amsmath,epsfig,amsfonts,amssymb,subfig} \usepackage{amsfonts,mathdots} \usepackage[ngerman]{babel} ...
15
votes
0answers
181 views

Test if paragraph has an overfull line

I'd like to test if the last paragraph has any overfull line. The naive approach of looking at the \badness once the paragraph is finished does not work, as it will only give the badness of the last ...
4
votes
1answer
128 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}, ...
1
vote
3answers
79 views

New line and paragraph in TeX [duplicate]

I have been a writing a simple program using TeX programming like Hello, World! How are you. \bye I want the two sentences to in different lines but they come in same line. Using \\ it gives an ...
4
votes
4answers
325 views

How to break a product of three polynomials

I have $$(1+x+x^2+x^3+x^4+x^5+x^6)(1+x^2+x^4+x^6+x^8+x^{10})(1+x^5+x^{10}+x^{15}+x^{20})$$ but is too long to fit the page. How to break this?
5
votes
1answer
105 views

Caption with a line break in Memoir Class

The following code works with the report class. However, the same code does not work with the memoir class. The problem is with the line break in the caption. (FYI: I have TeX Live 2014.) ...
0
votes
0answers
25 views

Two columns template [duplicate]

I have a question regarding to two columns format. I want to use the following document in paper. While I want to write a multiline formula it goes to the next column and change everything to a messy ...
3
votes
2answers
75 views

How to break lines of text in equation?

I have a problem with breaking lines in equation environment, can't really omit the text. I tried using \mbox and \parbox but they don't really give the effect I'm looking for. example: ...
6
votes
1answer
77 views

\unskip and \hskip in \linebreak

I found the definition of \linebreak macro as follows: \def\linebreak{\@testopt{\@no@lnbk-}4} \def\@no@lnbk #1[#2]{% \ifvmode \@nolnerr \else \@tempskipa\lastskip \unskip ...
6
votes
3answers
212 views

Build a box that starts after next line break

I have reason to insert notes in-text in boxes. I defined the following command for doing so: \newcommand{\Lnote}[1]{% \textsuperscript{\footnotesize{\thelnote}} \begin{center} ...
4
votes
1answer
63 views

Multiple subsequent connected equations exceeding line length

How to break a number of equations like in the following example? \begin{align} \lambda \cdot \lambda \cdot \lambda \cdot \lambda \cdot \lambda \cdot \lambda\\ \beta \cdot \beta \cdot \beta ...
5
votes
2answers
330 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
83 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
3k 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
76 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
29 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 ...
5
votes
2answers
106 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
43 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
45 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
147 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
55 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 ...
4
votes
3answers
102 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
198 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
86 views

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

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
39 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
153 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
35 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
21 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
154 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
81 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 ...
17
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
117 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 ...
15
votes
6answers
28k 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
166 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
45 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
59 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
105 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
199 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
59 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
42 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} ...
4
votes
1answer
440 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
8k 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
54 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
124 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
588 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 ...