{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.

learn more… | top users | synonyms (1)

2
votes
1answer
120 views

Help me fix “Underfull \hbox” warning

I meet the trouble with an "Underfull \hbox" warning with this code: \documentclass[12pt,a4paper,final]{book} %\usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
1
vote
0answers
108 views

Glossaries package and hyphenated (dashed) acronym fail to break across lines

With respect to using the glossaries package, if I have an acronym with a long hyphenated word, it often result in sentences that runs into margins. For example: ...
2
votes
1answer
150 views

Long equations breaking without using breqn

How to achieve nice (non-automatic) long equations breaking, like dmath environment from breqn package does automatically, but using a more common environment, e.g., multline, multlined (from ...
8
votes
1answer
89 views

Prevent line-breaking after short words

The publisher requires that most of short words (shorter then 4 chars, and all the prepositions, etc.) should not be left last on the line but kept with the following word. Wrong: Following the ...
2
votes
1answer
98 views

Is it possible to change the font of the text from a listing?

I have a listing of my Java code currently the font is too big and the code runs off the page. Here is what my listing looks like:
1
vote
0answers
62 views

Citations go out of margins [duplicate]

Some of my citations overflow into my margins. See below. I am wondering if there is any solution to this? I am using \bibliographystyle{apalike}.
13
votes
2answers
6k views

How to put a line-break in section heading?

I have some section headings occupying two lines and I'm not satisfied with the way XeLaTeX breaks the heading. If I manually add \\ the output looks fine, but I get the following warning: [hyperref] ...
1
vote
1answer
110 views

Line break in section name

Is there any easy way to force a line break in a section name manually, without getting the line break in the Table of Contents? It's because I have a rather long section name, and it breaks just only ...
0
votes
0answers
22 views

create a non breaking environment [duplicate]

Possible Duplicate: How to prevent LaTeX from line-breaking a phrase? I add names of persons into an index. How can I prevent that there will be a line brake in the name? ...
4
votes
1answer
54 views

Breaking inline equation at several punctuation characters

I am trying to define a command which automatically allows linebreaks inside inline equations at several punctuation characters — I am aware of \allowbreak but don’t want to manually insert it; here, ...
14
votes
1answer
144 views

Why does a color meant for the first typeset line *only* (with package magaz) affect the *entire* document?

I am trying to make a nice layout that gives a different style to the first line in a section using the package magaz. All examples I have seen feature some variation of small caps {\scshape text} or ...
2
votes
2answers
94 views

Split environment wrong braces dimensions

I have to split a quite long formula. I used a nested split environment but I have to break curly braces from one line to another using \right. and \left. The curly braces I get have different ...
2
votes
1answer
87 views

issues after verbatim section

I'm havin an issue which I cannot solve. If I have a subsubsection containing text with a verbatim section in between, the first line after the verbatim section is not aligned properly. If I put a ...
4
votes
2answers
136 views

Equation does NOT go new lines, while using \newline

I've been trying to typset an equation which, at a certain point, spans several lines, but is a single step (so no numbering may occur). For this I used newline, but this doesn't seem to work. How do ...
3
votes
1answer
54 views

Verb end of the line alignement

I have a problem when I use the command \verb|detectionFinProgramme|. I don't know how to manage LaTex to get a normal alignement at the end of the line. Does someone have a solution ? Thanks in ...
16
votes
3answers
832 views

Changing the style of the first *typeset* line of a paragraph

I've been playing around with dropcaps in LaTeX (with the yfonts and lettrine packages), and one typographical effect you often see after dropcaps is having the entire first line of the paragraph ...
3
votes
1answer
104 views

ttfamily usage (newline failing)

I'm unable to insert a new line while using \ttfamily. Is there any reason why \ttfamily prevents to do that? My problem (here's the code): Let's consider an e-commerce web application whose address ...
7
votes
1answer
93 views

Environment prints same character at beginning of each output line

I am writing a Latex document with pseudocode interspersed with theorems and discussion. Some of the comments in the pseudocode are long. I would like to automatically start (and end) each output line ...
13
votes
3answers
188 views

How to insert a non-stretching but line-breaking thin space?

How do I insert a small space that looks like the space I get with \, but allows a line break like a normal space does? I.e., I'm looking for a non-stretching, non-non-breaking space whose width is ...
9
votes
3answers
341 views

Proof environment - line break after the “Proof.”

I want to make the proof environment in amsthm package to auto add a line break right after the "Proof." I tried the following code, which also removed the QED sign, but it doesn't work: No linebreak ...
1
vote
1answer
34 views

Set width of section title

I try to prevent section titles of breaking "too early", i.e. leaving so much room between it and the page border. Like in this screenshot, I would like the "system" and the "digestion" to be in the ...
4
votes
1answer
96 views

Why do citations break my page's layout?

I am having troubles with citations. As seen on the attached screenshot, they sometimes don't do linebreaking properly, but produce an error overfull hbox and break my layout. Here are the relevant ...
5
votes
3answers
158 views

An environment for setting \emergencystretch locally

The following environment, copied from this website about dealing with overfull hboxes, allows one to change the \tolerance parameter for just the paragraph(s) it encloses: ...
13
votes
2answers
206 views

Persuading (la)tex “silently to go beyond the envelope of 'good taste' ” to avoid an overfull hbox

My understanding, based on reading this website, is that (la)tex performs at most three passes when trying to typeset a paragraph: one based on \pretolerance, one based on \tolerance, and one based on ...
3
votes
1answer
104 views

How to force some words to start on a new line when they tend to overflow

I'll start with the example As you can see, the HTTP/1.0 is not justified. If it were a normal word, I would add it to hyphenation rules. But obviously I can't split this one. So how can I force it ...
7
votes
1answer
127 views

The Title of Document Runs off the page, as part of header on page 3

Here's my preamble: \documentclass[11pt]{amsart} \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. \geometry{letterpaper} % ... or ...
8
votes
1answer
270 views

Adding overfull hbox 'slugs' to final document version

I'm using a documentclass which looks dramatically different in draft mode compared to final. I'm preparing my document for the final formatting, so I don't want to pass the draft option. However I ...
7
votes
3answers
119 views

Preventing newline from left column from forcing a newline in the right column

I'm writing a CV in LaTeX, and got started with the sample called Writing a CV in LaTeX. I'm trying to modify it so that a newline in the left column does not force a newline in the right column. ...
3
votes
1answer
175 views

Automatic break line after multicolumn

Is there a way to put \\ after multicolumn automatically, each time it appears in the code? Pseudocode would look like this: \newcommand{\commandThatAddsBreaklines} if(thereIsAMulticolumn == true) ...
7
votes
1answer
210 views

How to avoid citations being placed on a new line when \blockcquote ends with a list?

When csquotes's \blockquote and displaycquote ends with a list the citation is put on the next line after the list rather than directly after the last list item. Can one force csquotes to place the ...
3
votes
1answer
309 views

automatic \allowbreak around mathbin and mathrel characters

I would like linebreaks to be permitted within math formulas on both sides of any characters of the mathbin and mathrel character classes. It seems like linebreaking is by default only permitted after ...
2
votes
2answers
149 views

\cite spills over into the margin

As you can see at the picture, a citation spills over into the margin of my paper. How can I resolve the issue?
3
votes
2answers
116 views

inline equation outside margin

My inline equation falls outside the margin. I was wondering if there is any solution for that? Here is the MWE: \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} ...
2
votes
1answer
72 views

Text gets out beyond the table

I use WinEdit and try to make a table. The problem is that I can not move the text in a multirow to the second line. There are the packages I use: \documentclass[12pt, a4paper]{article} ...
10
votes
2answers
788 views

Hyphenating hyphens: how to change the default \discretionary

My language, Portuguese, have undergone another orthography reform (those committees simply can't avoid themselves from doing this mess from time to time.) Now we have to adapt, which brings us to my ...
0
votes
0answers
93 views

How to get my teletype (\tt) text to wrap to the next line, rather than run off the edge of the PDF? [duplicate]

Possible Duplicate: \texttt overfull hbox problem How to automatically hyphenate within \texttt? Much of the LaTeX documents I write deal with computer-sciencey stuff that I like to put ...
2
votes
1answer
116 views

How do I get multiple ToC entries on the same line with tocloft?

This question is almost a repeat of previous one : How do I get multiple ToC entries in the same line?. However, I need an answer using tocloft, not titletoc, since tocloft customization capabilities ...
4
votes
1answer
188 views

How to prevent \cite at the end of the sentence start a new line with a dot

When I end a sentence like this: Here is something you should read \cite{name}. Sometimes the end of the sentence coincies with the end of a row. In this case the next line begins with the dot at ...
9
votes
1answer
64 views

Prohibiting line break at specific point of url while using \url command

I have a \url{some.edu/page} that breaks just before .edu I would like to have it break at the / at worst, or not at all. How can I do that?
5
votes
1answer
286 views

How to emulate titletoc with tocloft

I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one. \titlecontents*{subsection}[5.4em] ...
4
votes
1answer
133 views

\documentclass[convert]{standalone} ignores linebreak

I tried to combine this answer Compile a LaTeX document into a PNG image that's as short as possible with my answer Add column in a table But the pdflatex -shell-escape table.tex ignores ...
33
votes
2answers
1k views

When to use \par and when \\

What is the difference between \par and \\ and when should I use \par instead of \\?
1
vote
1answer
76 views

Forbid word breaking (ConTeXt)

In the following example \definefont[Shehkl][name:Scheherazade*arabic at 15pt] % or file:amiri-regular.ttf*... file:alq.ttf \definestartstop[Arab][commands=\setups{Arabic}] \def\Arab{\doArab} ...
2
votes
2answers
212 views

\noalign without line break / additional spacing

I need a non-breaking version/redefinition of \noalign to use it at the end of an environment (in this case align). So far I searched for the standard definition of \noalign to write a redefinition ...
6
votes
1answer
72 views

count the newlines in title

I am trying to automatically adjust the title page to get a pleasing result independent of the title size. This means that I have to count the number of line breaks in an argument. My MWE (not very ...
0
votes
0answers
117 views

Preventing line break between a word and comma (ConTeXt) [closed]

In the following example \definefont[Shehkl][name:Scheherazade*arabic at 15pt] % or file:amiri-regular.ttf*... file:alq.ttf \definestartstop[Arab][commands=\setups{Arabic}] \def\Arab{\doArab} ...
2
votes
0answers
24 views

Auto-breaking of Equation [duplicate]

Possible Duplicate: How can I split an equation over two lines I want to make my own class file having a two columns. I just want to ask if there's a possibility where we can automatically ...
7
votes
1answer
459 views

LaTeX Centering newline in subfloat caption

I have these images with their title beneath: I want to add some information below, like this: The good news is, I'm able to do it. The last screenshot is from my pdf previewer. ...
5
votes
2answers
669 views

Badbox with Bibtex, how to fix it?

The problem: How to fix bad boxes done by bibtex? Latex copy and paste bibtex formatted entries to the text, but these entries exceed the correct space. Details: I using main.tex with this header: ...
3
votes
1answer
176 views

Latex hyphenation exception

I have some problems with my document. I have one sentence with indentation. It is too long and it takes minimum two lines. And I have something like this: Macierz rozproszenia idealnego, ...

1 3 4 5 6 7 14