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

learn more… | top users | synonyms (1)

1
vote
1answer
376 views

LaTeX + Django templating and margin run on text

I am rendering LaTeX templates with Django template tags in them and for testing when I put a very long string of text, no matter if I used \raggedright, or \sloppy, the text always seems to run into ...
3
votes
1answer
622 views

Turning Chinese line breaks on and off

I am typesetting a document in Chinese with spaces between words, for the purpose of making it easier for learners. Because of this, I am typesetting most of my document with no line-breaks between ...
4
votes
2answers
4k views

Linebreak and \enquote

Using the \enquote{} command from the csquotes package my quotes seem to be wrapped to the next line a lot of times like this: This is an "example " sentence. Without the extra whitespace. Now ...
4
votes
1answer
3k views

How to make (force) line-break in Chapter Title (in ToC, Chapter, Header) - if possible?

I've found how to make different text for Title appearing in ToC, Chapter and headers Chapter title in header too long : \chapter[medium-length title for TOC, if wanted]{full title name} ...
2
votes
3answers
259 views

Bibtex stretches the first line

The first line looks very "stretched". How can I improve the formating? @misc{Rel1, author = {J. Citizen}, title = {Kinect used as Topshop dressing room}, month = {may}, year = {2011}, ...
7
votes
3answers
3k views

How can one prevent \fbox from running off the page?

I am using the \fbox command to box a large chunk of text: \fbox{Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the ...
8
votes
3answers
393 views

How to put a non-breaking space in \cite

How do I put a non-breaking space inside a \cite macro with several citations? \cite{ref1,~ref2} causes an error. If I leave the space out, one is inserted and this is causing the citation to span two ...
4
votes
2answers
706 views

Break url in tabular

How can I break hyperref URLs in a tabular environment. Consider the following example: \documentclass{article} ...
5
votes
2answers
817 views

Linebreak between numbers connected by dash

In my text I am using lots of dates. Now I have the following problem: 1480–1541 (two figures and between them a dash) appears at the end of one line and extends over the line into the margin space ...
4
votes
0answers
1k views

BibTeX, hyperref, natbib and very long (institutional) author names in references [closed]

Edit: having tried to make a MWE the issue I was having has gone away - so please disregard! I'm having trouble with a reference to a work by MIT, I have to cite this as "Massachusetts Institute of ...
17
votes
1answer
2k views

How to join paragraphs with a pilcrow \P?

Background There are many typographically distinct ways to separate paragraphs from one another, the most common being starting each paragraph on a new line with either an indent or additional ...
2
votes
2answers
845 views

How to break inline formulas?

I would like to obtain a split formula like this: Latex example on Wikipedia, that is to say with a sort of tab after the "equals" sign, but for an inline formula (between \( and \) ). Or, as an ...
6
votes
1answer
3k views

line break inside cases environment

I have an equation using a cases environment, with one case with a long description text: \begin{eqnarray*} \begin{cases} 1 \text{too long description of the first case, not ...
3
votes
2answers
303 views

Line ending with e.g. \\ \\* or \\[10 mm]

I am looking at some LaTeX source, trying to find out what different things mean. I am also reading the memoir manual. I have stumbled upon two backslashes being used at the end of lines, optionally ...
22
votes
1answer
307 views

Does \\ in the last line of an array have any effect?

Consider the following example: \begin{array}{l} line 1 \\ line 2 \\ \end{array} Is the \\ in the last line completely optional or are there circumstances under which it has any effect?
11
votes
1answer
22k views

underfull \hbox (badness 10000) in paragraph

Why do I get the message: Underfull \hbox (badness 10000) in paragraph at lines 107--108 I want a blank line between the problem name and the table, but if I use \\ or \newline along with a ...
2
votes
1answer
712 views

Allow line break in BibLaTeX output

I have an BibLaTeX entry which causes in \printbibliography command a overful hbox. How can I tell BibLaTex that a line break is allowed without a minus symbol? In my case I have a text like ...
6
votes
2answers
8k views

New line and no indent after \paragraph?

I tried to use a \paragraph-environment, but I do want a new line after the title and no indent in the first textline. New line is easy, but the first line is indented even if I use \noindent, ...
2
votes
2answers
442 views

biblatex URL shown twice in bibliography

I didn't find a solution in the web, so I'm asking here. I am using authoryear-icomp style for my bibliography (without any modification). When I have a BibTeX entry like: ...
16
votes
3answers
1k views

How to wrap text around a figure? (revised)

This question has been asked before (and in fact I stole the diagram below from that question) but the answers are not sufficient for my needs (at least near as I can tell). What I want is the ...
6
votes
1answer
743 views

\input only part of a file using catchfilebetweentags package

I would like to include only a part of a .tex file into a different .tex file. The part I want to include is delimited by some comment tags, as it is used by catchfilebetweentags package. I tried the ...
3
votes
3answers
4k views

Line break in rotatebox in table?

I use \rotatebox to create a table with vertical headers, like so: \documentclass{article} \usepackage{rotating} \begin{document} \begin{table} \begin{tabular}{|l|l|l|} \hline ...
8
votes
2answers
8k views

Writing an equation in a new line

I wish to write an inline equation using $%math...$, but the current line is too long, so the equation is broken into two parts, first one in the original line, and the other in a new line. I don't ...
3
votes
1answer
471 views

How can I get rid of an Underfull \hbox message in my macro?

I can't find the reason for getting this message: Underfull \hbox (badness 10000) in paragraph This is my test case: \newcommand{\ruler}{\noindent\rule[1ex]{\textwidth}{1pt}\\} ...
0
votes
0answers
69 views

Wrapping a long \numprint number [duplicate]

Possible Duplicate: How to typeset large numbers I need to write the decimal expansion of a very long number (more than 100 digits) that I'm typesetting using the numprint package. ...
8
votes
2answers
682 views

How to punctuate multiline equations?

This might be off topic, yet I wouldn't know where else to ask. I want to keep up with the good habit of punctuating displayed equations. For example I know the comma (,) is compulsory in Here, we ...
13
votes
2answers
11k views

Why is \linebreak failing?

Consider the following minimal, using \linebreak: \documentclass{article} \begin{document} It is impossible to say how first the idea entered my brain, but, once conceived, it haunted me day and ...
11
votes
1answer
222 views

Layout issue with biblatex

On the screenshot you can see that the ISBN number breaks the layout: How can I fix the layout? On my small attatched example the layout is not so much demaged like in my real work but you will ...
7
votes
1answer
341 views

Right-aligned line-break with long verses in verse

I'm happily using the verse environment to typeset French poetry. However, I'm unsatisfied with the behavior of long-line breaks (when the verse is too long to fit on the page). The verse behavior is ...
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 ...
6
votes
1answer
298 views

How do I get multiple ToC entries in the same line?

I need that, in the ToC, all the \paragraph references appear in the same line, like. 1 First Chapter................................................1 1.1 First ...
2
votes
1answer
2k views

Loop conditions in multiple lines using algorithmic package

I am working on a paper in double-column format, and I am using the algorithmic package to typeset my algorithms. One of my while loops' condition is a bit long hence doesn't fit into the column. ...
4
votes
2answers
883 views

How to make text in math mode which would cause an `overfull \hbox` automatically start on the next line?

I have text within $s following normal text, which runs off the end of the line and creates an overfull \hbox warning. By default, LaTeX doesn't let the stuff in math mode run off the end of the ...
6
votes
3answers
1k views

Defining rules for line breaks in \newcommand

Thanks to the help of this answer, I've defined a command for creating a blank line: \newcommand{\blank}[1]{\rule{#1}{0.4pt}} However, because this is a user-defined command, LaTeX doesn't seem to ...
7
votes
1answer
164 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 ...
1
vote
1answer
3k views

Multiple header lines with fancyhdr in LyX?

Is it possible break up a long header or footer line so that they are positioned in two or more vertically aligned lines using fancyhdr? For example I want to break up "This is an example of a ...
4
votes
2answers
7k views

Theorem environment - line break after label [duplicate]

Possible Duplicate: ntheorem environment with indentation Skipping line after “Proof” in proof environment \begin{theorem}[label] The theorem text. \end{theorem} I want to ...
0
votes
1answer
2k views

“There's no line here to end” error when pages break at unfortunate locations

I'm recieving seemingly random There's no line here to end errors at different parts in my code. At first I thought they were truly random and that I had some weird configuration error somewhere, but ...
2
votes
2answers
234 views

Environment with breakable text

In the following code, I would like to use \begin{tiScreen} 12345678901 234567890123456789 12345678901234567890123456789 \end{tiScreen} instead of \begin{tiScreen} \breakabletexttt{12345678901} ...
9
votes
2answers
3k views

Linebreak in Package algorithm2e

I'm using the algorithm2e package for pseudocode. I got some very long lines that needed to be wrapped. Is there a way to indent the following (breaked) lines and/or put a mark at the first line to ...
1
vote
1answer
717 views

Lines don't wrap in my list of tables

On my "List of Tables" page, the descriptions of tables don't wrap. Instead, the text proceeds on the same line all the way to the far-right margin of the page (past the point where the page number of ...
11
votes
4answers
5k views

Text out of margins

I don't know why, but a line in my text is out of margins. How can I avoid this issue? I'm using classicthesis in TeXworks. Edit: with the command \overfullrule=5pt I can see a black square ...
9
votes
3answers
4k views

Skipping line after “Proof” in proof environment

Like the OP in Is it possible to skip the first line in a theorem environment?, I would like to be able to skip a line after the word "Proof" so that the first line of the proof is actually part of ...
2
votes
1answer
342 views

Force minted to insert new space in code that won't fit on the page

Essentially I would like to have listings' breaklines option on minted. I can't seem to find it. I could manually insert new lines but it becomes difficult when the code comes from an external file.
0
votes
0answers
359 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
305 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 ...