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

Breaking single equation with multiple alignment

I have a set of equations that have multiple alignments, and one of these equations I want to break since it is long. The following MWE illustrates my current solution to this problem, but it's not ...
0
votes
0answers
43 views

Line Breaks in Inline Math Mode

Is it possible to put in manual line-breaks in inline math mode? I have tried using '\\' and '\linebreak' but my equation keeps displaying as a single line. :( Sample code: \[ abcd \\ abcd \newline ...
25
votes
2answers
28k views

Automatic line-break in tabular

I'm making a tabular and I'd like to automatically do a like break rather than going beyond the page. This is my tabular code: \begin{table}[h] \begin{tabular}{|l|l|l|} Use Case Navn: &...
3
votes
1answer
83 views

Line break and text aren't working

I am new to LaTeX and I am having trouble with \text and line breaks. My code is as such $$\text{if} y^{(t)} \neq h(x; \theta, \theta_{0}) \text{then} \\ \theta^{(k+1)} = \theta^{k}+ y^{(t)}*x^{(t)}...
12
votes
3answers
24k views

Tabular, parbox, vertical alignment

What i want to achieve is really simple: I want to be able to align cell content at the top (which is the default behavior of tabular) while being able to manually break lines (and anything you could ...
27
votes
5answers
27k views

Prevent hyphenation and use line break in block of text

I have a custom block of text on my title page which can be longer than a single line. By default LaTeX is hyphenating a word at the end of a line, but I want it to break on to the next line. How do ...
2
votes
1answer
21 views

Numbered reference writing style: Breakable space or not?

Should a list of numbered reference be displayed with non-breakable spaces ? If I have only one, the obvious rule is to use "~", e.g. Lemma~\ref{fundamental}. But if I want to say "By Lemma 1, 2 and ...
1
vote
0answers
17 views

Nonbreakable space for bibliography

Why do we need to use a nonbreakable space ~ for the bibliography ? For example, in the book "More math into LaTeX" by G. Grätzer, on pp. 47, the following snippet of code is given: \bibitem{eM57a} ...
-1
votes
2answers
81 views

how do i create a linebreak in an inline math formula?

I tried to make a equation in Latex but the parentheses disappear near the edge of the page. How I put the equation in two lines? $\left(\omega=\frac{d\theta}{dt}=\int_{0}^{\dot{\theta}} d(\dot{\...
3
votes
0answers
48 views

Detecting a line break

A command inside a word will make it non-hyphenatable for latex, giving an ugly overfull \hbox, see the first line of sample output. In the following example: \documentclass{article} \usepackage{...
1
vote
0answers
49 views

Problem in combination of longtable and stepcounter{rowcount}

I am making a longtable consisting of 3 columns: linenumber of the text in the table, column with a short abbreviation and a column with possible a lot of text. Since the third column contains a lot ...
3
votes
1answer
120 views

Embedding version control information returns error when file is not under version control

Consider the following MWE. Note that this uses Mercurial for illustrative purposes, but the question is not specific to Mercurial \documentclass{article} \usepackage{fouriernc} \begin{document} \...
3
votes
2answers
50 views

Auto Generate Custom Text Message for Page Break

I created a new environment that creates a box around text. I used tcolorbox. Additionally, since I wanted to break from page to page, I added 'breakable'. However, what I want it to do is to break ...
11
votes
5answers
25k views

How can I insert a newline in a framebox?

I have several frameboxes in my document, using the following command: \framebox(115,115){ R-Sq: \newline For example} I want to force a new line, but neither \newline or \\ appear to work. Is ...
7
votes
1answer
2k views

Removing Line Breaks in Bibliography compiled with Biblatex

I have a strict page limit on a paper I'm writing, and the page limit includes citations, so to save space I would like to remove the line breaks between entries in my bibliography: [1] Dr. Seuss. *...
1
vote
2answers
47 views

Some lines are formatted differently (overflowing) for a reason I can't tell

In my first attempt to use LaTeX a bit seriously, I formatted my CV using the template in ShareLaTeX. Some parts were confusing and I got some great help from here and finally produced a CV that ...
3
votes
1answer
80 views

Text in table is going outside of document. Automatic line-breaking needed

I'm facing some issues with my two-column table. The second column which contains a description is causing problems. I want the second column to automatically begin a new line whenever it is exceeding ...
2
votes
1answer
57 views

Force newline in concpets

I am following this acm-template (Zip set of TeX template files for easy download (May, 2015).) I have this minimal example: \documentclass{sig-alternate-05-2015} \usepackage[english]{babel} \begin{...
0
votes
1answer
25 views

Obtaining only minimal line wrapping in thin columns of a custom tcolorbox

This answer: http://tex.stackexchange.com/a/170767/69378 is (to me) an incredibly useful and versatile tcolorbox. This answer has satisfied my page design for almost a year now, but I am curious to ...
5
votes
1answer
42 views

How to force \lstinline to add a line break

I have an inline piece of code in my main LaTeX document that I have included using the \lstinline command: \lstinline{template<class UIntType, UIntType a, UIntType c, UIntType m> class ...
2
votes
0answers
44 views

Put together 2 lines with their respective format

In the first picture I highlighted 2 texts in different lines, "text 1" and "text 2". I want both on the same line just separated by "-" symbol. And I want each text with their respective format. How ...
4
votes
1answer
72 views

How to make a tikz node with differently styled text and line breaks

I am trying to create a tikz node with differently styled text. Adding a line break inside a bold text breaks the rendering with: ! Undefined control sequence. \tikz@invoke@collected@onpath ......
1
vote
1answer
42 views

Customizing Memoir Class's \fancybreak

In response to No indentation after empty line @jon supplied the following \fancybreak macro lifted from memoir.cls: \makeatletter \newcommand{\fancybreak}{\@ifstar{\@sfbreak}{\@fbreak}} \newcommand{\...
3
votes
2answers
93 views

Split text nodes multiline in tikz-cd

This LaTeX code: \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \begin{document} \begin{figure}[ht] \begin{tikzcd}[row sep=3cm, column sep=0.9cm] & \text{binary relations} \...
2
votes
2answers
32 views

How to align on right if there was a linebreak right before?

Consider this MWE \documentclass[a4paper]{article} \usepackage[top=1in, bottom=1.25in, left=1.25in, right=1.25in]{geometry} \usepackage{enumerate} \usepackage[ngerman]{babel} \usepackage{ifthen} % ...
0
votes
2answers
64 views

Multiple aligns and line breaking

I am trying to have multiple alignment in my equation in addition to line breaking. Here is a MWE illustrating my problem: \documentclass[10pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath, ...
6
votes
1answer
41 views

Using the Verse Package and Line Numbering

Does anyone have a way to make line numbers show up only on the first part of the line using verse? A reduced example: \documentclass[11pt, a5paper]{article} \usepackage{verse} \begin{document} \...
43
votes
5answers
17k views

How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation. ...
0
votes
0answers
10 views

How to enforce new lines after line break on one character conjunctions to start with a conjunction instead of leaving it at the end? [duplicate]

Current behaviour: To jest taki paragraph gdzie będę pisał o tym i o czymś jeszcze innym a o tamtym nie. Desired: To jest taki paragraph gdzie będę pisał o tym i o czymś ...
2
votes
1answer
32 views

Non-pagebreaking return in LyX

I know that in TeX, I can issue \\* to make a new line without a page break. How I do that in LyX?
1
vote
2answers
29 views

Description item label overflows through block [duplicate]

\documentclass{beamer} \usetheme{Copenhagen} \begin{document} \begin{frame}{Proton Pump Inhibitor use and the Risk of Chronic Kidney Disease } \framesubtitle{Benjamin Lazarus et al, in JAMA Intern Med....
4
votes
1answer
47 views

Line breaking in \newcommand

I defined a new command for highlighting some text parts: \newcommand{\keyword}[1]{\colorbox{black!5}{#1}} Unfortunately, when the text becomes to long it overlaps my margins. The keyword ignores ...
1
vote
1answer
21 views

hbox badness with line breaking in tables and use of \raggedright

I am hunting for hbox badnesses in my document at the moment and have some problems in resolving issues with a table using tabularx. As suggested in this thread I am using \raggedright to relax the ...
0
votes
2answers
47 views

Line Break in Equation with Text

I would like to include an equation, which mostly consists of text elements, however I am having trouble with aligning the last argument which spreads over two lines in order for the equation to still ...
2
votes
0answers
24 views

parskip (or line spacing) for conversations

I post the example here to illustrate what i want. \documentclass{article} \setlength\parindent{0pt} \usepackage{blindtext} \begin{document} \section*{default} \setlength{\parskip}{10pt} This is the ...
21
votes
7answers
37k 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 ...
20
votes
2answers
41k views

Inserting a specific number of blank lines

I'm new to LaTeX and trying to format my Honors Thesis, which has very specific formatting rules to prepare the manuscript for publication. For instance, on the Abstract page, I am required to place 3 ...
3
votes
3answers
455 views

How do I break a long equation?

I have a long equation that it was hard for me to break so that it appears professional. How can I do it? \begin{equation} \begin{split} &\mathbb{P}\left( \left. Z_{1}\in dx_{1},Z_{2}\...
0
votes
2answers
141 views

Text is spilling over the margin with standard margin settings [duplicate]

I have default margin settings, but certain text is spilling over the margin boundary. It happens when the final word on the line includes a hyphen. For example, if eye-movement happens to be at the ...
2
votes
1answer
65 views

Centering section with label and title on separate lines

I am trying to center a section title with the section label on one line, and the section name on the next. ie: | Article II This is the Title | My attempt: \usepackage{...
0
votes
2answers
49 views

Linebreak in \raisebox-like environment + consistent height of table cell

In Frank Mittelbach's answer here, he constructs an environment to add linebreak in a \raisebox-like environment. In Alain Matthes' answere here, he shows how to get a consistent row height in a ...
2
votes
1answer
44 views

Disallow long words from flowing into margin by breaking early

I sometimes have long words that are unbreakable and end up sticking out into the right margin. I realize that there's nothing magical to be done about this and the only real solution is to break them ...
0
votes
0answers
26 views

Double spacing, not in titles [duplicate]

I aim to write paragraphs with double spaces lines, so I decided to use the setspace package : \usepackage{setspace} \doublespacing But the result is that even in titles, figures, nearly ...
0
votes
0answers
26 views

Listings package does not break with my own class

I have created a class based on the article class so: \NeedsTeXFormat{LaTeX2e} \LoadClass{article} \RequirePackage{../../mypackage.sty} According to that, I have done following example document: ...
2
votes
1answer
42 views

unexpected linebreak when using `\nameref` in marginpar

I have an unexpected linebreak in my \marginpar and don't know where it comes from. It appears right in the middle of the \nameref... Does anyone see the mistake? \documentclass[a4paper,twoside]{...
1
vote
1answer
58 views

Nice line-break in inline math within theorem environment

This is my first question here, I hope it's not bad (please bear with me if it is). I have quite a specific problem concerning inline math and theorem environment. In general, I want to obtain the ...
0
votes
0answers
71 views

Avoiding pagebreak after newline in theorem

This might be of relevance: Theorem environment - line break after label pagebreak and amsmath theorem environment issue Avoid page break in theorem Situation I used the information provided ...
16
votes
4answers
6k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
0
votes
1answer
35 views

Automatic line breaks in path{} command?

i use the \path{} command to print out a path to a directory in my *.tex File. I searched a lot around the internet to solve the problem to automatically linebreak the path-url. I found some hints ...
0
votes
2answers
53 views

How to avoid underfull boxes in itemize?

I am using an itemize as shown in this example: \begin{itemize} \item \textbf{The First}\\ Some text here over fifty lines.... bla blah \item \textbf{The Second}\\ Other text here ...