{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
0answers
332 views

Multiline text under/over arrows [duplicate]

Possible Duplicate: How can I write multiple lines in a subscript? Force line break inside a \lim argument in align environment I want to write some multi-line text under a long arrow. ...
1
vote
2answers
1k views

Dealing with overhanging text

I have a document with many long, unbreakable words. On A5, there are about 8 words per line. This creates a problem as on many lines, some words trail off the edge and well into the margins. I have ...
10
votes
4answers
2k views

Avoid hyphenation in chapter title

I wonder if there is a way to avoid hyphenation of words in the title of a chapter. I have tried \mbox but that makes the word run over the margin. I've also tried inserting a \\ in front of the ...
2
votes
1answer
289 views

Unwanted line breaks after equation tag when using fleqn and leqno

When you use fleqn and leqno and assign your own equations tags with \tag to equations in environments such as gather and align and you assign a tag with a certain length, then there's a line break ...
1
vote
1answer
3k views

How can I add line feed after itemize?

How can I add line feed after itemize? Some vertical spacing would be even better, I think. My document: \documentclass[12pt,a4paper]{mwrep} \usepackage{enumitem} \setlist[itemize]{label=--} ...
8
votes
3answers
3k views

linebreak in description title

In my document I have a description environment. One of the titles in the description is too long to fit in one line and I want to break it. I know this is a bad styling but I can't think of any way ...
5
votes
3answers
140 views

Allowing breaks at a location with no spaces or hyphens

I have two letters: A and B. In most situations, I'd like them to appear together with no space, e.g. ("AB"), however, if TeX feels it needs a linebreak or to split these across two pages, this is ...
12
votes
5answers
3k views

Why do hyphenated words cause margin violations (and how can I prevent it)?

Sometimes my text goes past the right margin when there is a hyphenated word involved in the sentence. For example, in the figure below, the line that contains "inter-member" extends further right ...
1
vote
1answer
203 views

Using package listings with sciposter

Could you please provide a working example in which a source code delimited by listings environment word wraps its lines, without breaking the column layout of sciposter? Whenever I put a long line ...
11
votes
1answer
281 views

Error with table

\begin{table}[ht] \makebox[\textwidth][c]{ \begin{tabular}{ccccc} \hline \hline [] & [] & [] & [] & []\\ [] & [] & [] & [] & []\\ ...
5
votes
1answer
475 views

Linebreak after section number in memoir toc?

I'm trying to finish my thesis and have received a bunch of formatting corrections that I need to do, one of which I'm beating myself senseless trying to figure out. I have to make the chapter ...
5
votes
2answers
1k 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: ...
15
votes
3answers
8k views

Include a line break in algorithmic while maintaining indentation

I have this code: \DeclareCaptionFormat{algor}{% \hrulefill\par\offinterlineskip\vskip1pt% \textbf{#1#2}#3\offinterlineskip\hrulefill} ...
4
votes
0answers
434 views

tocloft recipe to simulate the titlecontents* behaviour of titletoc [closed]

I can't use titletoc, since there are incompatibilities between this package and others that I am using. However, tocloft works fine. I would like to simulate the \titlecontents* effect using ...
0
votes
1answer
270 views

Begin document with blank lines [duplicate]

Possible Duplicate: Start off a page by adding vertical space I'm entirely new to LaTex, but I've been googling for a while and haven't found out how to do the following: How can I start a ...
12
votes
3answers
7k views

Automatic line breaking of long lines of text?

Here, it is just a example. I have a line: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa Now, I want to let LaTeX automatically ...
12
votes
3answers
2k views

How to deal with very long lines that do not contain spaces?

I have a problem with a lstlisting environment. I want to use it for displaying several very long lines that can not be reformatted. Independently of the option breakatwhitespace=true or false my ...
2
votes
2answers
753 views

How to linebreak part ToC entries using tocloft/titletoc and the book class

I'm currently writing a LaTeX document in the book documentclass. In my ToC I want the actual titles of certain entries (parts in my case) to come in a newline after a generic name of the section-type ...
1
vote
2answers
229 views

How to create newlines?

I am new to Latex and found out how to use it a bit. Newlines are created by \\ I get the following error: \\ can only appear in a matrix or array How do you create newlines between matrix or ...
6
votes
1answer
862 views

Avoid line break between em-dash and the next word

I'm writing a text in spanish, and I have a phrase wrote between em-dashes (that work like parentheses). The problem is that if the "opening" em-dash is too near the end of the line, then it may ...
0
votes
3answers
3k views

Why gap + indent after \\ and [return]

I'm using TeXLive (pdftex) with TexShop on my Mac and usually, I don't format my .tex files. Now that I have to write some bigger ones, the code soon gets too messy to read and I tried to insert some ...
18
votes
2answers
34k views

New line after paragraph? [duplicate]

Possible Duplicate: paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header? I have the following problem. I have a paragraph and only after this single ...
6
votes
1answer
2k views

Automatic line breaking for two-column text

I am using the following document class: \documentclass[twocolumn]{svjour3} Unfortunately, the two columns of output text just look horrible as they are not properly aligned on the right-hand side ...
4
votes
1answer
647 views

How can I create my own listings style/format?

I'm trying to format some SQL statements using the listings package. It looks OK for small statements but the long ones look bad. select * from Customers where C_nID=10; to select * from customers ...
3
votes
1answer
460 views

Line breaking words with apostrophe gets overflows

I'm using this Latex document class (that's the class used for the CHI/TEI conferences) and I'm facing a strange problem with automatic newlines with words having apostrophes: in Italian we are used ...
12
votes
2answers
2k views

Is it possible to have hyphenations in \underlined{text}?

In a document I was writing, I had some really long captions and I wanted to emphasize the important parts in them. I tried to use \underline{} but no hyphenation was used at both the caption and at ...
8
votes
2answers
4k views

Line breaks in subfig

I'm trying to put some text in a subfloat using the subfig package. (It's supposed to be part of the figure, not the caption.) I can't figure out how to add a line break. When I try this code: ...
7
votes
1answer
1k views

Table of contents (minitoc, parttoc) and line breaks

I have to make a table of contents for each part of a book document. I use minitoc package, and \parttoc command. I have line breaks (\\) in the chapters and sections titles in both [] and {} ...
6
votes
1answer
17k views

New line in math mode and indent this line

How can I have a indented new line in math mode? The line after \newindentedline should be indented and start in a new line. \[ X \subset Y \Rightarrow \forall x \in X: x \in Y \newindentedline ...
5
votes
1answer
3k views

Newline within underbrace in math environment [duplicate]

Possible Duplicate: How can I force a line break within \text{…}? In the MWE below, is it possible to force a line break in the text under the Z so that the overall equation is more ...
10
votes
2answers
2k views

Force line break inside a \lim argument in align environment

Inside an align environment I have a \lim with two variables which should be displayed in two lines: \begin{align} ... f & = \lim _ {a \rightarrow -\infty \linebreak b \rightarrow \infty} ... \\ ...
1
vote
1answer
441 views

Use of marginpar: problems with Underfull \hbox

I'm using the latex commnad \marginpar{}, however for some reason I get the warning: Underfull \hbox <badness 10000> in paragraph ... each time I create a comment on the margin. Is there ...
6
votes
1answer
738 views

How to remove the extra line?

I use this command to show the headword in dictionary. \newcommand{\entry}[2]{\hangpara{2em}{1}\textsf{\textbf{#1}}\ #2 \markboth{#1}{#1}\par}\nopagebreak[4] When the headword is exactly as long as ...
1
vote
0answers
116 views

How to prevent contents of verbatim text from running off the page? [duplicate]

Possible Duplicate: Verbatim environment that can break too long lines? How to prevent contents of verbatim text from running off the page? \documentclass[12pt,a4paper]{article} ...
7
votes
2answers
1k views

Section titles, hyphenation, manual line breaks - and how to avoid them

I have several section titles in my document that are getting hyphenated, which is quite ugly. I am now looking for some way to avoid the hyphenation, which is is somewhat related to this question, ...
23
votes
3answers
1k views

How to avoid a linebreak before a comma?

I just had a problem with a linebreak after a word ending with a hyphen which was followed by a comma. This example shows the problem: (The example is constructed, but this just occurred to me in a ...
4
votes
2answers
539 views

Macro to convert 'multi-line' text to 'single-line' (remove line breaks?)

Consider the following example: \documentclass{minimal} \def\myMultiLineText{% Line One Line One \\ % Line Two Line Two \\ % Line Three Line Three \\ % Line Four Line Four % } \begin{document} ...
8
votes
1answer
6k views

Forcing new line after item number in enumerate environment

How can I force the text of an enumerate item to start on a new line below the item number?
16
votes
1answer
702 views

Is it still worthwhile to let TeX try line-breaking without hyphenation?

Here's TeX's line-breaking approach (as I understand it) in a nutshell: If \pretolerance is positive, try to break a paragraph into lines without inserting discretionary hyphens and without ...
8
votes
2answers
6k views

How to prevent LaTeX from line-breaking a phrase?

How can I prevent LaTeX from putting line-breaks into a phrase? I could replace dashes with "~ and spaces with non-breaking spaces, but I'm looking for a more general solution in case I need other ...
153
votes
5answers
5k views

How to define the badness of a river?

I've written an algorithm to try and detect rivers in paragraphs and it actually detects quite a lot when I run it. Some of them are clearly false positives, but there are others that are indeed ...
17
votes
4answers
9k views

How can I prevent inline math formulas from overflowing into the margin?

When I compile my document in LaTeX, some formulas in the document in math mode, between $ $, go into the right margin area beyond all the text. Is there a way to fix this aesthetic problem?
3
votes
1answer
384 views

Get the Length of the Rest of a Line [duplicate]

Possible Duplicate: Is there a way to measure the remaining space of a line of text? I have some text and want to put a \hrulefill at the end following by a period. However, if the text of ...
29
votes
2answers
780 views

Ensure minimal length of last line

This question led to a new feature in a package: impnattypo One rule in French typography is that the last line of a paragraph should not be shorter than the double of the indentation of the ...
17
votes
3answers
2k views

Can I have the \overfullrule rule colored in pdfLaTeX?

I know that I can use \overfullrule=5pt to get overfull lines marked with a black marker. I am using pdfLaTeX. Is there a way I can get this marker or something similar in magenta instead?
14
votes
7answers
5k views

LaTeX not hyphenating properly, text running off page

I'm having a problem with LaTeX not hyphenating $\beta$-galactosidase, and the word as a result running off the page. I have narrowed down the problem to a particular package, as a bare minumum LaTeX ...
11
votes
3answers
505 views

How to display only certain lines of a paragraph?

From reading Knuth's TeX Book (Chapter 14 How TeX Breaks Paragraphs into Lines), I understand that entire paragraphs are read in and then "massaged" by the "line-breaking algorithm" in an optimal way ...
1
vote
2answers
170 views

Character on hanging list

I'm the maintainer of the ledmac package (for critical editions). I would like to have the possibility to start all the lines with hanging indentation with some chosen character, like this (where ...
16
votes
3answers
1k views

Formatting FAQ lists in LaTeX

I want to format a list of "Question + Answer" pairs in a TeX-document. In HTML I use the <dl> command: http://www.w3.org/TR/html401/struct/lists.html, e.g.: <dl> ...
8
votes
2answers
868 views

Linebreak before URL with biblatex/alphabetic

Using biblatex with alphabetic style, how could I insert a line break (\\ or \linebreak) before the URL output (with the aim to have less linebreaks within URL)? (I use url and hyperref) Slightly ...