{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
1answer
18 views

Force equation numbering to the same line of case equation

It seems that the column is so narrow that it can not bear the whole equation: \begin{equation} R(p_i|G) = \begin{cases} ep_{p_i} + (1- UA(p_i|G))\cdot ({r_G - ep_{p_i}}) ...
7
votes
4answers
133 views

Creating a multi-line colored box in LaTeX

I am trying to create a colored box in LaTeX that has two lines. I would like the text to be centered. Ideally, I want to be able to change the text font and the size of the colored box. So, an ...
1
vote
0answers
17 views

colorbox highlighting: overfull hbox

For a current LaTeX-Document, I've done some highlighting using colorboxes around specific words or formulas. This works quite well, although, of course, the colorbox doesn't do line breaks when it is ...
0
votes
1answer
16 views

Automatic line breaks in path{} command?

i use the \path{} command to print out a path to a directory in my *.tex File. I searched a lot around the internet to solve the problem to automatically linebreak the path-url. I found some hints ...
1
vote
0answers
18 views

GitHub-hosted Jupyter notebook auto line breaks / wrapping [on hold]

I would like to put a document containing a fair amount of inline math onto GitHub as an IPython Notebook. Because I don't like the typical Markdown sans-serif font, which wouldn't match the Latex ...
4
votes
2answers
33 views

Change color line in hline

Recently I asked a question about how to draw a line under titles but this line should be flexible is a picture is included or not. I am trying to change the color of this line but nothing works? ...
0
votes
2answers
19 views

Linebreak in a longtable

I use the longtable package to create a table that covers multiple pages, but the problem is that the linebreake does not function correctly.This is my code: \documentclass[12pt]{article} ...
1
vote
0answers
22 views

Automatic linebreaks for equations in tabular environment?

I have so far tested the breqn's dmath environment example here but it does not work with tabular in rotating's sidewaystable, resulting into \cr errors in wrong place. So How can you automatically ...
2
votes
1answer
73 views

How to prevent words from running into the right margin?

I'm revising one of the final drafts of my thesis and on several pages there are words running into the right margin. My question is whether rewording the paragraph is the only way to get rid of this ...
0
votes
1answer
23 views

how to let the long web-link automatically break line?

I use the \tt in the latex, however, it can not break line automatically. Then, I add \\ in the link, e.g. \tt{http://tex.stackexchange.com/ \\\\ questions/ask}. Then, in the generated pdf file, it ...
5
votes
1answer
84 views

How to break lines in tables without vertical spacing?

I'm building a table and I need to have line breaks in each cell of one column. I have found the following example: How to add a forced line break inside a table cell Here is the code: ...
1
vote
1answer
30 views

How to add a linebreak in a tikz UML Sequence Diagram instance/thread

I'm writing a UML sequence diagram with tikz package pgf-umlsd. Currently the code looks as follows: \begin{sequencediagram} \newthread{controller}{Special Task Controller} ...
0
votes
1answer
36 views

How can I prevent non-math overflowing into margin when using textsubscript?

I am using \textsubscript for subscripting a non-math data . but it is long enough to cause overflow into the margin. What are the possible solutions?(may be like writing subscript in 2 lines)
0
votes
1answer
29 views

Breaking Typewriter-styled Detokenized Text

The goal is to have snake_cased elements typewriter-styled breaking properly. I am using \detokenize rather than simply \_ because otherwise the snake_casing looks wrong, namely like this: rather ...
0
votes
1answer
26 views

Disallow line break in \cite

How can I disallow line break in \cite? Two bibtex entries are @book{is, author = "Mörður Árnason", title = "Íslensk orðabók", publisher = "Edda", address = ...
0
votes
1answer
13 views

Function throws error only on first call in a section

I'm setting up a template for my homework for this semester in LaTeX, and I'm getting an error that the first time I call a function it fails but every later time in the document it works. Here's the ...
1
vote
0answers
32 views

Reference a picture [duplicate]

I am writing a PhD thesis. Sometimes when I reference to a figure the following problem occurs. In PDF the word Fig.[number of figure] are written in two lines (Fig. and [] are separated). How to ...
4
votes
1answer
31 views

Justified text with predefined line breaks

I want to set a text following the line breaks in a certain edition, and I want it to be justified. I suppose I should use \obeylines, but don't know how to get the lines justified.
1
vote
2answers
53 views

Lines with texttt reach into the page border, how to prevent?

MWE: \documentclass{scrartcl} \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} ...
4
votes
0answers
68 views

Dealing with slightly overfull \hbox's

Generally, how do you deal with lines that are slightly overhung, when microtypography is already enabled, and there's no way of hyphenating the hanging word and no desire to put it on the next line, ...
1
vote
1answer
61 views

How to prevent a linebreak before align/equation environment in itemize? [duplicate]

The following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{itemize} \item \begin{align} a&=b\\ &=d \end{align} \item \begin{equation} a=b\\ =d \end{equation} ...
2
votes
2answers
120 views

Auto-linebreaking in underset

I often find myself writing explanations to passages in (in)equality chains directly under the (in)equality signs, by putting an underset which puts a vertical line starting from the sign and going ...
0
votes
0answers
28 views

Is it possible to revert a line break after an environment?

Most environments seem to automatically break a line after them. This of course makes sense but I am having a case where I would like start writing in the same line where the environment (minted) ...
2
votes
1answer
34 views

Methods to resolve long line overflowing into margin

My document sometimes has lines which slightly overflow into the margin, such as in the below example. I was wondering what different methods could resolve this issue, such as changing spacing between ...
5
votes
1answer
58 views

Clickable URLs: no click possible after the line break

I use \url to make an URL clickable. When the line breaks, the part of the URL after the line break is not clickable. Why, and how to fix it? Demo: \documentclass[11pt,letterpaper]{article} ...
1
vote
2answers
22 views

hyperref : break long lines in pdftitle and other fields

I have a problem with hyperref: how to break long lines in pdf fields : the pdftitle is very long and I want hyperref to begin a new line, just like it does for key-words. I compile with pdflatex, ...
7
votes
2answers
200 views

How can I control the minimum number of lines (rows) that should be kept together when a page break is necessary?

What to do when tabular alignment just doesn't cut it? I designed (perhaps not efficiently or with the "right" approach, yet using some helpful LaTeX3 answers from egreg) a way to enter data into an ...
1
vote
1answer
45 views

Some questions regarding tikz tree

I have a tree working written in tikz, however, it's not fully what I wanted it to look like \begin{tikzpicture}[level/.style={sibling distance=60mm/#1}] \node [circle,draw] (equal){$=$} child ...
2
votes
1answer
19 views

Fraction in first line of Example overlaps onto Example header

I'm writing an example where the question says to find what the Legendre symbol of a few numbers are equal to. The theorem style I'm using is 'nonumberbreak' as I like to have my examples start on ...
4
votes
1answer
41 views

Need to break the 2nd line of the equation

% preamble \newcommand{\wa}{\mathbf{w}_a^H} \newcommand{\ga}{\mathbf{g}_{a_k}} \newcommand{\fa}{\mathbf{f}_{a_p}} \newcommand{\fak}{\mathbf{\overline{f}}_{a_k}} ...
9
votes
2answers
155 views

Disable protrusion from microtype for just one word

I had a really bad overfull hbox in my bibliography caused by an emdash in the first line of a two line entry. The only solution to get rid of the overfull hbox was to line break the emdash to the ...
5
votes
2answers
66 views

Non-English text remove hyphenation

I have huge Russian text and I am trying to build simple solution to have ability off/on hyphenations in the text, in the text numbers and dates as a plane text are possible. I have tried some ...
0
votes
0answers
31 views

I faced a problem when I tried the statement option while activating Showkeys package

When I try to generat a pdf contains too long statement option like \begin{step}[{We prefer questions that can be answered, not just discussed, if your question is about this website, ask it on meta ...
1
vote
0answers
28 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 ...
1
vote
0answers
56 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 ...
0
votes
0answers
26 views

No multilingual support cannot enable multilingual quotes on input line? [duplicate]

i get an error in \begin{equation}, i write long equation and split it using \\. it shows an error Package pgfplots Warning: running in backwards compatibility mode (unsuitable tick labels; ...
2
votes
1answer
29 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
23 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. ...
3
votes
2answers
54 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 ...
2
votes
2answers
36 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} % ...
3
votes
1answer
39 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} ...
0
votes
0answers
39 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?
4
votes
1answer
29 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 ...
2
votes
1answer
31 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
65 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
42 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 ...
1
vote
1answer
41 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
54 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: ...
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 \>\> ...