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)

0
votes
1answer
14 views

Break the line in array mode

I have used the array mode to write cases. But sometimes the lines are too closed to each others, I want to add a break line between them, sometimes it works, but sometimes no. Here is my MWE: ...
1
vote
0answers
16 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
43 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
45 views

How to avoid line break with \[ \] syntax [on hold]

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
19 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 ...
3
votes
0answers
31 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
34 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
23 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
25 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
58 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
546 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
34 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
44 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
28 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
34 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
62 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
56 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
39 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
298 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
92 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
67 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
43 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
53 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
19 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
142 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
47 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
23 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
39 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 ...
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 ...
0
votes
1answer
51 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
48 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
91 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
32 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
42 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
136 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
23 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
97 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 ...
4
votes
1answer
124 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
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
50 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
94 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
62 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
56 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
31 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
39 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{} ...
3
votes
1answer
49 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
47 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
77 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. ...