{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
3answers
98 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 ...
3
votes
3answers
68 views

Long definition with braces

I know, maybe this topic is duplicate but i didnt find the correct answer. \begin{align*} \Theta(g(n)) = \left{f(n)|\>\> \text{existují}\>\> c_1 >0, c_2 > 0 \>\> ...
2
votes
1answer
76 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} ...
0
votes
0answers
24 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
1
vote
1answer
24 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
1answer
55 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
44 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} ...
0
votes
1answer
42 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 ...
3
votes
1answer
41 views

Fix overfull line by local settings of microtype expansion

The second line of the paragraphs has an overulll (6pt). I can't change the text and the hyphenation of the first two line (pri-vate and al-ready) would not help. I try to change the microtype ...
2
votes
0answers
39 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
30 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
29 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. ...
3
votes
1answer
36 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} ...
1
vote
1answer
107 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 ...
1
vote
1answer
50 views

Layout isn't shown appropriately with Thai font

I tried using a simple book template on TexStudio with Thai font. The result isn't quite good. Please help. \documentclass[a4paper,12pt]{book} \usepackage[english,main=thai]{babel} ...
2
votes
1answer
49 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} ...
4
votes
1answer
72 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
23 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 ! ...
3
votes
2answers
70 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, ...
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$ ...
2
votes
2answers
49 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 ...
1
vote
1answer
52 views

Use \Updownright between two vertical expressions

I have a long equation \ldots - m \neq 0 \Leftrightarrow \ldots \neq m where \ldots is a long expression. Instead of having this on one line, can I instead format it to obtain \ldots - m \neq 0 ...
2
votes
1answer
40 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
40 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
34 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
86 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
45 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 - ...
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
72 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. ...
1
vote
1answer
63 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 ...
5
votes
2answers
107 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?
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 ...
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 ...
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 ...
3
votes
1answer
58 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
51 views

tabularx automatic line break and aligned over several tables

I found here a solution to the problem of having an automatic line break: \documentclass{article} \usepackage{tabularx} \usepackage{listliketab} \usepackage{lipsum} % only for this example ...
7
votes
1answer
121 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 ...
4
votes
1answer
91 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 ...
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 ...
3
votes
1answer
49 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 ...
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
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 ...
2
votes
1answer
82 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 ...
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 ...