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

learn more… | top users | synonyms (1)

3
votes
1answer
558 views

New line in code with no white space in output?

I would like to put my \footnotes{} on a separate line in code, to make code easier to maintain and read. But I don't want any whitespace in between the foot note, and the preceeding word in the ...
3
votes
1answer
1k views

When I prevent hyphenation using an \mbox, the box gets pushed into the right margin

I've used \mbox to prevent LaTeX from breaking certain long words into hyphenated pairs. Now I have a new problem: the unbroken words are extending into the right margin. Here's some minimal sample ...
3
votes
1answer
877 views

How to set frame size in a listing

I'm trying to put a frame around my code, but the frame has the wrong dimension. How can I set them right? ...
3
votes
2answers
3k views

hspace doesn't work. Depth

I need to locate my text in such way. At first, I have some formula. There must be a little indent. $bla-bla-bla$ \\ Then I have another formula, but the indent must be bigger. $bla-bla-bla$ ...
3
votes
1answer
6k views

formula transfer to a new line

How I can make a transfer of a long math equation in a new line? I suppose there are at least two methods: manually by hands and adjust math container to do that automatically. Can you show me, please ...
15
votes
2answers
1k views

Temporarily increase the limit on space size?

I often see those warnings about "overfull \hbox" when I'm preparing my document. Because the document is still in the early stage, I see no point in correcting them on-the-spot - since the document ...
4
votes
2answers
464 views

How to stop mathmode straddling two lines (without overfull boxes)?

I do not like it when my maths spills over onto a second line. For example, what I am currently doing spits out stuff like, ...just some talking then we have some maths Aut(G) < H/K and lo! it has ...
1
vote
0answers
382 views

Wrapping file paths in tables [closed]

I am programmatically creating LaTeX documents. Now, what I wish to do is to have a table in which a file path wraps. I expected I'd be able to do this by defining that column of the table as a ...
2
votes
1answer
615 views

Wrap text inside tabular environment without changing a lot of code

I used the following code: \begin{tabular}{|c|c|l|} \hline Pin Number & Pin Name & Analog Function\\ \hline \hline 1& 4xOUTZ& Yaw-rate or Z-rate output voltage 4 times amplified ...
3
votes
2answers
2k views

Breaking long equation after a certain left bracket

I am typing a long equation which needs to be broken just after the left bracket and three dots are placed at the end of the left bracket same line. Here is an example, in which, I need the third left ...
4
votes
1answer
1k views

Names on title page of Beamer presentation

We have several group members whose names should be on the title slide of a Beamer document. However, when I put something like this: \author{Person A \and Person B \and Person C \and Person D \and ...
2
votes
2answers
271 views

avoid space before \textsuperscript in linebreak

I have a lot of Ca\textsuperscript{2+} in my text. In my editor I use automatic linebreaking to keep the text readable. Now it sometimes happens that lhe line breaks like this: Ca ...
9
votes
2answers
7k views

amsthm: \newtheoremstyle, headspace, \mbox{}, and lists

Q: How do I define a newtheoremstyle which will start the theorem text on a newline after the header even when the theorem text starts with a list, e.g., enumerate? If there's no way of doing this, ...
3
votes
1answer
5k views

Multirow and tabularx

I'm trying to make a table that should be pretty straight forward. But somehow, the text in the two first cells seems to "forget" that it's using the X-alignment command in tabularx: ...
17
votes
1answer
1k views

Automatic line break in alignat

Consider the following example from http://tex.stackexchange.com/a/12782/4011 \documentclass{article} \usepackage{amsmath} \newcounter{eqn} \renewcommand*{\theeqn}{\alph{eqn})} ...
0
votes
0answers
108 views

How to make sure that $ formula $ will be on one line? [duplicate]

Possible Duplicate: How can I prevent LaTeX from breaking inline formulas globally? How do I keep a string of text together without it doing a line break? So I have code like (sorry for ...
6
votes
1answer
425 views

Biblatex breakline Doi

I'm using the XeTeX with BibLaTeX and biber. That's the line: \usepackage[backend=biber, citestyle=authoryear-ibid, bibstyle=authortitle-ibid]{biblatex} It's working fine but I'e just get one ...
4
votes
2answers
395 views

What is the ConTeXt or plain TeX equivalent of \nolinebreak?

The command \nolinebreak[4], if placed between two characters, should prevent a line break from appearing in that location. This command does not seem to be defined in ConTeXt. Is there an equivalent ...
9
votes
1answer
608 views

Handling overflows in biblatex bibliographies

I'm finally making the transition to biblatex. This is a remarkable package, and has allowed me to cut out quite a bit of old code I used to use to handle eprints, DOIs, crossref mapping problems, ...
10
votes
2answers
9k views

Line breaks in TikZ nodes [duplicate]

I have this code that outputs a small family tree \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[ ...
2
votes
1answer
503 views

How to allow line breaks after forward slashes in ConTeXt?

I have a document containing many forward slashes (/). I noticed that ConTeXt does not allow breaks after /. For instance, if a text contains bear/rabbit/tiger, it will not place a break and the text ...
10
votes
1answer
8k views

hyperref package, breaklinks option

When I compile with LaTeX + dvips, I get the following warning message: Package hyperref Warning: You have enabled option `breaklinks'. (hyperref) But driver `hdvips.def' does not ...
2
votes
1answer
1k views

chapter title long and necessity to cut it

my chapter title is too long and I have the necessity to cut it in two different lines. well which could be the best way to cut it?I tried using \newline but unfortunately this modification affects ...
13
votes
2answers
5k views

Hyperref + \url: long URL with dashes won't break

I've discovered a rather weird behaviour of PdfLaTeX. In this example \documentclass{article} \usepackage[breaklinks]{hyperref} \begin{document} ...
1
vote
1answer
750 views

Prevent empty line after tabular environment

I have a question related to Empty line after a tabular environment. I have a document using package lineno to enumerate lines. The rendered document enumerates a line exactly after any tabular ...
6
votes
3answers
985 views

longtabu and scrpage2: line breaks in page header cause compilation errors

Please consider the following MWE: \documentclass{scrartcl} \usepackage{longtable,tabu} \usepackage{lipsum} \usepackage{scrpage2} \chead[Headline 1\\ Headline 2]{Headline 1\\ Headline 2} ...
1
vote
1answer
1k views

tabular tabularx automatic linebreak (p/m/b doesn't work as expected)

The following snipped should break at the end of the column \begin{table}[hb] \begin{tabular}{|l|p{.5\textwidth}|} \hline \bfseries Col 1 & \bfseries Col 2\\\hline \hline Line ...
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
59k 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
1k 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
88 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
467 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
1k 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
403 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. ...
12
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
3k 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
492 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
366 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
421 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
810 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
950 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
421 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 ...