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

learn more… | top users | synonyms (1)

6
votes
4answers
171 views

Line breaks in part of the equation in math mode - how to?

Does anybody know how to do this: Thank you!
4
votes
2answers
51 views

Line breaks in custom command that uses tabular environment

I am using a resume template I found here - http://www.davidgrant.ca/latex_resume_template There is a custom command, based around the tabular environment, which is in the MWE below. I would like to ...
2
votes
1answer
91 views

Problem with dash using XeLaTeX

I am writting with LaTeX my bachelor thesis. I am using XeLaTeX because you can easily highlight text with the xesearch package. My problem is that words with a dash like HTML-Request are not broken ...
5
votes
1answer
31 views

“and” in citation in the end of row

I write my article in Czech language where "and" = "a" and this little word can't be in the end of the row... how can I force bibtex not to write "and" (or anything else) in the end of the row in ...
62
votes
5answers
4k views

Avoiding “rivers” in successive lines of type

This question led to a new feature in a package: impnattypo The following quote is from James Felici, The Complete Manual of Typography (2003), p. 161: Rivers occur when word spaces stack ...
4
votes
1answer
58 views

Adding a blank line in algorithm2e

Is there any way to add a blank line in algorithm2e? I have the following document: \documentclass{article} \usepackage[linesnumbered]{algorithm2e}% http://ctan.org/pkg/algorithm2e \begin{document} ...
3
votes
1answer
73 views

two columns column breaks

\documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof,parskip=full]{scrbook} class and two columns there via "\twocolumn". It works fine mostly but in some instances of the texts involved I have the ...
1
vote
1answer
64 views

Putting an equal sign both at the end and at the beginning of the line (dmath)

I'm using dmath for my equations, because it breaks lines automatically. I've been taught that if I have two formulae separated by an equal sign and they are on different lines then the equal sign ...
2
votes
2answers
130 views

Any way to check with a macro if an equation is too long to fit into a single line?

I have some very long equations which span a few lines. I'd like to Break lines automatically. Pagebreak. Have an equals sign both at the end of the first line and at the beginning of the second ...
4
votes
2answers
92 views

Align split equation to the margins

How to align a two-lined equation such that the first line left aligns with the surrounding text and the second line right aligns with the surrounding text? Example (where the pipes denote the left ...
2
votes
2answers
120 views

Custom line breaks in biblatex bibliography entries

I'm using biblatex with bibstyle=authoryear option. I'd like to customize the style to insert a line break after the year in each bibliography entry. Currently, an entry looks like this I'd like ...
7
votes
0answers
74 views

Obtain \badness or glue adjustment for each line

This might be interesting for perfectionists and/or fastidious typesetters who would like to improve the document even further (beyond the beyond the magnificence of a book with zero bad boxes). We ...
3
votes
2answers
229 views

Right-align the prebreak symbol in a listings environment

I’m using the breaklines and prebreak option with listings, but I find it visually not very pleasing that the prebreak-symbols are not vertically aligned. I’d prefer if they were all on the very right ...
2
votes
1answer
57 views

How can I force to print exactly at the end of the line? [duplicate]

I would like to force a linebreak, but at the same time I would like to force LaTeX to print at the and of the line, so I would like no space at the and of the line!
1
vote
0answers
48 views

Line breaking in math mode

Under default settings a line can be broken in math mode after binary operator with \binoppenalty or after relation with \relpenalty. I'd like to preserve this behavior but alter the result so the ...
7
votes
3answers
228 views

How does (or, what happens when) Tex typeset(s) a line and linebreak?

I could not find references to this with a cursory search, so I thought I'd post a question; I'm aware this is probably discussed at length in the Tex book or similar, but unfortunately I don't have ...
3
votes
1answer
96 views

Linebreak followed by bracket

I tried to find a topic here on this (possible problem) but I didn't. I reported it at TeXstudio SF but Tim Hoffmann pointed me that it is not a problem of editor. After tested with nano and ...
2
votes
1answer
55 views

Line break and text arent working

I am new to LaTeX and I am having trouble with \text and line breaks. My code is as such $$\text{if} y^{(t)} \neq h(x; \theta, \theta_{0}) \text{then} \\ \theta^{(k+1)} = \theta^{k}+ ...
2
votes
2answers
286 views

Line break “no line to end”

I would like to know how to force a gap say in this instance: \subsection{$K\nsubseteq L$}<br> [Line break here]<br> In the next three results that follow, ... Naively using \newline or ...
9
votes
3answers
3k 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 ...
3
votes
0answers
12 views

Bibliography URLs missing part when using lmodern [duplicate]

I'm creating a document that contains urls in the bibliography. That works just fine and the urls are broken to new lines at appropriate points. The only issue I have is that the two pdf viewers I've ...
0
votes
2answers
45 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, ...
34
votes
7answers
8k views

Allow line break, but without inserting a dash

I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to ...
5
votes
1answer
90 views

Section break that displays content iff it occurs in middle of a page

I'm trying to create a section break that will display a separator when it occurs in the middle of a page, but display nothing if it lies at the top or bottom of a page, where there's nothing to be ...
1
vote
0answers
110 views

How to respect 80-character limit per line of text in source code

Suppose I have a long line of italicized text in a report or other document. If it is more than 80 characters long, I may want to move everything after the 79th column position to the next line in ...
2
votes
1answer
54 views

Manually break biblatex entry like date or number

I am running Biblatex with Biber and TexnicCenter with Miktex. How do I manually break the date or put it on the next line if it is at the end of an entry (ISO 8601, has to be broken or on a new ...
7
votes
2answers
302 views

How come the tilde ~ sometimes does not behave like non-breaking space?

This is again one of the behaviors that are quite difficult to catch in a reconstructible (and simple) example, so one has to resort to animations. Basically, the issue is this: the tilde (~) is ...
2
votes
1answer
88 views

Text is not fitting the column

I want my texts to continue in the next line instead of continuing in the other column. How can I manage this? My code is : ![enter image description here][1] ...
12
votes
1answer
160 views

Does \\* within footnotes have any effect?

One is taught that \\* is an alternative to the line-breaking \\ that tries (often unsuccessfully) to inhibit a page break. Normally \\* would be used in ordinary ("body") text. (And I hereby ...
5
votes
4answers
152 views

Remove space in Emails

In a paper I need to remove spaces between two emails of an author with two affiliations. The code is below: \documentclass[10pt,twocolumn,letterpaper]{article} \begin{document} \title{Title} Author ...
1
vote
2answers
39 views

LaTeX doesn't break lines with capitalized words to the end properly

I have a text like: Lorem ipsum dolor sit amet, consetetur BRANDNAME sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero ...
8
votes
2answers
80 views

How do I separate items within a line so that the separator automatically does not appear at either end, and items are not line-broken?

In my CV, I have lists that look like this: wizardry \tdot fluid dynamics \tdot applied bear wrangling \tdot calculus \tdot [...] where \tdot is a \textperiodcentered character along with some ...
6
votes
3answers
91 views

bigdelim and text with multiple lines

I have a table with a common label for multiple lines. Using bigdelim I place brackets to give explanations. My explanation has too much text for one line, so I would like it to break over multiple ...
2
votes
1answer
42 views

Listing package showing newline after the last line of code

I haven't been able to suppress this newline only with configuration. In the listings documentation it is said that the showlines option if set to false won't let the newline appears, but that is not ...
8
votes
2answers
307 views

How to automatically keep the indentation level when a line has to be broken

I'm using the algpseudocode package with two custom commands, \Let and \LongState to handle automatic indentation of (broken) long lines in the spirit of Werner's answer, which uses \parbox to wrap ...
1
vote
0answers
48 views

Text moving outside of justification margins

Apologies if the title is incorrect, but I'm not entirely sure how to describe the issue I am having. Please see the image below for clarification. The text should be justified, but in random spots of ...
13
votes
2answers
4k 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} ...
7
votes
2answers
226 views

Breakable fill-in blanks

What is a good way to create blank space (preferably, underlined -- it is to be filled in by hand when document is printed) that takes up all the remaining space on a line. The blank space may appear ...
2
votes
2answers
183 views

Why graphics do not respect the end of line?

I see this all the time, inline graphics (in this case tikz picture) do not obey line breaks and flow like a word. In this example document, there are no forces new lines and the picture sticks out ...
5
votes
4answers
184 views

Word stacking in math mode

I have this wordy equation and don't have much room in my two-column article style. I want to stack small expressions with a "partial line break", so as to save room. I figured it out, but it isn't ...
4
votes
1answer
125 views

very bad underfull hbox

I would like to include a progress bar in my presentation and, when in draft mode, a page number below the progress bar. I have the code to do this, and it looks great, but I get one instance of this ...
45
votes
3answers
1k views

Why no vertical-mode Knuth-Plass?

I have only basic knowledge of the TeX internals, so I hope what I am saying here is not complete nonsense. If I understand correctly, in TeX, horizontal positioning / line breaking is done using a ...
2
votes
2answers
68 views

How to break line of subscript under min?

$$ \min_{c^{(1)}, c^{(2)}, \cdots, c^{(m)}; \\ \mu_1, \mu_2, \cdots, \mu_K} \frac{1}{m} \sum_{i=1}^m \left\lVert \vec{x}^{(i)} - \mu_{c^{(i)}} \right\rVert $$ The \\ does not seem to do the trick? ...
5
votes
1answer
98 views

How can I prevent TeX hyphenating one occurrence of a word (locally)?

I'm currently typesetting a test using the exam class and the test consists of some True or False statements. Some statements span a couple of lines, but some could fit in a single line, except for ...
5
votes
2answers
67 views

How to keep a short word together with the rest of the sentence?

I'm writing an article. In a certain paragraph, the last sentence is spread over two lines. The second line is just a short word ('in') and that's a bit ugly. Is there an easy way to keep it together ...
5
votes
2answers
181 views

Changing the rules of line breaks

I used pgfplotstable to read the data from a file. The columns have fixed widths. The third column contains usual text and the lines are broken nicely. The second column contains mathematical ...
1
vote
0answers
27 views

line exceeds margin in cover letter [duplicate]

I used newlfm to create a cover letter. However after I made some pieces of text bold, italics and underlined, some lines exceeded the margin. I then used \sloppy. Still, there is one line that juts ...
29
votes
2answers
1k views

How to visualize the underfull box in final output PDF files

I am finalizing a document. There are a few underfull vbox I just cannot figure out where they are. Sometimes it is easy to figure out which page is underfull vbox from the log file, but sometimes it ...
1
vote
1answer
51 views

make a title for a poster

It will be very helpful if someone kindly help me fixing the title of the code below: \documentclass[a0,portrait]{a0poster} \usepackage{tikz} ...
3
votes
1answer
37 views

Text hypenation inside array-typed environment

I'm trying to write a cases or array environment, inside display mode, with some long line of text. The thing is I can't achieve a linebreak. I know for certain that array won't allow this. I also ...