{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
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
36 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
63 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
46 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 ...
1
vote
1answer
143 views

Line-breaking long cell contents when using longtable through datatool

I'm trying to display a table loaded from a CSV file and displaying it like this: \DTLloadrawdb[]{myDB}{myDB.csv} \DTLdisplaylongdb[% caption={myDB caption},% label={tab:myDB},% ...
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} ...
51
votes
1answer
2k views

Was the Knuth-Plass line breaking output ever subjected to a blind experiment?

Have any blind trials been organized to test to which extent "the average reader" prefers paragraphs typeset by the Knuth-Plass algorithm (or more advanced variants) over those typeset using the ...
4
votes
2answers
306 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 ...
2
votes
1answer
69 views

How to prevent an equation from flowing over the end of line?

One of my equations, which is not particularly long, happened to be in the end of a line. LaTeX put it in such a way that it uglily flows over the end of the line. Is there an automatic way to fix it, ...
3
votes
1answer
55 views

No break line after theorem name in beamer

I have applied the answer of question Theorem content right after theorem name in beamer to my question. I put \normalfont after \inserttheorempunctuation but the result is unexpected. Could you ...
5
votes
2answers
111 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 ...
5
votes
1answer
47 views

New line after item number in enumeration

I am writing many exercise Sheets for a course in a university. The captions for every Problem is simply: “Problem 1”, “Problem 2” and so on… Now I came up with the idea, to generate this captions ...
1
vote
1answer
77 views

Words with dot and linebreak

I have a sentence with the word "ASP.NET", but half of the word doesn't fit in the current line anymore. There is no hyphenation which is quite ok, but latex doesn't insert a linebreak before the ...
2
votes
1answer
22 views

Forcing a newline in the algpseudocode package

I have written the following pseudocode: \begin{algorithm} \caption{Check if any player has won.} \begin{algorithmic}[1] \Procedure{isWin}{$Game$} \ForAll{$seq \in \Call{getWinSeqs}{Game}$} ...
5
votes
3answers
163 views

Is there really no better solution to “Overfull \hbox” than adding a line break?

I am going through a rather long book to resolve the Overfull \hbox problem. Here is an example: varies greatly from organization to organization, team to team, and manager to manager. Innovation ...
2
votes
1answer
52 views

Break on special characters in inline verbatim

I'm using Pandoc to generate LaTeX. My text contains inline code spans (backticks in markdown) that are rendered as \texttt{...} in TeX. However, some of them are quite long and overflow the line, for ...
3
votes
1answer
199 views

How can I line-break a long string of numeric digits and hyphens?

I have a cls file that contains a definition for source code: \lstnewenvironment{code}[1][] { \lstset{ basicstyle=\ttfamily\footnotesize, breaklines=true, ...
3
votes
2answers
49 views

Wrap text at any point if normal hyphenation not possible

I have data (generated from a database, not manually typed in) that mostly fits into a table cell with fixed width, but sometimes overflows because there are long words for which no hyphenation is ...
2
votes
1answer
121 views

Multiple line matrix equations

I am trying to fit a rather large matrix equation into a document, but it is so large that I cannot fit it onto a single line. Moving the end of the equation onto a new line appears to be the only way ...
2
votes
1answer
26 views

Suppress first new line on list

I want to make entries of the following type: \newcommand{\test}[1]{\hangindent=2em\hangafter=0\noindent\raggedright\footnotesize{#1}\par\normalsize\vspace{1em}} I want entries to contain lists and ...
1
vote
3answers
40 views

How to put two newlines in latex

How can I put two consecutive newlines in LaTeX? If I put two \\ the compiler gives me an error.
4
votes
1answer
127 views

Combining 'para' and 'plain' footnotes using manyfoot

Following my previous question about adjusting the footnote layout which was partially answered, I want to ask something more direct. Is there a way to get a functionality similar to \footnote+ of ...
0
votes
1answer
54 views

Several lines in equation

I would like to get in LaTeX what the following code produces on Math.SE: $$\pi(X,Y)\to HoM(X,Y)\\\ [f]\mapsto[RQf]$$ And if I wanted to have an equation number to the right of the two lines, ...
1
vote
1answer
71 views

Column size personnalization and \diaghead

my aim to break table cell content lines automatically, and to reduce certain column size. The first column size cannot be reduce; I guess in cause is the \diaghead command. Also,how can I get a ...
5
votes
2answers
104 views

Hard hyphens in LuaLatex

Why does not the hard hyphen “‑” work in lualatex with the package luainputenc with option utf8? With hard hyphen, I mean a hyphen, which prohibits the line to break directly after it. MWE: ...
6
votes
2answers
319 views

Custom verbatim that sets all spaces (“ ”) as visible spaces (“␣”) that can line-break

It makes sense to typeset code in a monospaced font. Sometimes such code needs to be embedded in a paragraph context, and then it will be useful to allow it to linebreak. In order to visualize spaces ...
4
votes
1answer
162 views

The equation is too long to fit in the beamer frame, but split environment does not work

The main code is as follow: \begin{frame} \frametitle{Householder Transformation} \begin{equation} %\onslide<1-> \mathop{ \begin{pmatrix} \times & \times &\times \\ ...
3
votes
1answer
26 views

how to make the content within \verb different line

I tried to make the text contained within \verb different line by using \verb#<TITLE>*\\</TITLE>#, but the result is now what I expected: <TITLE>*\\</TITLE> since I want to ...
1
vote
2answers
101 views

How to set horizontal space for tabular

Below is item in tabular. Using tabular text gets out of the page. In-order to get rid of this. I tried with \\. But doesn't help. It's not aligned. Can anyone help me to get the below Below ...
2
votes
1answer
35 views

Open reference to long directories paths

I am trying to link to a directory while being in a tabular environment. The path of the directory usually is pretty long and should linebreak at the boarders of the table. Additionally it would be ...
3
votes
1answer
99 views

Line breaking in math mode

Under default settings a line can be broken in math mode after binary operator with \binoppenalty or after relation with \relpenalty. I'd like to preserve this behavior but alter the result so the ...
5
votes
2answers
36 views

How to use the inline equation format in the equation environment

I have a very long equation and have to use a equation environment to get a equation number. But I still want the equation to use the inline equation format, which automatically do line breaks and is ...
1
vote
1answer
56 views

How to automatically print line numbers for broken off lines in plain TeX

Before you read on: This question refers to plain TeX only. Thanks! I’m wondering how to add line numbers for lines broken off by TeX’s line-breaking mechanism. (My text does not contain any ...
1
vote
1answer
106 views

Double backslash \\ does not work in equation environment

My problem is that inside equation environment double backslash \\ does not seem to work as expected to force a line break: \begin{equation*} \fontsize{12}{15} \text{1. (a) State the ...
4
votes
2answers
69 views

How to prevent line break in a long line on the title page?

I am trying to design a very simple title page for my thesis. Here is a MWE: \documentclass[a4paper,12pt]{report} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
1
vote
1answer
77 views

Line break after lstlisting not working

I just started working with Latex so this may sound like a very nooby question. I put some code in a lstlisting and after that I want to add some blank line and then the "Define the bla bla" line. ...
0
votes
0answers
37 views

How to add a newline after subsection

I was using this template for my tex document. However, it removes the new line after the subsection. I want to have a new line after the subsection elements For eg \subsection{My subsection} Text ...
2
votes
1answer
46 views

Manual line break in Glossaries name

I found somewhere here a way to define my own glossary-style: \newglossarystyle{superglossarystyle} { \setglossarystyle{super} \renewenvironment{theglossary} { \tablehead{} ...
4
votes
3answers
81 views

Newline is not working with parbox and usebox

I would like to save data to a savebox (or any other storage element) in iterations. At the end I would like to put each datapoint in a framebox and then in a frambox container with a given width. ...
4
votes
2answers
252 views

Break Lines in minted environment

Usually when adding code in a LaTeX document, I use the listings package. When trying to modify and personalise styles in listings, @1010011010 suggested to use the minted package. To be quite frank, ...
2
votes
3answers
53 views

How can I right-align a quotation attribution, on the same line as the quotation if possible?

Often quotations are set with the attribution aligned right: The attribution is on a new line after the quotation. Suppose however, that there were enough empty space on the last line of the ...
3
votes
1answer
293 views

LaTeX error with moderncv

I can't seem to figure where the problem is, and why the file wont compile. I'd be grateful if someone could help me. Here is the LaTeX code: \documentclass[11pt,a4paper]{moderncv} % Font sizes: ...
10
votes
4answers
13k views

Newline in a table cell which is centered

This question may look like a duplicate but, none of the answers given to the possible duplicates contain the answer to this specific case. I have a tabular, say \begin{tabular}{ccc}. While adding a ...
8
votes
2answers
84 views

badness for lines without glue?

I want to typeset a special paragraph which have some penalty items inside it but no glue. TeX always produces an overfull box for this paragraph. I have two questions: What is the line badness if ...
4
votes
2answers
42 views

how to avoid breaking a line in dmath mode?

I tried all 3 options above that I have seen recommended in other threads/answers, but none seem to work \begin{dmath} P (A>B \cap A>B+C)=P(A>B+C)=P(A=\nolinebreak 3 \cap B=\nolinebreak 1 ...
9
votes
2answers
128 views

Insert a character at beginning of each line after the current one?

I'm looking for a way to obtain automatically the following layout of French "continuous guillemets", used in old typography when a citation includes another citation that spreads over several lines ...
0
votes
0answers
29 views

How to get a new line in rtf2latex2e?

I am using rt2latex2e to convert .rtf files to LaTeX in Windows 8.1. It is working fine. But I am not able to find the line break. E.g.: converted as: 21 women's 1 day work = ...
7
votes
2answers
160 views

Underlined titles in bibliography with biblatex and ulem packages

I want to underline all titles in a bibliography using the biblatex package with Biber backend and the ulem package. biblatex seems to break ulem's line breaking capabilities. Please consider the ...
1
vote
1answer
88 views

no new lines in lyx output from the latex code insertion

\begin{widetext} \begin{displaymath} a+b=c;\\ d+e = f;\\ e+m = n;\\ \end{displaymath} \end{widetext} I am using the above code as an inserted Tex Code in Lyx ...