Tagged Questions

{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
2answers
52 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 ...
2
votes
1answer
40 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, ...
5
votes
1answer
35 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
43 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
18 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
123 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
23 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
22 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 ...
2
votes
1answer
38 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 ...
46
votes
1answer
1k 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 ...
0
votes
1answer
46 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
40 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
80 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: ...
1
vote
3answers
27 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.
3
votes
2answers
39 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 ...
4
votes
1answer
123 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
22 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
88 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
34 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 ...
4
votes
1answer
115 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 ...
5
votes
2answers
34 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
47 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
84 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
54 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
44 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
28 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
35 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{} ...
1
vote
0answers
31 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 ...
2
votes
3answers
40 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 ...
4
votes
3answers
73 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
38 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 ...
0
votes
0answers
26 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 = ...
9
votes
2answers
123 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 ...
8
votes
2answers
79 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 ...
0
votes
0answers
32 views

Paragraph break adjustment [duplicate]

I've been encountering an issue regarding the spacing between paragraphs: In this particular page, as there is a new section starting right on the next page, the paragraphs are stretched in order ...
1
vote
0answers
44 views

ArabXeTeX ignoring \allowbreak

I've got an issue with XeLaTeX ignoring \allowbreak on lines that overflow by a small amount. I've tried to recreate the issue with English text but it does not occur. We have a large amount of data ...
4
votes
2answers
55 views

How to prevent linebreak in a command

I am using the package biocon, which allows to define species names at the beginning of the document, which can be used by writing e.g. \plant{At} which would be translated into "A. thaliana". ...
7
votes
2answers
112 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 ...
2
votes
1answer
37 views

Line break that doesn't work cumulative?

I'm looking for a way to write a macro that will add a line break after the text from the argument, but prevent that line break to add to another line break, if there is one following. If I use ...
1
vote
4answers
120 views

how should LaTeX know, where to break the 'equation' … somewhere in the exponential function?

I have failed to command latex to automatically enter new line as shown in the picture below. Here is my command: \documentclass{article} \usepackage{braket} \usepackage{mathtools} ...
4
votes
2answers
110 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, ...
7
votes
1answer
94 views

Relationship of \\, \newline, \raggedright, \RaggedRight, and parindent

I'm trying to understand if there is anyway to get \\, when in \raggedright or \RaggedRight, to produce a new line that is not indented, while \parindent or \RaggedRightParindent are set in order to ...
4
votes
1answer
67 views

pgfplots: symbolic coordinates with line skipping

I am trying to skip lines inside the symbolic X coordinates of the following pgfplots Bar Chart : \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{color} \usepackage{amsmath, ...
4
votes
1answer
86 views

In table cell, how to break long words after “::” or “_”?

I have a software program can generate tables which may be very long and may contains words with many letters,so i use longtabu package. Some words may look like this: AAA_BBB_CCCC_DDDDD_CC ...
1
vote
0answers
20 views

Line break after \hfill [duplicate]

I hope this question is not a trivial one, but I was not able to find any answer to that. I found out that sometimes when I put an \hfill command in order to align some text to the right, there is a ...
2
votes
1answer
94 views

Is there any possibility of decreasing extra space before the equation when line nearly breaks in the following?

\documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{amsmath} \begin{document} Preliminary Theorem 1.1.2. If $(\lambda_1,...,\lambda_n)$, $(\mu_1,...,\mu_n)$, and $(k_1,...,k_n)$ ...
7
votes
2answers
242 views

Title of beamer presentation runs outside the screen

the title does not continue on a second line but runs outside the screen Different .sty files are used but i'm not sure where the problem is located. The main .tex files is as follows ...
1
vote
2answers
89 views

Understanding the linebreak at the beginning of itemize

I have a fundamental problem in understand how latex is typesetting documents. Consider my code \documentclass{article} \usepackage[margin = 0.75in]{geometry} \begin{document} \section*{ABC} abc ...
1
vote
2answers
97 views

How to automatically break “a long word with underscore” in a cell of table, using longtabu package?

I use longtabu package for creating tables, because the table can be very long (several pages) and i need automatic linebreak(or wordbreak) if the sentence(or a single word) in certain cell is too ...
8
votes
1answer
120 views

Use non-breaking space after name initials with biblatex macros

I want to enforce biber/biblatex to place non-breaking spaces between initials and last names of authors. Example: \documentclass{article} \usepackage[backend=biber,natbib=true]{biblatex} ...