{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
1answer
48 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
98 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
75 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
40 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
33 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
16 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
34 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
76 views

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

MWE: \documentclass{scrartcl} \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} ...
4
votes
0answers
84 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
139 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
168 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
31 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
50 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
86 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
35 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
216 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
48 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
32 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
44 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
202 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
98 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
59 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
58 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
49 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
37 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
114 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
41 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
48 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
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?
4
votes
1answer
54 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
50 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
69 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
53 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
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
66 views

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

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
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 ...
3
votes
3answers
76 views

Long definition with braces

I know, maybe this topic is duplicate but I didn't find the correct answer. \begin{align*} \Theta(g(n)) = \left{f(n)|\>\> \text{existují}\>\> c_1 >0, c_2 > 0 \>\> ...
2
votes
1answer
84 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
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
1
vote
1answer
45 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
96 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
54 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
54 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 ...
4
votes
1answer
55 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
43 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
45 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] ...