{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
0answers
73 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}.
1
vote
0answers
529 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 ...
1
vote
0answers
98 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...
1
vote
0answers
123 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} \begin{...
0
votes
3answers
5k 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 ...
0
votes
2answers
61 views

Long set description

I want to define the following set whose description is too long. How do I break it into two? $L_4 =\lbrace{ w \mid w \text{ every } 1 \text{ in } w \text{ is either preceeded or followed (not ...
0
votes
2answers
120 views

Line breaking with hyperref href with an underline in itemize

I have a simple itemized list like the following MWE: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{...
0
votes
3answers
289 views

How can I force a new line after a subsection? [closed]

I have this code: \subsection{Definitions} \subsection{Two important results} \textbf{Proposition}. Let $(\mathbb R^{n},d)$ be a metric space and suppose $X,Y\subset \mathbb R^{n}$ are compact ...
0
votes
2answers
1k views

continuing equation under the equal sign [duplicate]

how to continued the equation under the equal sign? I want to do it like this
0
votes
1answer
31 views

How to avoid linebreak at `http:` in url

I have a long url that gets wrapped at http: in my layout (using beamer). This is the latex-code: \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{url} \...
0
votes
2answers
47 views

Line Break in Equation with Text

I would like to include an equation, which mostly consists of text elements, however I am having trouble with aligning the last argument which spreads over two lines in order for the equation to still ...
0
votes
2answers
43 views

List of values does not fit line

Have a look at the code below. The list of values for \alpha and \beta are too long to fit one line and the last values of each list disapears. Therefore I want them to break as soon as the edge of ...
0
votes
2answers
64 views

Multiple aligns and line breaking

I am trying to have multiple alignment in my equation in addition to line breaking. Here is a MWE illustrating my problem: \documentclass[10pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath, ...
0
votes
1answer
177 views

how to break lines in a table?

my code is here \begin{table}[t] \centering \bgroup \def\arraystretch{1.2} \begin{tabular}{|c|c|c|} \hline Frucht graph & Graph $K_3$ & An homomorphism from Frucht graph to $K_3$\\ \...
0
votes
1answer
54 views

wrapfig not breaking lines properly in beamer

I have a very simple situation where wrapfig is not correctly choosing line break positions correctly. Here is the MWE: \documentclass{beamer} \usepackage{wrapfig} \begin{document} \begin{frame} \...
0
votes
1answer
56 views

how to let the long web-link automatically break line?

I use the \tt in the latex, however, it can not break line automatically. Then, I add \\ in the link, e.g. \tt{http://tex.stackexchange.com/ \\\\ questions/ask}. Then, in the generated pdf file, it ...
0
votes
1answer
84 views

Several lines in equation

I would like to get in LaTeX what the following code produces on Math.SE: $$\pi(X,Y)\to HoM(X,Y)\\\ [f]\mapsto[RQf]$$ And if I wanted to have an equation number to the right of the two lines, ...
0
votes
1answer
519 views

LaTeX pushes the cell off the bottom of the page

I have a problem with too long text in one cell. Text in cell is autocreated, and I cannot know previously how long will be it. When text is too long LaTeX pushes the cell off the bottom of the page. ...
0
votes
2answers
3k views

New line instead of word-breaking [duplicate]

Possible Duplicate: Prevent hyphenation and use line break in block of text When some word at the end of sentence does not fit in the line - I would like it to be moved to the new line, and ...
0
votes
1answer
3k 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 ...
0
votes
1answer
867 views

Using inferrule with beamer

I am using the mathpartir package for its inferrule macro, which suits my needs very well when it comes to 'normal' document classes (article, book). However, when trying to work with the beamer ...
0
votes
1answer
905 views

Split equation problem

I would like to split the following equation in two parts. Very basic thing, seems to be. \begin{equation} \zeta_k(x) = \frac{\sin (\frac{1}{2} (x - x_0)) \cdots \sin(\frac{1}{2} (x-x_{k-1}))} { \...
0
votes
1answer
25 views

Obtaining only minimal line wrapping in thin columns of a custom tcolorbox

This answer: http://tex.stackexchange.com/a/170767/69378 is (to me) an incredibly useful and versatile tcolorbox. This answer has satisfied my page design for almost a year now, but I am curious to ...
0
votes
2answers
51 views

Linebreak in \raisebox-like environment + consistent height of table cell

In Frank Mittelbach's answer here, he constructs an environment to add linebreak in a \raisebox-like environment. In Alain Matthes' answere here, he shows how to get a consistent row height in a ...
0
votes
2answers
54 views

How to avoid underfull boxes in itemize?

I am using an itemize as shown in this example: \begin{itemize} \item \textbf{The First}\\ Some text here over fifty lines.... bla blah \item \textbf{The Second}\\ Other text here ...
0
votes
1answer
38 views

How can I prevent non-math overflowing into margin when using textsubscript?

I am using \textsubscript for subscripting a non-math data . but it is long enough to cause overflow into the margin. What are the possible solutions?(may be like writing subscript in 2 lines)
0
votes
1answer
36 views

Disallow line break in \cite

How can I disallow line break in \cite? Two bibtex entries are @book{is, author = "Mörður Árnason", title = "Íslensk orðabók", publisher = "Edda", address = "...
0
votes
1answer
122 views

ConTeXt: Avoid text overflow into right-hand margin

Minimum Working Example (MWE) \starttypescript [serif] [storybody] \definefontsynonym [Serif] [name:couriernew] \stoptypescript \definetypeface[story] [rm] [serif] [storybody] [default] \...
0
votes
2answers
106 views

line break in enumeration and \underline command

How can I break a line that is inside of an enumeration, and \underline{} command, without using \usepackage{soul} and it's \ul{} command? \item{\textbf{\underline{Long string of text that needs to ...
0
votes
2answers
964 views

Vertically centered text in tabularx (again)?

I have seen Table with 100 % width and vertical / horizontal alignment, Vertically center text in tabularx table, Vertical alignment in tabularx X column type - and I'm trying what they suggest, but ...
0
votes
1answer
20 views

Problem about the sizes of the brackets after linebreaks

I have a problem in the brackets of the following code: \begin{align} S = \int d^Dx \left\{ \mathscr{L}_{m=0} - \frac{1}{2}m^2(h_{\mu \nu}h^{\mu \nu} - h^2) - \frac{1}{2}m^2F_{\mu \nu}F^{\mu \...
0
votes
1answer
47 views

How to make tabbed newlines

I need to make my text look like this for a homework assignment, how can I achieve that? (Sorry if the title or tags don't fit, I don't even know how this is called)
0
votes
1answer
221 views

Hyphen going into margin

I have the following issue with a hyphen going into the margin: As you can see, the Spatio-Temporal word has crossed the margin. How can I fix it in LaTeX? I am using the TeX template at www....
0
votes
1answer
2k views

Line break in author list for elsarticle document class

I'm using the Elsavier document class elsarticle where the authors are added with individual \author{Bob} commands. I have a long list of authors (generated randomly for this example): \author{...
0
votes
1answer
50 views

How to prevent aligned equations to shift when adding a non-aligned line break?

I have an equation in the aligned environment to align the equal signs together. However, the last equation is too long, and I want to break it up. When I insert a linebreak, all the equations above ...
0
votes
1answer
449 views

Long codes using listing or mcode which do not break into 2 pages

I'm using the mcode package for including my codes into my documents, but the problem is that when my codes are too long, and they need more than one page the program tries to keep them in one page, ...
0
votes
1answer
222 views

How to wrap text in table with delimiter?

I have one long text in a column of table. I want to wrap this it into a cell by using delimiter "/". How can I do it in longtable? ABCDEFGHIJ/DATSET Format: ABCDEFGHIJ DATSET
0
votes
2answers
93 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 is ...
0
votes
1answer
386 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 ...
0
votes
1answer
30 views

Vertical Spacing After NewEnvironment Definition

How can I modify this, \newenvironment{definition}[1][Definition]{\begin{mdframed}\begin{trivlist} \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}\end{mdframed}} so that a newline (vertical ...
0
votes
1answer
72 views

How to adding vertical spacing in \raggedright or \RaggedRight

I usually use \\, \par, \newline, etc. to add whitespace to LaTeX. However, when I use raggedRight, the pdflatex spits out a ton of messages saying "There's no line here to end." Ultimately, all ...
0
votes
1answer
44 views

Ideal file path line breaking within a cell longtable tabu

I am creating a table which has file name, source and destination file paths, and a short description of each file. The description and flag fields have spaces so the line break can be automatic. MWE:...
0
votes
1answer
35 views

Automatic line breaks in path{} command?

i use the \path{} command to print out a path to a directory in my *.tex File. I searched a lot around the internet to solve the problem to automatically linebreak the path-url. I found some hints ...
0
votes
2answers
32 views

Linebreak in a longtable

I use the longtable package to create a table that covers multiple pages, but the problem is that the linebreake does not function correctly.This is my code: \documentclass[12pt]{article} \...
0
votes
1answer
45 views

Breaking Typewriter-styled Detokenized Text

The goal is to have snake_cased elements typewriter-styled breaking properly. I am using \detokenize rather than simply \_ because otherwise the snake_casing looks wrong, namely like this: rather ...
0
votes
1answer
17 views

Function throws error only on first call in a section

I'm setting up a template for my homework for this semester in LaTeX, and I'm getting an error that the first time I call a function it fails but every later time in the document it works. Here's the ...
0
votes
1answer
37 views

How to prevent textpos' textblock environment from inserting \par?

The following MWE confirms what textpos documentation says: The {textblock} environment will most often be used in vertical mode. If it is called in horizontal (ie, paragraph) mode, however, it ...
0
votes
1answer
28 views

Figure caption has line break problems when using subfig

I'm using the subfig package and I'm getting words that are broken in captions. Can anyone explain why, or how to stop it? \documentclass[11pt,a4paper, draft]{report} \usepackage{gensymb} \usepackage{...
0
votes
1answer
107 views

unbold title and no line break for a subsection

How can we unbold the title of a subsection and suppress the line break, like it was done in the following image? The answers in the duplicate deal with how to do that for all the subsection. I want ...
0
votes
1answer
414 views

Wrong wrap URL in bibitem - LATEX [duplicate]

I need fix wrong wrapped url. I tried a lot of examples but not helped me. Thanks. \documentclass [ing,male,java,dept460]{diploma} \usepackage [czech]{babel} \begin{document} \begin{...