{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
57 views

What command can I use to break the formula to have the alignment acceptable? [duplicate]

Below, in the image, there is a math formula which has a pink underline (namely Ann_{f(A)+J}(J)=0). As you see the alignment isn't acceptable (highlighted). Question. What command can I use to break ...
1
vote
0answers
53 views

Automatic line break in writing pseudo-code using algorithm package

I am going to write a pseudo-code using the algorithm package. Everything is fine, however, I am not able to automatically break lines and you see what happens in the picture below: I am wondering ...
2
votes
1answer
43 views

Datatool CSV file with column having multiple rows of a table

I'm using datatool package to load a CSV file and then print the data in it in several parts of a document. I include a few rows of the CSV file: ...
3
votes
1answer
35 views

\uline{} does not work correctly with long non-English lines

I have encountered with situation that \uline does not break correctly non-English lines. I think that problem may be in extra-libraries that I use. For, example I work with Russian document. ...
4
votes
1answer
809 views

No correct centering when a line break is used

I have a centering environment inside a figure. In this environment, I have a text written in a footnotesize style. If I make a line break (\\) in the text, then the text is not centered correctly ...
3
votes
2answers
94 views

Break line in \textbf{} in \uline{} element

I have such construction in my document. \documentclass[11pt,a4paper]{article} \usepackage[normalem]{ulem} \begin{document} \uline{ Example text \textbf{bold example text huge long with many lines ...
0
votes
0answers
40 views

Long references not breaking across lines [duplicate]

In the reference section of my paper, some of the references are very long and therefore look rather out of place. Is there a way to fix this?
2
votes
2answers
40 views

How to go about breaking table content across multiple lines?

I'm trying to make a list of skills for my CV, and I've been trying every which way to get some things to break across multiple lines, to no avail. It just looks like crap. \documentclass{resume} % ...
4
votes
1answer
46 views

Minted breakautoindent changes behaviour on OverLeaf

I am trying to typeset some of my source code using the minted package, this works fine that is to say there is no outright error but something strange happens why I typeset locally. For various ...
3
votes
1answer
47 views

Insert linebreak between authors

For a publication, I am trying to follow a template. The way of adding authors is the following in the template: \documentclass[10pt,emptycopyrightspace]{ewsn-proc} \usepackage{graphicx} ...
2
votes
1answer
44 views

How to add background for texttt (and allow line breaks)

I use texttt{} to write names of software, commands etc. within the text. Sometimes the texttt text is longer and there is a line break within it. It works well, no problem here. I wish to add ...
2
votes
1answer
68 views

Allow line breaks but not page breaks

How can I avoid that a \parencite{key} will get broken over 2 pages? Linebreaking is fine, but page breaking is not. The reason I do not want this is that I have TIKZ customization for citations, ...
4
votes
2answers
52 views

Break line in $ $ mode [duplicate]

I have a long list of vectors written between the signs $ $, the problem is that the list is so long it does not fit the page. I want to make the list break at some point and continue in the following ...
2
votes
1answer
82 views

`\Hy@raisedlink` block hyphenation and perturbate line breaking

the \Hy@raisedlink (used because of what explaned in this answer: http://tex.stackexchange.com/a/17138/7712) seems make trouble with hyphenations. Cf this MWE \documentclass[a4paper]{book} ...
1
vote
1answer
47 views

Avoid splitting of math expressions in text [duplicate]

I am writing a math expression, $P = \omega \tau$, in the middle of my text, and LaTeX splits it such that "P =" is on one line and "\omega \tau" is on the next line. I would like the whole expression ...
0
votes
0answers
58 views

How to fix hyphenation of words where last character ends on next line

Does anyone know if it possible to stop this sort of thing where the only the last character or two of a word is hyphenated onto the next line? LaTeX for the above follows: ...
12
votes
2answers
5k views

URL linebreak in footnote

I use a footnote with a too long url, so that I'd like to see a linebreak. The url package does linebreaks automatically as far as i know, but in the footnote it won't do it. Anyone have a solution to ...
6
votes
3answers
105 views

Splitting equations

I'm very new to this. This is what I'm trying to do: \begin{equation}\label{eq.7} \begin{split} CTS = {P_1}_1 \cdot {L_1}_1 + {P_1}_2 \cdot {L_1}_2 + {P_1}_3 \cdot {L_1}_3+{P_1}_4 ...
18
votes
3answers
2k views

Nonbreaking dash that allows hyphenation

The babel package provides useful dash variants, e.g. "~ for a non-breaking dash that forbids hyphenation in the parts, and "= for a breaking dash that allows hyphenation in the parts. However, ...
9
votes
3answers
2k 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 ...
0
votes
1answer
49 views

How can I make tabu break lines at any character? [duplicate]

I have a table created with \begin{tabu} whose columns contain lengthy strings that it won't wrap because they are not English text, they are actually programming language identifiers. How can I ...
1
vote
1answer
37 views

linebreak with \lstinline

Why does \lstinline not break lines correctly like with \begin{lstlisting}? The text goes over the documentborder with \lstinline. Thank you! \documentclass{scrreprt} \usepackage{listings} \lstset ...
0
votes
0answers
25 views

force line break in list of figures (url link problem) [duplicate]

I'm getting this error due to a url link in the title of a figure , how can force the break ling even if it is a long word ? Thank's
0
votes
1answer
90 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] ...
3
votes
1answer
51 views

How do I force the title of a bibliography item to not go into the margin?

I have a citation for which the title is overflowing into the right margin. Any ideas on how to force it to not go into the margin? Here is my mwe: \RequirePackage{filecontents} ...
3
votes
1answer
58 views

FancyVerb error when % at end, when using \DefineVerbatimEnvironment

This MWE gives an error when % is at the end the line as show below \documentclass[11pt]{article}% \usepackage{fancyvrb} \DefineVerbatimEnvironment{Xsmall}{Verbatim}{fontsize=\small} \begin{document} ...
4
votes
2answers
1k views

How to typeset a backslash and get line breaks in URLs?

I have a lot of Windows file/folder paths and register paths in my document. And I'm having 2 problems: The \ is seen as and escape character which obviously doesn't compile. \\ Starts a new line ...
74
votes
6answers
32k views

Prevent LaTeX to break an inline math equation

I hope this question was not asked before. At least I haven't found it. I have an inline math equation and LaTeX is breaking it into two parts. In this case I'd prefer to have the whole and short ...
2
votes
0answers
42 views

Width of the table

i have a problem with the the width of a table,this is the code: \begin{table} \centering \begin{tabular}{|cl|c|c|} \hline & \emph{\textbf{OWL ...
2
votes
0answers
40 views

Missing \item when putting image in beamer

I attach my MWE: \documentclass{beamer} \usepackage{graphicx} \begin{document} \begin{frame} \frametitle{Frame title} \begin{figure}[!htp] ...
1
vote
1answer
35 views

Earlier line breaks in TOC

Is there an option in tocloft to decrease the maximum length of lines in the TOC? I'd like long section titles get a line break earlier, to increase the white space before the page numbers. ...
4
votes
1answer
80 views

Center last line of the paragraph; but I don't like small lines

Attention: This is an advanced TeX problem. I usually dislike lines that are too small, and so I tend to add \parfilskip=2em plus 0.6\textwidth to my documents (apart from small lines, this also ...
2
votes
2answers
34 views

Lists with multiline elements to iterate with foreach

I want to have a list of elements that may contain new lines on them. For example, \def\mylist{ test, test with enter, end } However, if I try to iterate over that list with \foreach i get a ! ...
2
votes
1answer
403 views

Multi-line legend entry in pgfplots

In some of my plots the curve description in the legend is too long, making the legend going over the plot, even if the legend is placed as far away as possible. Therefore I want to have multiple ...
2
votes
1answer
75 views

Persistent Underfull \hbox Warning

I can't fix this no matter how I set the parameters \pretolerance, \tolerance, and \emergencystretch. Minimum Working Example with downloadable font using xelatex: \documentclass[10pt,twoside]{book} ...
1
vote
0answers
53 views

How to make the fully justified code at line-breaks?

I have a problem for using algorithm2e package. I am writing a algorithm just like \begin{algorithm} \caption{RM-MEDA} \label{alg1} Initial a population $Pop(0)$ and compute the $F$ ...
3
votes
2answers
107 views

How to break up table headings into two lines? [duplicate]

I'd like to have the headers of my table on two lines. For example, I would like Reaction Buffer to be ABOVE (150mM sodium acetate), and etc. for each column, but I don't know how to do this. Also, ...
2
votes
2answers
56 views

Multilingual bibliography out of margin

I am using sources in multiple languages in my BibLaTeX bibliography (in this case French and English). The main language of my document is English. In this situation, the references in French are ...
2
votes
1answer
77 views

Theorem environment with a line break after label and before an enumerate environment

What I want to achieve is very similar to this question, but the solution offered seems not to work in precisely the cases I need it to work! I'm placing enumerate and itemize environments inside a ...
1
vote
0answers
46 views

Multiline latex equation

I have latex equations within \[ ... \] commands. Some of them doesn't fit page width and they have newline command \\ inside. I tried to surround these equations with gather* environment which works ...
0
votes
0answers
38 views

Problem with too long numerator/denominator in fraction

I am using Texmaker for a math document. My problem is that sometimes I encounter certain fractions whose numerator or denominator is too long to be accommodated in a single line. Therefore I don't ...
1
vote
0answers
91 views

combination of \underset{} and \ul{} prevents linebreak

Here is the MWE. I am sorry for not putting it earlier. \documentclass [11pt,letterpaper,twoside,openright]{book} \usepackage{amsmath} \usepackage{soul} \begin{document} This is the example to ...
3
votes
1answer
48 views

Aligning equations across multiple lines with proper \left( and \right)

I have the following set of equations: \begin{align} y_1' &= y_2\\ y_2' &=\dfrac{1}{m}\left(0.05 \,k_f\, sin\left(\dfrac{2 \pi v}{10} t \right) + 0.05 \,k_r\, sin\left(\dfrac{2 \pi v}{10} t - ...
7
votes
2answers
137 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
61 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
38 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
44 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
127 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. ...
43
votes
2answers
35k 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
109 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?