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

learn more… | top users | synonyms (1)

0
votes
0answers
21 views

Line Breaking Question with Polyglossia

I am working with multiple languages (with polyglossia), and I am having issues with extra line breaks where I don't expect them. See the minimal example below. The line surprisingly breaks after ...
4
votes
2answers
505 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} ...
1
vote
0answers
19 views

Breaking lines of code using using mcode [duplicate]

I am using the following code in the main tex file: \usepackage[numbered,autolinebreaks,useliterate]{mcode} and this code in the appendix file: \lstinputlisting{C:/path/function.M} Considering ...
76
votes
1answer
34k views

What is the difference between \newline and \\?

As far as I know, \\ and \newline both insert a new line. But they do not have an identical expansion and tracing shows they do not execute the same commands, so what is their difference?
0
votes
0answers
28 views

Line breaks in source code [duplicate]

When composing an article in LaTeX, where is it appropriate to break lines in the code? An easy (and adequate) answer is, 'Wherever you like,' but is there a commonly accepted standard (e.g., after x ...
8
votes
2answers
591 views

Title of beamer presentation runs outside the screen

the title does not continue on a second line but runs outside the screen Different .sty files are used but i'm not sure where the problem is located. The main .tex files is as follows ...
4
votes
2answers
238 views

Bold, horizontally and vertically aligned, multiline table headers

I'm trying to print a table where the first row, containing the header, should be bold and both horizontally and vertically centered. Additionally, I'm using longtable environment from this package, ...
3
votes
2answers
42 views

seqsplit does not work unless the string is given as an argument directly

Consider the following example. If I do \seqsplit{ReferencedIDs} the string does not get split. If on the other hand, I insert the string as an argument directly it does. As usual, I don't know why ...
7
votes
2answers
486 views

How to avoid citations being placed on a new line when \blockcquote ends with a list?

When csquotes's \blockquote and displaycquote ends with a list the citation is put on the next line after the list rather than directly after the last list item. Can one force csquotes to place the ...
3
votes
4answers
127 views

Vertical align content of table - with using automatic linebreak (tabularx)

I'm searching for (simple) method to get rid of the unbeatiful white spacing that is creating by using for example this minimal example. \documentclass[12pt,a4paper]{article} ...
5
votes
1answer
167 views

Line break in modern beamer theme impossible?

I use the new LaTeX beamer theme mtheme by Matthias Vogelgesang (see http://bloerg.net/2014/09/20/a-modern-beamer-theme.html). As some section titles are a little longer I tried to break the titles ...
0
votes
0answers
26 views

Does not break word into parts for a new paragraph [duplicate]

When I use \texttt{}, it does not break it into parts for new paragraph. Do you have any idea?
1
vote
1answer
37 views

How to add an empty line between two formulars

I have the following code \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
6
votes
2answers
259 views

Problems with tilde (~) and line breaking

I'm trying to avoid a line break between the word "Table" and the number reference for that table. Following the advice of another Q&A, I went through my whole document and replaced all spaces ...
2
votes
1answer
145 views

The correct way of making vertical spaces between paragraphs

This little piece of advice is all over the web: "Do not break the document flow in LaTeX." So what is the "correct" way of making an "extra large" break between two paragraphs (the same thing you ...
0
votes
1answer
62 views

biblatex prevent page numbers from linebreaks within the bibliography

I'm using biblatex with the alphabetic style. I've noticed that line breaks after the dash between the page numbers (e.g. for journal entries) could occur. Is it possible to prevent this and make the ...
2
votes
1answer
89 views

aside in XeLaTeX can't break line automatically

I downloaded a resume template and try to modify it. However, when I modify the email address on the left aside. Since my email address is much longer than the previous mail address within the file. ...
1
vote
0answers
30 views

How to prevent linebreak in the word “.NET”? [duplicate]

Sometimes, LaTeX breaks the word ".NET", leaving the dot on the previous line and putting "NET" on the next line. Can I force it to put all four characters either at the first line or at the second ...
6
votes
4answers
215 views

LaTeX package “titling”, titles with hard line breaks, and \MakeUpperCase

I have a document with a title that is spread over several lines using hard line breaks. To configure the title formatting, I use the titling package with code adapted from its documentation: ...
9
votes
2answers
1k views

Avoid line break between em-dash and the next word

I'm writing a text in Spanish, and I have a phrase wrote between em-dashes (that work like parentheses). The problem is that if the "opening" em-dash is too near the end of the line, then it may ...
2
votes
1answer
1k views

\medskip doesn't seem to work

I've just begun using TeXShop but seem to have come across a problem - I have a centered section that uses a \medskip right after a newline. Like so: \begin{center} Some text \\ Some subheading \#1\\ ...
15
votes
1answer
41k views

In-line \verb — overfull hbox problem

I'm having a problem that I've had before and I'm tired of hacking my way through it and hope that there is some supported solution. I'll go ahead and create a document for example: \documentclass ...
1
vote
1answer
39 views

Correct linebreaking on comment text for sidecaption using memoir class

I use some tricks to have a good \sidecaption command for the memoir class. But how can i have a correct separation between title name and some possible comments on the figure ? Figure 1.1 : My ...
3
votes
2answers
134 views

Breaking problem in tcolorbox — break at — breakable

My MWE, \documentclass[a4paper,twoside,openany,12pt]{book} \usepackage[left=1cm,right=1cm,top=2.5cm,bottom=2.5cm,marginparwidth=0cm,marginparsep=0cm,outer=1cm]{geometry} \usepackage[T1]{fontenc} ...
7
votes
1answer
183 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 ...
4
votes
2answers
69 views

New line inside color area

I'm trying to enter new line inside colour area like this $\color[rgb]{0,0,1}{P(A) = a +\newline b +\newline c +\newline d}$ But it does not work, why? And how do I solve it? Thanks!
4
votes
1answer
138 views

Line break of long author name

I have implemented the Harvard citation style using Biblatex and Biber as described here. This seems to work fine. However, I have now a problem with the line break of long author names, as shown in ...
1
vote
1answer
78 views

long word exceeds page width

I have this word in my document: --standard\_min\_confidence\_threshold\_for\_calling It currently exceeds the page width. How can I make it start on the next line, so it doesn't exceed the page ...
1
vote
2answers
84 views

Qcircuit: how to insert a new line in a gate?

here is my question: How can I make this figure? I find quite difficult to create two lines in the same gate. For example, all these gates (or mboxes?) are on two lines, but I don't know how to ...
2
votes
2answers
86 views

How to remove line break between index subentries

I am using the imakeidx package to generate and format my indices. What I want is to remove the linebreak between two subentries of the index. This way, the entries belonging to the same index ...
0
votes
1answer
107 views

Block wise author and affiliation

I am using IEEEtran class and I am quite new to LaTeX how can I achieve this output in proper format using IEEEtran class.
4
votes
1answer
60 views

Can \pbox{max width}{text} be used in tex4ht

Can \pbox{max width}{text} be used in tex4ht? If it can't, is there an alternative that will let me wrap text (manually or automatically) in htlatex. In my reading there was an option ...
5
votes
2answers
928 views

Break Lines in minted environment

Usually when adding code in a LaTeX document, I use the listings package. When trying to modify and personalise styles in listings, @1010011010 suggested to use the minted package. To be quite frank, ...
2
votes
1answer
50 views

change vertical space in matrix after linebreak

I want to change the vertical space between two lines in a matrix. Normally I could do this with row sep, but this doesn't affect the vertical space if the line is breaked, see picture. I tried ...
77
votes
2answers
17k views

When to use \par and when \\

What is the difference between \par and \\ and when should I use \par instead of \\?
1
vote
0answers
72 views

how do I make latex allow breaking a line whenever reaching line boundary [closed]

I started writing my HW in latex, I use an online latex editor+compiler. Sometimes, when I write long math expressions, the expressions exceed the right boundaries of the page. I've seen that it has ...
15
votes
1answer
1k views

Class 'standalone' and linebreaks for a 'Je suis Charlie'

I have produced a Je suis Charlie image, and I wanted initially to use the standalone class, but I did not obtain the intended result. Here is the intended result: Here is the produced result: ...
4
votes
2answers
142 views

Pleasing line breaks with extremely long words that must fit on the page

I'm typesetting some technical documentation that includes identifiers with very long names. It is unacceptable to break or hyphenate these names because that would look confusingly like juxtaposed ...
0
votes
0answers
11 views

\nolinebreak in \caption [duplicate]

I have long caption of figure element and dont want to break the line in particular place. I use \nolinebreak but get error: ! Argument of \caption@ydblarg has an extra }. <inserted text> ...
4
votes
1answer
75 views

LaTeX elsarticle \cline for array mode

I am making a matrix like this one: \documentclass[preprint,11pt,3p]{elsarticle} \usepackage{amsmath,epsfig,amsfonts,amssymb,subfig} \usepackage{amsfonts,mathdots} \usepackage[ngerman]{babel} ...
15
votes
0answers
203 views

Test if paragraph has an overfull line

I'd like to test if the last paragraph has any overfull line. The naive approach of looking at the \badness once the paragraph is finished does not work, as it will only give the badness of the last ...
4
votes
1answer
135 views

How to elegantly break long doi field

This is a code snippet from my paper. \RequirePackage{filecontents} \begin{filecontents}{bib.bib} @article{baumert62, author = {Baumert, Leonard and Golomb, Solomon W. and Hall, Jr, Marshall}, ...
1
vote
3answers
84 views

New line and paragraph in TeX [duplicate]

I have been a writing a simple program using TeX programming like Hello, World! How are you. \bye I want the two sentences to in different lines but they come in same line. Using \\ it gives an ...
4
votes
4answers
329 views

How to break a product of three polynomials

I have $$(1+x+x^2+x^3+x^4+x^5+x^6)(1+x^2+x^4+x^6+x^8+x^{10})(1+x^5+x^{10}+x^{15}+x^{20})$$ but is too long to fit the page. How to break this?
5
votes
1answer
116 views

Caption with a line break in Memoir Class

The following code works with the report class. However, the same code does not work with the memoir class. The problem is with the line break in the caption. (FYI: I have TeX Live 2014.) ...
0
votes
0answers
26 views

Two columns template [duplicate]

I have a question regarding to two columns format. I want to use the following document in paper. While I want to write a multiline formula it goes to the next column and change everything to a messy ...
3
votes
2answers
78 views

How to break lines of text in equation?

I have a problem with breaking lines in equation environment, can't really omit the text. I tried using \mbox and \parbox but they don't really give the effect I'm looking for. example: ...
6
votes
1answer
83 views

\unskip and \hskip in \linebreak

I found the definition of \linebreak macro as follows: \def\linebreak{\@testopt{\@no@lnbk-}4} \def\@no@lnbk #1[#2]{% \ifvmode \@nolnerr \else \@tempskipa\lastskip \unskip ...
6
votes
3answers
217 views

Build a box that starts after next line break

I have reason to insert notes in-text in boxes. I defined the following command for doing so: \newcommand{\Lnote}[1]{% \textsuperscript{\footnotesize{\thelnote}} \begin{center} ...
4
votes
1answer
67 views

Multiple subsequent connected equations exceeding line length

How to break a number of equations like in the following example? \begin{align} \lambda \cdot \lambda \cdot \lambda \cdot \lambda \cdot \lambda \cdot \lambda\\ \beta \cdot \beta \cdot \beta ...