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

learn more… | top users | synonyms (1)

5
votes
2answers
245 views

Manually break lines like auto-breaking in lstlisting

I would like to decide where the long line should break, but with actions pre-/postbreak and without advancing in line numbering. I've tried that one: \documentclass{article} \usepackage{color, ...
10
votes
4answers
319 views

How to break this long radical into multiple lines?

I've got a very long radical in a display-math environment, so long that the equation spills in the right margin. How can I break that equation over multiple lines, so that it doesn't go into the ...
4
votes
4answers
262 views

Breaking and aligning equations

I have the following MWE \documentclass[10pt, a4paper]{article} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} \sum_i{ c_i} &= \cos \sin\cos \sin\cos ...
3
votes
1answer
63 views

Make a command start new line in a list if it is not currently at the end of another list

I am trying to typeset a structured proof as demonstrated by Leslie Lamport in his paper How to Write a 21st Century Proof. In particular, I am trying to typeset Figure 3 (shown below). My code and ...
10
votes
1answer
167 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...
4
votes
1answer
78 views

Bigfoot - problem in automatically or manually perform line breaks

I am using the bigfoot package in order to have two categories of footnotes along with the parameter para, in order to place the footnotes one after the other. The problem I am facing is on the line ...
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 ...
7
votes
1answer
142 views

Automatic line breaking and \hfill

I work on a CV and I would like to write some content (e.g. conference information) on the left side of the page and a date on the right side of the page. Because the content on the left side might ...
5
votes
2answers
156 views

How to break a paragraph between double {}

Document class I use the following document class: sig-alternate.cls The document class can be found at: http://www.acm.org/sigs/publications/proceedings-templates Problem: I have the following ...
3
votes
1answer
83 views

How to define this new environment and avoid the hidden errors?

I want to define a new environment ends with a $\omega$ in newline. But environment like displaymath already start a newline after itself, so I do not start a newline in this case. That is, start a ...
4
votes
2answers
730 views

resizebox doesn't respect linebreaks?

I'm trying to scale some text up. It seems like \resizebox (from graphicx?) and \adjustbox (from the adjustbox package) ignore line breaks: \resizebox{5cm}{!}{Hello\\ world} Is there a way to scale ...
1
vote
1answer
91 views

Why is lstlisting splitting my XML tags?

I have a little problem with this ambient. I have some XML to insert into my document and the thing that really bugs me is that the new line breaks a closing tag in two. I indicated to the environment ...
6
votes
1answer
86 views

Listings rule breaking into pieces when using xleftmargin=3pt,xrightmargin=3pt

I'm using the below coding in a Tex file and when I view the DVI output the frame rule for listings gets breakdown (please look into the screenshot below) Could some one help me in solving this ...
4
votes
2answers
288 views

moderncv - newline within a cventry in the banking style

I want to find a way to split long line in the 3rd element of \cventry. I use moderncv package and banking style. Using \newline doesn't help. I get the result in the picture using following code. I ...
2
votes
0answers
84 views

Text running off the page? [closed]

When I typeset to LaTex from Scrivener,the text runs off the page. Each paragraph shows up as a single line that runs off the page. Does anyone know how do I prevent that? I'm sure there is a super ...
0
votes
0answers
65 views

LaTeX adds a line break when the last line in a paragraph extends to the right margin [duplicate]

Could someone tell me why LaTeX adds a linebreak after stanza 11? [Edit: sorry, I think I should have used \par instead of double backslash \getroot{§10§} \par \getroot{§11§} \par \getroot{§12§} ...
6
votes
1answer
66 views

Linebreaking with \eqref and long tags

When using a long tag for an equation, is there a way to have an equivalent of \eqref that would allow LaTeX to break the reference between words, or even within words. In the example below I get ...
3
votes
1answer
78 views

Automatic non-breakable spaces?

Very often I have to manually add non-breakable spaces to make things look better. For instance: see~\cite{Bla98} for all~$x$ see Section~\ref{sect:bla} It looks specific enough so that it could ...
0
votes
0answers
34 views

AucTeX turn off line breaks

In AucTeX I do not want line breaks to appear when I open the .tex with a different editor e.g. on writeLaTeX. I want lines to appear as if they are broken, so I can see everything in the default 80 ...
0
votes
0answers
42 views

italic doesn't admit line break latex

I am really new in Latex, I have the problem with italic, when I am using \emph{.} to make words italic, it doesnt admit to line break: How can I use this problem? UPDATE könnten in vier ...
6
votes
1answer
75 views

How to detect overfull and underfull hbox without triggering the warning?

I need a LaTeX macro which can be used by this: \IfFull{TEXT}{THEN}{ELSE} It would typeset TEXT in a \vbox (which it will discard), and if there was an overfull hbox or an underfull hbox, it would ...
4
votes
1answer
77 views

How to typeset categories with long names?

I am typing some category theory and I am unsure how to handle the name of a category in LaTeX. I read the post How to typeset the name of a category? and implemented the mathbf-solution mentioned ...
46
votes
3answers
14k views

Allowing line break at ',' in inline math mode?

In the inline math mode ($...$), if the formula is too long, LaTeX will try to break it on operators, e.g. very long text followed by a very long equation like $a+b+c+d+e+f+g+h+i+j+k+l$ etc may be ...
31
votes
2answers
7k views

Why does underlined text not get wrapped once it hits the end of a line ?

Sometimes I want to underline some text, and it extends past the end of a line. Why does \underline{} not automatically wrap my text for me ? Also, how can I underline text so that it will still ...
2
votes
1answer
51 views

Misc in plainnat appearance [duplicate]

I use plainnat to cite online material as follows: @misc{Group2009, author = {Miniwatts Marketing}, title = {{Internet World Stats}}, howpublished = ...
7
votes
2answers
84 views

Break line within a macro while writing to a file

I am trying to use (La)TeX as a macro pre-processor for a programming language. My idea is to use the VerbatimOut environment from the fancyvrb package to output essentially verbatim text, but using @ ...
7
votes
3answers
233 views

Asterism and similar breaking / non-breaking options

What are the options that can be considered an alternative to the old asterism (⁂) symbol ? I would like to denote a small break in the flow of the text, I noticed that this days many people like to ...
4
votes
1answer
191 views

To have underline in two lines?

Command \underline{bla bla ... bla} The content overflows like so at the moment How can you have underline without overflow to the margin?
5
votes
1answer
224 views

Textsuperscript and linebreak problem

I got a problem when doing cites and linebreaks. I configured natbib the following way: \usepackage{babelbib} \usepackage[super,square,numbers,sort&compress]{natbib} Now, citing multiple ...
9
votes
2answers
119 views

Preventing line shrinking with raggedright

Sometimes with \raggedright, if a line is too long, but only slighly so, it will be shrunk instead of broken up. Here is an example: \documentclass{article} \raggedright \begin{document} This is a ...
1
vote
1answer
54 views

jurabib: every field in a new line

I'm trying to make use of some of the features of jurabib-package which are quite essential for me now. But I'm still facing one problem: I use the package with the bibformat=tabular, which nearly ...
0
votes
0answers
110 views

How to make two line apex

I'd like to split the apex in two lines. I'm commenting a part of an equation with \overbrace and I need to split the comment in two line because it is too long. $$ x = \overbrace{y}^{very big ...
0
votes
1answer
90 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 ...
2
votes
1answer
65 views

Issues with justification

I was going through this tex files www.biostat.umn.edu/~brad/8400/HQuick_cv.tex‎. However, when I use this tex, the text is not justified properly See the words establishments, Experimental are ...
2
votes
2answers
68 views

Line goes out of paragraph, when I give hyperlink

I'm trying to hyperlink \url{http://brollace.blogspot.de/2012/03/havok-tutorial-content-tools-part-1.html.}, but when I compile it, the line goes out of the boundary of paragraph. Can anybody knows ...
2
votes
3answers
90 views

How can I make lines break automatically in multirow?

I want to obtain a table like the one in my attachment. Then I tried to use \hhline to draw horizontal lines. But I still have a problem about breaking lines automatically. The one that I want to ...
5
votes
3answers
3k views

Push long words in a new line

I have sometimes very long words, which are for example method names and so on. Is there any possibility to force LaTeX to push them to a new line, if they overflow the margins? It is possible to ...
6
votes
1answer
250 views

Is there a (standard) font with a literal end-of-line character in it?

For ... complicated ... reasons (which I'll explain in a moment), I want to be able to put a literal end-of-line character in my document. Simply putting ^^J results in an Ω. Looking at the ...
1
vote
0answers
82 views

Spacing between single line paragraph with lettrine

I'm having the following problem with lettrines and paragraph with a single line : \lettrine[lines=2, loversize=0.15, findent=1em, nindent=0em ]{1}{}% First step. \lettrine[lines=2, loversize=0.15, ...
0
votes
1answer
69 views

Author formatting of multiline quotes in margin

I use my own command to typeset quotes in the margin of my document using pdflatex and memoir, see the MWE below. Each quote consists of the actual quote itself and its author. The problem I have is ...
8
votes
1answer
196 views

Newline in \def

I can not solve my problem. I have definition: \def\mfTitle{askdj asldj asdlk jhasd kjhaslkjd asdas} and I would like add a newline into it: \def\mfTitle{askdj asldj asdlk \newline jhasd kjhaslkjd ...
7
votes
1answer
83 views

Reversing the effect of a \newline with the next command?

I'm using the harvard package and the agsm bibliography style. I'm aware that there are alternatives, e.g., natbib plus har2nat, and I will be looking into those in the not-too-distant future, but at ...
19
votes
5answers
1k views

Wrapping long lines that contain no spaces

I need to format extremely long strings of text. I would like to be able to specify their width, and have them wrap, with or without some special symbol to indicate that the line is wrapped. The ...
3
votes
0answers
91 views

Ugly linebreak in texniccenter

After the update some weeks ago to the new version of the texniccenter editor, the linebreaks have become very ugly. For instance, if ''... is positive.'' does not fit in the line, then before it ...
2
votes
1answer
93 views

Make the lines of a description item line up

I am trying to line up the lines of a single description item. When I introduce a line-break or when the line becomes to long, the new line isn't lined up with the first one. I'm aware of the fact ...
1
vote
1answer
50 views

How to break the make of a new line?

I'm trying to break the make of a new line by \begin{itemize} for a more appropriate view of longtable. I can't find how to achieve this. Any help, please ? \begingroup \setlength{\LTleft}{-20cm plus ...
4
votes
1answer
114 views

g-brief2 resize address window

I want to send a g-brief2 based letter with a very long address that does not fit the address window. The address is automatically hyphenated, which looks strange in this particular case. Does ...
6
votes
1answer
258 views

TikZ: Text alignment and line breaking

I have some troubles with text alignment along path in tikz. I made custom shape and wrote text along path inside it in the following way: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
48 views

tabularx - How to linebreak in the tabularx environment?

How can I add a linebreak between two tabularx environments in a single section ? \documentclass[a4paper, 14pt, oneside]{article} \usepackage{tabularx} % Nicer table style than the default ...
1
vote
1answer
46 views

References citation does not go in a new line [duplicate]

An image is more expressive then words... How you can see, the citation of a \bibitem does not go in a new line. This is my code: \begin{thebibliography}{99} \bibitem[Documentazione ffmpeg x x x x ...