{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
197 views

Hyphenatable material enclosed in group braces

I have text that I need to repeat quite a few times: \newcommand{\repeatme}{text to repeat that is somewhat long and verbose} I'd like to underline this text and have it not cause hbox overflow ...
18
votes
3answers
56k views

How to insert vertical space between paragraphs [duplicate]

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? Googling didn't give required results. (Many, but not applicable ...
7
votes
4answers
4k views

Something like \raisebox that respects line breaks

If one wants to raise some text one uses something like \raisebox{0.5 em}{some text} However this doesn't respect line breaks and may cause some nasty overflows. Is there a way to have \raisebox ...
2
votes
2answers
958 views

Theorem formatting: strange interaction with itemize

This question is related to this one. I want to have theorem headers alone on a line like this: Theorem 1. some text... In the amsthm documentation, they suggest doing this: ...
5
votes
1answer
1k views

Split sentences in table

I have a table with two columns: a word and its description, which is a sentences. Now, when I create a pdf, the sentences run out of the page boundary. Is it possible to automatically split the ...
3
votes
2answers
2k views

Why doesn't \newline work inside lstlisting?

I am new to LaTeX and am using a template provided by a friend: \subsection{P2P library} The library is implemented in C-Sharp and provides two basic facilities - maintaining a member list at every ...
0
votes
2answers
87 views

Inserted figure is appearing later than it should in when compiled to pdf [duplicate]

Possible Duplicate: How to influence the position of float environments like figure and table in LaTeX? I have two sections in my document: sectionA and sectionB. The code for the document ...
8
votes
2answers
6k views

How do I keep a string of text together without it doing a line break?

I'm writing up a long paper, in which in prose I have various equations. However, I do not want a line break to occur within the equation - I want the equation to stick together. I want to do this ...
6
votes
1answer
460 views

How do I create an automatic break in long math expressions

Is there a way to allow long math expressions to break automatically, whenever (and only) in situations where they extend beyond the body text of a document? For example, I would like something like ...
6
votes
1answer
962 views

Wrap text around a picture except for the first line

As the following minimal sample shows, a text wrapping around a picture starts wrapping with the first line. Including the wrapfigure in the text leads to strange paragraph breaks. %---- ...
5
votes
2answers
385 views

breqn: specifying the characters at which equations can be broken

Is there a way to force breqn to break at a certain character in favor of another. For instance, in the following example, one might prefer that the line be broken at a + sign rather than at a \cdot. ...
11
votes
1answer
2k views

Breaking links and escaping characters in bibliographies with backlinks and ocgcolorlinks set

I have the following situation: I have to use the ocgcolorlinks option in hyperref, so that links are not broken. So I had the idea to set each char as a link with \href. After putting some code ...
3
votes
2answers
147 views

Detect if \\ can be used

How can I detect if I am at a point in the source where I can end a text line, for example, with \\[5pt]? I would like to have something like \ifTEST \\[5pt]\else\vspace*{5pt}\fi but I do not ...
11
votes
1answer
2k views

Is the number of authors restricted in article?

At the begining of the .tex file I put \title{title here} \author{name 1 \and name 2 \and name 3 \and name 4 \and name 5 \\ \small institution\\ \small ...
14
votes
2answers
483 views

Is there way to put hard space after defined words?

In Polish typography, one should avoid putting prepositions at the end of the line. Example: Nie wiedziałem, że nie umieszcza się przyimków na końcu strony. - bad Nie wiedziałem, że nie umieszcza się ...
2
votes
2answers
355 views

Two paragraphs side-by-side and page breaks

I have a little mind puzzle here. This idea was bugging me since I saw a question about breaking cells in a table on a page break. Let's think of a table row that's built from cells that are ...
1
vote
0answers
89 views

What is the difference between \cite and ~\cite? [duplicate]

Possible Duplicate: Why I should put a ~ before \ref command? I see the two used fairly interchangeably but have never read what the difference is between them...
3
votes
3answers
407 views

how to force TeX to keep line breaks?

I would like to write a programme code to a file, so that it can be later on executed. The language requires to keep line breaks. \begin{myCode} one two three \end{myCode} In my macro I have ...
0
votes
1answer
780 views

force line break in LaTeX bibliography (style file generated using makebst)

I would like to edit my .bst file so that the bibliography outputs with a line break after each author block (all authors) and no left or right indent of wrapping lines. So, instead of ...
10
votes
5answers
2k views

I just want to have the text in my pdf the same way I have it in my editor

I want to paste from the clipboard a plain text copied from a text editor (line wordpad++, vim, notepad etc), and I want TeX to respect the same line break formatting that the editor has. This works ...
3
votes
1answer
917 views

Line Breaks in Text Mode not Working

This is a follow up from my previous question I am writing a large document in LaTeX, part of which is giving me much grief. Specifically, I have described an algorithm in several numbered steps. I ...
6
votes
2answers
2k views

labeling underlined text over multiple lines

I have a large number of documents I need to create, and there is one very particular need I cannot find a solution for. In these documents, there are pieces of text that are underlined and they ...
6
votes
3answers
415 views

Table growing with content and automated line break

I would like to have a tabular or something similar with one cell and the following behavior: The cell grows vertically and horizontally to fit the content of the cell but no more than \linewidth ...
3
votes
1answer
299 views

Natbib puts reference data one line per item

I'm using: \documentclass[oneside,article,openbib,12pt,titlepage]{memoir} \usepackage[authoryear,round]{natbib} % Better bibliography support \bibpunct{(}{)}{,}{a}{,}{,} in the preamble of my ...
19
votes
1answer
312 views

Check if at begin of a line

For a list of bullet-separated items, I want the separator to be swallowed if it is the first or last element of the line. That is, I want something like \renewcommand{\and}{% \ifnolinebreak% ...
1
vote
4answers
932 views

Editing the bibliography without changing citations in the text

Preparing my manuscript for publication, I need to manually redact the bibliography I generated with biblatex (style authortitle-dw) and Biber. This is mostly about fixing the line and page breaks ...
2
votes
1answer
568 views

Is there method for removing \\ newlines - problem with fancyhdr and multiline chapter name

Some of my chapter has very long names, and they have different break line in ToC and on Chapter page, according to a solution to How to make (force) line-break in Chapter Title (in ToC, Chapter, ...
11
votes
3answers
644 views

What to do when a line in a bibliography entry overflows?

The usual solution to fix lines that overflow is to rewrite it. However, that hardly works with bibliography entries that experience the same problem. So what can I do to fix it? I can't rewrite ...
6
votes
2answers
1k views

In listings, lines that are broken (option breaklines enabled) cause frame to be drawn badly. How do you fix this?

I have an lstlisting which has breaklines and frame enabled. The actual setting is as follows. \lstset{ basicstyle=\ttfamily, showstringspaces=false, breaklines=true, keywordstyle={}, ...
4
votes
1answer
3k views

Line break in table caption using beamer

I would like to add a line break in a centered table caption with beamer. I can't seem to figure it out. Here is sample code: \documentclass[xcolor=pdftex,svgnames,table]{beamer} ...
1
vote
2answers
942 views

Longtable and wrapping text with underscores

I am currently using the longtable environment and I have set the width for each row. In one particular row I need to include some Prolog code which happen to have underscore characters. For instance: ...
6
votes
2answers
1k views

How can I fix verbatim causing an extra newline inside a description list environment?

I'm trying to create a documentation listing similar to that used by MSDN. Here was my first attempt at that: \subsubsection{User Default Page URL} \begin{description} \item[Rationale] This is the ...
1
vote
1answer
382 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
646 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
260 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
401 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
722 views

Break url in tabular

How can I break hyperref URLs in a tabular environment. Consider the following example: \documentclass{article} ...
5
votes
2answers
835 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
855 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
309 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
308 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
720 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, ...