{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.

learn more… | top users | synonyms (1)

2
votes
1answer
158 views

Ifx and end of line [closed]

Can anyone shed some light on this? I have an interesting problem involving the "There's no line here to end" error. EDIT: Variables. I did not think to include this as I thought there was only one ...
2
votes
0answers
75 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 ...
1
vote
1answer
82 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? \documentclass[...
2
votes
2answers
66 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
712 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
83 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
71 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} \begin{...
1
vote
1answer
105 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
52 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} ...
2
votes
0answers
59 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 ...
4
votes
1answer
169 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} @book{...
2
votes
1answer
41 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
4answers
59 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} & \text{...
2
votes
2answers
162 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 ...
2
votes
1answer
135 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}\@...
1
vote
2answers
77 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} \...
2
votes
1answer
92 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
52 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
95 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
76 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 ...
2
votes
1answer
142 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 ...
8
votes
2answers
118 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 ...
0
votes
2answers
119 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} \usepackage{...
2
votes
1answer
175 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} ...
1
vote
0answers
129 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 ...
3
votes
1answer
83 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 ...
7
votes
1answer
172 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 ...
4
votes
2answers
134 views

Adding line break without hyphen

I'm writing a lab report about gene sequencing, and I have to put a large sequence of nucleotides. I don't really intend to put it on a special box, just add it as if it were another paragraph only ...
2
votes
1answer
86 views

Line breaks introduced in database export as extra lines in table

I am automating the producing of tex files using an access database with many different types of fields. One, a memo field that will contain an itemized list i.e. visible tex including \begin{itemize} ...
2
votes
1answer
42 views

Have a macro evaluate to different stuff depending on whether it will be hyphenated

Given a command like this \newcommand{\AB}{$\textsf{A} \subseteq \textsf{B/string}$} is it possible to have the string evaluate to something like \newcommand{\ABhyp}{\textsf{A} is contained in \...
6
votes
1answer
103 views

Can I mark when there is a line break in inline math?

Sometimes a line break inside inline math is acceptable and sometimes it detracts from the message. I'd like to be able to see exactly where such breaks (meaning any line break during inline math mode)...
2
votes
0answers
48 views

Lines in bibliography too long [closed]

I have some lines in my bibliography that are printed too long while this is not the case for other long items. See the image for at the word International (item 77) How to solve this? Latex code ...
4
votes
2answers
125 views

Avoiding line breaks for file extensions

I have made a system to list a lot of LaTeX files, and I wanted to include the path to all the files, in order to be able to quickly copy-paste it. These paths can get quite long, and fiddling around ...
0
votes
0answers
42 views

Overfull hbox in lstinline

I have defined new command like this: def\inline#1{\lstinline[breaklines=true, basicstyle=\ttfamily]{#1}} Now I can say something like this in my document: \inline{my_file.cpp} But here is the ...
4
votes
2answers
529 views

how to get a newline in \fbox?

I am trying to have two lines in inside \fbox but is not working. Below is my code \documentclass{beamer} \usepackage{vietnam} \begin{document} \begin{frame} \frametitle{Exhaustive Search} {\...
0
votes
0answers
18 views

URL rendering incorrectly in PDF [duplicate]

So this text, in my LaTeX file In a report for the Jesuit Centre for Faith and Justice earlier this year \url{http://www.workingnotes.ie/current-issue/item/recent-trends-and-developments-in-the-...
0
votes
0answers
12 views

How to get Line breaking in Math Tuple in a definition [duplicate]

See the MWE below. The tuple falls outside the margin. If I make the sentence a bit shorter or longer then it works fine. So this is unreliable. Now I can off course force line break before the ...
3
votes
1answer
70 views

Merge consecutive linebreaks

I have something like this : %\newcommand{\maybehide}[1]{#1} \newcommand{\maybehide}[1]{} \newcommand{\thing}[1]{#1} \newcommand{\bigthing}[1]{#1} \bigthing{ \thing{1}\\ \maybehide{\thing{2}}\\ ...
3
votes
1answer
112 views

Allowing line break at C++ operators ('::', '->', …) in \lstinline

The following picture shows my problem: How can I tell \lstinline to break lines at specific C++ operators? For example: FooFactory::instance()->createFoo() should be broken as follows: ... ...
2
votes
2answers
77 views

Inserting \\ with a command doesn't do the same thing as inserting it directly

I'm using the mathpartir package and I have some code generated (by LyX) that puts an environment (that I'll call lines) in the \inferrule* and it seems to bother pdflatex whenever there are more than ...
0
votes
0answers
204 views

Define amount of space after \newline, \\, or \linebreak

How do I define the amount of vertical space there are after all new lines? I am looking for something that works like this: \define{x = 4} blah blah blah blah \\[x pt] blah blah \\[x pt] Where I ...
0
votes
0answers
20 views

Automatically avoid linebreaks before symbols and numbers

I want to have latex avoid starting a line with a number or symbol. Or at least print some sort of warning (similar to an overfull hbox warning). I know I can manually wrap each situation where this ...
2
votes
0answers
48 views

Line break with supertabular won't work

So, I have a really long list of symbols that I decided to create with supertabular. I'd like the table to split as it goes over to the second column, so I used {multicols}{2} but I found out that it ...
0
votes
0answers
23 views

2-line leaf in tikz qtree [duplicate]

How can I get two lines of leaf text in tikz-qtree? Specifically what I want is to have a word with a gloss under it. So for example, the leaf would be "Tisch" with the gloss "'table'" directly ...
2
votes
1answer
33 views

Breaking line inside a set

How can I write \[A=\Bigg\{\alpha\in \mathbb{Z}G : \alpha\ \text{is a unit in}\ \mathbb{Z}G\ \text{with}\ \varepsilon(\alpha)=1\ \text{and}\ \alpha+\Delta(G,G')\ \text{has finite multiplicative ...
1
vote
1answer
49 views

How to prevent line breaks in code listings?

I am adding a big Linux terminal output as a listing and would like to prevent these line breaks from happening: e.g. user@pc ~ $ top PID USER PR NI VIRT RES SHR S %CPU %MEM ...
1
vote
4answers
73 views

What is the command to add newline linebreak in \sum \prod? [duplicate]

I am sure this question or similar has been asked but I cannot find it by searching so adding it to make it more accessible: what is the command/environment to add newline linebreak in \sum \prod so ...
3
votes
2answers
103 views

Preformatted text using ConTeXt's \startlines

This is a follow-up question to ConTeXt equivalent to LaTeX's \linebreak with full justification Include original page images for side-by-side comparison + SyncTex I am using the ...
0
votes
2answers
141 views

Text is spilling over the margin with standard margin settings [duplicate]

I have default margin settings, but certain text is spilling over the margin boundary. It happens when the final word on the line includes a hyphen. For example, if eye-movement happens to be at the ...