{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
38 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
113 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
47 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? ...
2
votes
2answers
56 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
25 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 ...
1
vote
1answer
27 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
38 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
47 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
59 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 ...
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
105 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 ...
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 ...
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} ...
2
votes
1answer
62 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
36 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 ...
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 ...
2
votes
2answers
77 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
89 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: ...
4
votes
2answers
54 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
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 ...
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} ...
2
votes
2answers
52 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
2answers
100 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?
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: ...
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 ...
2
votes
2answers
51 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
35 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} ...
1
vote
1answer
33 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
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} ...
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} ...
6
votes
4answers
599 views

Split this equation up

Is there a nice way to deal with the following problem? I have an equation that is too long for a line, but I can't split it up that easily, as it contains a fraction. \begin{equation} ...
2
votes
1answer
48 views

Increasing space between paragraphs [duplicate]

I want to know how to increase the distance between two paragraphs but not between two lines of the same paragraph. For example, if I type a long line, I want to wrap that line into a paragraph, but ...
2
votes
1answer
71 views

Underfull \hbox (badness 10000) in paragraph error

I have the following source code to display a information in a specific format: \newcommand{\headerrow}[2] { \begin{tabular*}{\linewidth}{l@{\extracolsep{\fill}}r} #1 & #2 ...
4
votes
1answer
33 views

Separating two huge images into two pages

How can I seperate two huge images into two pages? I tried \newline but no success. \documentclass[12pt]{book} \usepackage{subfig} \usepackage{caption} \usepackage{graphicx} \begin{document} ...
3
votes
1answer
37 views

Increase spacing between equations

\documentclass[11pt]{article} \usepackage{siunitx} \usepackage{amsmath} \begin{document} \begin{align*} \text{Concentration of unknown sample solution} &= \frac{303 - 0.00227}{0.215} \\ &= ...
1
vote
1answer
70 views

How do I center table headings including line breaks? [duplicate]

\documentclass[11pt]{article} \usepackage{geometry} \geometry{a4paper} \usepackage{mathpazo} \usepackage{amsmath} \usepackage{amssymb} \usepackage{booktabs} ...
3
votes
2answers
64 views

Overfull hbox in description environment

I have a problem with description environment. The text exceeds the width of the page \documentclass[a4paper,twoside,10pt]{report} \usepackage[francais]{babel} \usepackage[T1]{fontenc} ...
3
votes
1answer
54 views

linebreak and pagebreak wherever I want with justified margins

I am looking for two commands: \mylinebreak \mypagebreak The first is supposed to break a line at the very position where the command is set and make the previous line justified (and not ...
5
votes
0answers
40 views

LuaTeX: Line break problem with microtype + geometry (bindingoffset) [duplicate]

I have a problem with the combination LuaTeX + package microtype + option bindingoffset from the geometry package when typesetting the following example: \documentclass[11pt,a4paper]{article} ...
4
votes
2answers
308 views

Fast way to start a new line

I have quite a few equations in a latex document that are similar to this one here: \mathbb{E}(\cos^2) = \frac{\pi \left(\beta \left(8 \left(2 \alpha ^2+2 \alpha +1\right) \beta ^2-12 (2 ...
5
votes
2answers
113 views

Latex doesn't break spaces in \texttt correctly (Overfull \hbox)

I'm having some text in an \texttt environment and it turns out that latex breaks the lines in these environments sometimes correctly and sometimes not. A working minimum example ...