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

learn more… | top users | synonyms (1)

7
votes
2answers
135 views

Why \\ increases interline spacing before the command in center environment?

This is about the effect of the line breaking command "\\" in center environment. It appears that the command has the effect of increasing the interline spacing of text appearing before the command. ...
0
votes
0answers
43 views

lstlisting in tabular

I try to put code into a table. custom lststyle: \lstdefinelanguage{XML} { identifierstyle=\color{darkblue}, } \lstdefinestyle{my-xml-style} { basicstyle=\ttfamily\footnotesize, ...
2
votes
1answer
37 views

Blocks alignment

I'm new with LaTeX, so to start I've downloaded a template of CV. I want to do a newline in the left block, but the result that i obtain is this: As you can see the two blocks are no more ...
2
votes
1answer
34 views

Verbatim overruns text block

The problem when I export the document to PDF there is some text at the end of the lines does not appear to the print page. How can I fix this? \begin{verbatim} //Add staff.php <link ...
2
votes
1answer
71 views

Too long vertical lines in table when declarations must remain on distinct lines

I am facing a situation where I am somewhat faced with the modular and conditional assembly of a table which prevents the \begin{} and \end{} definitions from remaining in the same local context. ...
37
votes
2answers
29k views

No hyphen for a word

I want to put pdflatex to not put a hyphen in a word went it comes to the end of the line. I tried to put a \- in the beginning or the end of that word but it doesn't work. For example if I put:This ...
1
vote
1answer
62 views

how to give shift enter in latex as in microsoft office word

in few cases i need shift enter to move the word to next line in MS word by giving shift enter that word moves to next line how to do in latex?
1
vote
1answer
27 views

Automatically break line if it spans over x centimetres

I am using IguanaTex to insert latex text and equations to PowerPoint presentation. This plug-in uses a default template to generate latex images (it compiles it to pdf then to image). Here's an ...
4
votes
1answer
74 views

Why does it appear in english?

I have used the following commands: \begin{proof} \begin{enumerate}[i.] \item \begin{description} \item[Βάση επαγωγής] : Για $m=2$ έχουμε $X_2(a)+\alpha (a)Y_2(a)=(\alpha (a))^2=a\alpha (a)+1$. ...
5
votes
2answers
105 views

split a multiline bmatrix

I was attempting to split up a 2 row bmatrix in two lines but was not successful. Can you help me split up the matrix. This is the effect that I wanted to get: Here is my code: ...
1
vote
0answers
41 views

Formatting latex code in lyx

I have been using lyx and have run into text formatting issues when using math inline formulas. For example, the code bellow: is converted to: How can I make the formula fit the numbered list?
2
votes
0answers
47 views

Place \mbox around elements in a list

I am trying to achieve essentially the same effect as asked for in this question, except that I want to redefine \item to achieve the result automatically. Specifically, I am trying to use an inline ...
1
vote
1answer
27 views

Justify manual line breaks at the bottom of a column

I'm trying to reproduce a justified multi-column document, and am therefore using manual line breaks throughout. However, this doesn't work for lines at the bottom of a column, because \linebreak ...
8
votes
2answers
8k 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 ...
0
votes
1answer
25 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 ...
323
votes
16answers
244k views

How to add a forced line break inside a table cell

I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following: ...
3
votes
1answer
56 views

How to get a carriage return (newline) in directlua (tex.sprint) inside a QRCode?

How can one get a carriage return at the end of each line (Lualatex) ? \documentclass{article} \usepackage[nolinks,forget]{qrcode}% \begin{document} \newcommand{\Space}[0]{\ }% ...
3
votes
1answer
48 views

Avoid pagebreak between equation and label

I have a very long equation which barely fits into one line, but the label does not and is positioned one line below. The problem is that if the equation is at the end of a page, the labels is moved ...
4
votes
1answer
88 views

Nomenclature with glossaries line break in name field

I'm using the glossaries package to generate a nomenclature for my document. The problem is that some of my entries have very long functions within the name field. How can I add a manual line break at ...
7
votes
1answer
120 views

What does \newline do to the line justification?

I can't understand what \newline does to justify the line that it breaks. It's clear that \linebreak uses the justification of the paragraph and has the same effect as simply ending the paragraph ...
2
votes
1answer
81 views

How do I fit authors into a single line?

How do I fit authors into a single line? \title{An example} \author{Multiple authors with long name will be splited into two lines} \begin{document} \begin{frame} \titlepage \end{frame} I use ...
7
votes
1answer
76 views

Listing creation fails with “dimension too large” given a large block of characters

When creating a code listing, we recently ran into a strange error from the listings package. Specifically, listings bails out on a large block of text. Here's a minimal working example: ...
5
votes
2answers
49 views

Why doesn't \nolinebreak work in this case?

When I have something like: (Some-)Thing at the end of the line, LaTeX always breaks after the '-', even when I use: (Some-\nolinebreak)Thing I do know about solutions like using \mbox{}, but I ...
2
votes
2answers
42 views

Inconsistent line breaks instead of hyphenation

Working off of this question, I see that XeLaTeX is inconsistently applying hyphenation to my text. As you can see in the MWE, in the paragraph before the \entry, hyphenation is not applied, yet in ...
3
votes
1answer
34 views

One line header for two line section [duplicate]

In my code I have two line sections. But I want it in 1 line in header . What can I do? \documentclass{biditufte-handout} \usepackage{ptext} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} ...
2
votes
1answer
79 views

Proper way to linebreak

When not doing tables, it's \\ or to leave a blank line. I heard a few times that \\ should be avoided whenever possible. Thus, any doc with a bunch of different-line formulas would have lots of empty ...
3
votes
1answer
579 views

Latex hyphenation exception

I have some problems with my document. I have one sentence with indentation. It is too long and it takes minimum two lines. And I have something like this: Macierz rozproszenia idealnego, ...
3
votes
1answer
54 views

Putting a full stop in the end of an equation makes equation number appear one line below

I'm having a problem. I am writing my thesis in physics, so I use a lot of equations. Since equations are to be treated as part of a sentence they include punctuation in the end. I have all the ...
5
votes
2answers
2k views

\cite spills over into the margin

As you can see at the picture, a citation spills over into the margin of my paper. How can I resolve the issue?
5
votes
1answer
43 views

Problem with line breaking citation with bibtex

I'm having troubles with the the appropriate line breaking of my references with BibTeX with the author-date format. The problem is that each reference is cited in the format "(Author, Year)". When ...
3
votes
0answers
56 views

Need linebreak when \fbox exceeds the text area

Need to align a "fbox", when exceeds the text area. MWE: \documentclass{article} \begin{document} Blah \fbox{Text within box in horizontal line} Blah ... Blah \fbox{Text within box in horizontal ...
3
votes
1answer
124 views

BreakURL package using DVIPS only works on URL and not DOI

I've prepared my bibliography using biblatex, and my DOI addresses are not breaking their lines properly. I know that using pdflatex will solve this issue, I have to compile my document using latex -> ...
4
votes
1answer
47 views

Avoid linebreaks when going from Emacs/Vim to Texshop?

I'm editing .tex files in Texshop, that others are editing in Vim or Emacs. However, when I open their files, I only get 10-12 words per line, so that there are very frequent line breaks. I believe ...
6
votes
2answers
72 views

Line break after \section number

I need to have a line break after \section number (I use Roman numbers), like: I Section ... some text ... II Section I've tried \renewcommand{\thesection}{\Roman{section}\\}, but it only creates ...
4
votes
2answers
70 views

Tabbing alignment and over-length sentence auto line break

【Question】When using "tabbing" under math mode with cases, how can I achieved the following at the same time: (1) alignment in cases by "tabbing" (2) over length element such as a long sentence in ...
9
votes
3answers
5k views

Linebreak in Package algorithm2e

I'm using the algorithm2e package for pseudocode. I got some very long lines that needed to be wrapped. Is there a way to indent the following (breaked) lines and/or put a mark at the first line to ...
2
votes
0answers
21 views

Bibliography with each entry not on a new line? [duplicate]

Is it possible to get Biblatex (or bibtex, I can change) to put out a citation with each entry not on a new line? Right now I have something that looks like: 1. Katz, M. J.; Ramnial, T.; Yu, H.-Z.; ...
11
votes
1answer
3k views

Adjust the indentation whithin the algorithmicx-package when a line is broken

I have this code \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm} \caption{Minimal Working Example for my Problem} ...
4
votes
2answers
125 views

how to get a newline in \fbox?

I am trying to have two lines in inside \fbox but is not working. Below is my code \documentclass{beamer} \usepackage{vietnam} \begin{document} \begin{frame} \frametitle{Exhaustive Search} ...
4
votes
2answers
58 views

Linebreaking in a correct manner

So this might be a really basic question, but I couldn't find anything about it. In my amateur style of LaTeX typesetting, I sometimes want linebreaks in random places for various reasons. I usually ...
2
votes
3answers
140 views

how to maintain text justification after forcing a new line

How to break a line of text (\newline or \\) and still maintain justification for its texts?
104
votes
11answers
52k views

Forcing linebreaks in \url

I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the ...
3
votes
1answer
55 views

fancyref's \fref produces a line which is to long

I have the problem, that the line, where I have a \fref, is longer than the lines in the rest of the document. I am using KOMA Script with latexmk and xelatex, to generate the document. I have ...
2
votes
1answer
48 views

Auto line break in tabbing

When inserting contents into table cells, is there any simple, direct solution to make the content-line break automatically just like the paragraph showing above? i.e., I what the "cccc cc cc...." ...
2
votes
0answers
28 views

Enforce automatic breaking of long lines and and indent broken lines

I have many tex documents like that below which I want to translate with pdflatex. The files are the output of a vim-plugin which generates formatted output from vim's internal syntax highlighting. ...
2
votes
0answers
22 views

Widow numbers and \cite seprated from the previous words

I did search for this (even asked for help in meta), but found nothing. Sometimes I need to use tilde ~ to keep things looking good in situations I fell latex should do it automatically. Examples: ...
2
votes
1answer
39 views

Bash script between report lines - Line Breaking

I'm using the following commands to introduce bash script text in the middle of a report: \newcommand{\shellcmd}[1]{\\\indent\indent\texttt{\footnotesize\# #1}\\} \begin{document} \noindent ...
2
votes
1answer
26 views

I am having some trouble making a newline in itemize section, unfortunately \newline \parbox \par or \\ is not working

\documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{banking} \moderncvcolor{blue} \usepackage[utf8]{inputenc} ...
4
votes
1answer
52 views

Prevent a new line before a theorem

Is there any way not to start a new line for a theorem? For example, in the following example, I would like the word Theorem to be on the same line as the number 1. ...
2
votes
0answers
18 views

There is no line here to end. What's the error? [duplicate]

Ans7)As we can see from the automata itself that it is $\epsilon$- NFA so we need to convert it into a NFA and then to a DFA.\\ The Transition table is:\\ \begin{center} \begin{tabular}{|c|c|c|} ...