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

How do I stop \write and \message from inserting a newline at 80 characters? [duplicate]

I have the following file: \immediate\write16{abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKL 80 char split is right here -><- this is on the next line} ...
2
votes
1answer
79 views

Line break in qtree edge labels

I am using tikz-qtree to create a (horizontal) game tree. While I have managed to create line breaks in the node labels, this does not seem to work for the edge labels, see MWE below. My questions ...
1
vote
0answers
54 views

Small Line Inserted into Sharelatex

I'm trying to figure out how to insert a small straight and horizontal line segment into a Sharelatex text file. Any ideas?
2
votes
3answers
81 views

Prevent line break of dash inital words — hyphenation problems

As my question hasn't been answered yet, I decided to rephrase it. I will try to simply the working example and specify my question. I'm writing a dictionary that contains grammatical forms which are ...
5
votes
1answer
50 views

Horizontal alignment issues and differences using \\ and \newline in the text

This minimal example shows the behaviour I am wondering about: \documentclass[11pt]{book} \usepackage[english]{babel} \usepackage[a4paper]{geometry} \begin{document} \frontmatter \pagestyle{plain} ...
1
vote
0answers
17 views

phantom does linebreak instead of invisible math mode character [duplicate]

I have the following two lines: $\Rightarrow$ Generate $\mathbb{G}^n$ and check the existence of a homomorphism\\ from $\mathbb{G}^n$ to $\mathbb{G}$! I want the second line to start exactly under ...
6
votes
1answer
78 views

itemize, mbox and unwanted line break

I have a slide in the beamer package with an itemize environment where some items slightly are too wide to fit in one line (according to LaTeX' automatic line break system). This is the code: ...
8
votes
2answers
1k views

Editing bst file to underline title

I could not find an option in makebst that would make the titles of articles be underlined, however, using emphasize in an otherwise correct bst I was able to underline it. Unfortunately this makes ...
3
votes
1answer
58 views

Problem with long URL

I have the problem with long URLs. They are not broken in an appropiate way for my thesis because they fill in the whole line and by doing so violating the rim constraint. For example I have the ...
23
votes
2answers
8k views

\texttt overfull hbox problem

I asked a question earlier about \verb and overfull hbox : In-line \verb -- overfull hbox problem And regarding the solution there, changed many of my \verbs to \texttt{}s. I have come up with a new ...
4
votes
2answers
148 views

How to align lines and automaticaly break the lines if they are too long?

I'm trying to align in LaTeX all equal signs, but I'm encountering a problem. If the line is too long it won't automatically break. My code at the moment: \begin{align*} n &= \text{number of ...
2
votes
2answers
44 views

Indexing of equation

I have this code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} \max\nolimits_X \min\nolimits_{\vec{Y}} F(X, \vec{Y})) = \sup\nolimits_{X} (\inf\nolimits_{\vec{Y}} ...
5
votes
2answers
125 views

How to make the align environment break at the right place?

I need to break an align environment. Is it possible to give hints to LaTeX about where to break or, better, where not to break? Here is a example: \documentclass{article} ...
2
votes
1answer
616 views

Why Latex does not start a new line automatically?

Here is the preamble of my latex file: \documentclass{article} \usepackage[margin=.5cm]{geometry} \usepackage{lipsum} \begin{document} \lipsum \end{document} My problem is the text in the document ...
9
votes
3answers
770 views

Why does TeX break the line between — and ,?

I have the following \hbox, and if I unbox it and put it to a paragraph (or when I just type aaa --, bbb or aaa --\nobreak, bbb), TeX is breaking the line between -- and ,. > \box0= ...
3
votes
1answer
46 views

New line in equation

I have such code: \begin{equation*} max_X (min_{\vec{Y}} F(X, \vec{Y})) = sup_{X} (inf_{\vec{Y}} F(X, \vec{Y})) = \Gamma_1, \newline min_{\vec{Y}} (max_X F(X, \vec{Y})) = ...
2
votes
2answers
236 views

long word exceeds page width

I have this word in my document: --standard\_min\_confidence\_threshold\_for\_calling It currently exceeds the page width. How can I make it start on the next line, so it doesn't exceed the page ...
3
votes
1answer
1k views

force line break in LaTeX bibliography (style file generated using makebst)

I would like to edit my .bst file so that the bibliography outputs with a line break after each author block (all authors) and no left or right indent of wrapping lines. So, instead of ...
0
votes
0answers
37 views

Spacing between quote marks, letters and footnote number (xeCJK)

At the end of a line, a break sometimes happens between a quotation mark and the number of a footnote, while using xeCJK with xelatex. MWE: \documentclass{scrreprt} \usepackage{xeCJK} ...
1
vote
1answer
46 views

Linebreak in definition heading (theorem package) [duplicate]

I have a problem with a too long line in the theorem environment. The following example shows the problem, I need a line break in the heading, but there is none. Any suggestions? ...
6
votes
2answers
448 views

References spilling out of margin in bibliography

I have a search for this problem but all I could find was the case of reference citations in document spilling over, not the bibliography. Quite simple problem I hope... In my bibliography some of ...
2
votes
0answers
48 views

How to avoid orphan line between two figures?

I have a annoying line between two fingers, I would like to avoid this: I have tried to change the paragraph location before the second figure, but even though I still have an orphan line at the ...
6
votes
2answers
1k views

resizebox doesn't respect linebreaks?

I'm trying to scale some text up. It seems like \resizebox (from graphicx?) and \adjustbox (from the adjustbox package) ignore line breaks: \resizebox{5cm}{!}{Hello\\ world} Is there a way to scale ...
2
votes
2answers
48 views

How to break lines automatically when there are inline code format?

My TeX have a lot of inline code to compile, so sometimes the output of PDF seems like this: The outlined part is coded in {\tt set_task_state(current_state)}, How to automatically break the line ...
4
votes
3answers
284 views

How to start half way down a page or skip some whitespace in a page?

In latex, one can use the command \newpage to skip to a new page. Is there a similar method of skipping to the next half way point in a page? (Whether this be halfway down the current page or just ...
2
votes
1answer
81 views

Defining default vertical space for newline command

Is there a way to alter the default vertical spacing for the \\ line break command? I am aware of the optional vertical spacing parameter for it, as well as the \smallskip,\medskip and \bigskip but ...
3
votes
1answer
31 views

Preventing algorithm2e linebreaks

I want to include inline code examples such as if i < n then i++ and else i--. I'm using the following LaTeX: \documentclass{article} \usepackage{algorithmic} \usepackage{algorithm2e} ...
1
vote
1answer
66 views

Multirow reacting to rownumber instead of linenumber

I'm trying to create a table in LaTeX which contains a multirow as height as the rest of the table. This table appears lots of times in my document. The problem is that the second row can contain ...
3
votes
1answer
46 views

Biblatex linebreaks inside \cite

I'm currently confronted with some problems regarding linebreaks inside citations. I'm using biblatex with a biber backend. config: \usepackage[hidelinks,breaklinks]{hyperref} \usepackage{csquotes} ...
4
votes
1answer
141 views

Breakings URLs with biblatex

I know that biblatex offers various options to tune the breaking of URLs in the bibliography, but in the following example nothing seems to work: \begin{filecontents}{\jobname.bib} ...
2
votes
1answer
40 views

Suppressing the newline when entering an environment

Is there anyway to suppress the newline that is inserted when beginning an environment? For example, I would like \noindent{\bf 1.}\begin{verbatim}some code\end{verbatim} to appear as a single ...
2
votes
0answers
55 views

Resolving troubles with line breaking in paragraph

I am working on a larger project with text I cannot alter at all, so I obviously run into various troubles with overfull and underfull hboxes &c. Therefore I've created the following macro (using ...
2
votes
4answers
52 views

Add line break to one line of a multi-line equation

I am writing an equation consisting of many lines, however, one particular line is very long and I want to break into a new line. For example: \begin{equation} \begin{aligned} & ...
2
votes
1answer
73 views

How to force citations within text width

I am using the named bibliography style with the following citation formulation provided by karlkoeller: \makeatletter \let\@internalcite\cite \def\cite{\def\citeauthoryear##1##2{##1, ...
2
votes
1answer
172 views

Underline long url and linebreak

I have a long url which I want to appear blue and underlined. Furthermore it must linebreak if the url is to long for a single line. \documentclass[a4paper,10pt]{article} ...
2
votes
2answers
97 views

Typeset output from Maxima using input{}, specifically left justify

First of all, apologies if there is an answer for this already. I'm outputting symbolic results from Maxima using tex(<output>,"filename")$, which leaves me with an expression with $$ on each ...
0
votes
2answers
48 views

Left-align text in math-mode and break equations

I have the following MWE \documentclass[11pt, a4paper]{article} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} ...
27
votes
3answers
23k views

Prevent hyphenation and use line break in block of text

I have a custom block of text on my title page which can be longer than a single line. By default LaTeX is hyphenating a word at the end of a line, but I want it to break on to the next line. How do ...
2
votes
1answer
83 views

How to create a blank line between lines without using \\

In my tex document I have an ungodly amount of \\ from when I first started writing tex files. (~5000 in total) Right now I am trying to delete all of them. I want to just have a blank line between ...
0
votes
0answers
50 views

Align text to margins

How can I solve this problem, I already have margins defined but the text continues on the same line. I'm using TexMaker
1
vote
1answer
47 views

Why doesn't listings' breaklines work, here?

see the sample code and the screen shot: \documentclass[UTF8]{article} \usepackage{listings} \usepackage{color} \begin{document} \lstset{ basicstyle=\ttfamily\footnotesize, language=Python, ...
3
votes
1answer
45 views

apacite with [natbibapa] fails to line-break authors' names in citation callouts when author name has umlaut

\citep causes problem at the margin when the last name has an umlaut (\"{}). This post is related to my last post here: apacite produces inline citations out of text area when using custom margins ...
8
votes
2answers
104 views

Discourage line breaking after specific character

I'm typesetting a book in DIN A5 format which produces a lot of line breaks right after the "I" character, which I find to look not very pleasing. I know I could put a ~ right after it, but that would ...
2
votes
1answer
98 views

How to force a linebreak in multiple author inline citation using biblatex?

I am finishing my thesis and get ugly inline citations with multiple authors when using biblatex. The issue arises especially with double last names as in the attached picture: As you can see the ...
0
votes
2answers
88 views

Line breaking with hyperref href with an underline in itemize

I have a simple itemized list like the following MWE: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
2
votes
1answer
142 views

Put mbox on the right even if a newline is just before it

I want to write two words on the right of the page. sometext TWO WORDS so I put a \hfill just before and because I don't want any break in the two words, I use \mbox: sometext \hfill \mbox{TWO WORDS} ...
3
votes
1answer
46 views

How to prevent line break within a (multiple) citation

I sometimes cite two or three references. When the citation is at the end of the line, latex inserts a line break. How can I prevent this from happening? I already tried what was suggested here ...
1
vote
0answers
81 views

Automatic line-breaks in a long display-mode equation

I have a long sequence of equalities and inequalities in a display-mode formula. Currently, this formula is longer than the page width. Is there a way to tell LyX to automatically break the formula ...
1
vote
0answers
17 views

Why can't I break this formula into two lines? [duplicate]

\begin{align} V_{\alpha \beta} = \left\langle (K_{il} E_{i j}^{\alpha} K_{j m} \delta_l \delta_m + 2 \epsilon_i \delta_m E_{i j}^\alpha K_{j m} + \epsilon_i \epsilon_j E_{i j}^{\alpha} - N_{i j} E_{i ...
7
votes
1answer
149 views

Horizontal space before TikZ picture

The horizontal bar from the following MWE does not start at the left edge of the paper as expected, but rather a bit more to the right. The line is 17cm long and the page width is also 17cm, which ...