{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
0answers
18 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
97 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
31 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
32 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
34 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
38 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
87 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
28 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
25 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} ...
25
votes
3answers
19k 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
72 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
41 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
19 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
20 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
78 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
36 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
1answer
54 views

Text is spilling over the margin with standard margin settings

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 ...
0
votes
2answers
27 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
108 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
20 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
24 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
115 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
48 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
37 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} ...
6
votes
1answer
80 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 ...
2
votes
1answer
32 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 ...
0
votes
0answers
18 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 ...
2
votes
0answers
29 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
109 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
1answer
15 views

Figure caption has line break problems when using subfig

I'm using the subfig package and I'm getting words that are broken in captions. Can anyone explain why, or how to stop it? \documentclass[11pt,a4paper, draft]{report} \usepackage{gensymb} ...
1
vote
1answer
61 views

How can I cancel line break between items in bibliography biblatex?

I use biblatex. I have problem with linebreak between bibliography items. I have for short url: The space between the organization and url is not optimal. I want nolinebreak between organisation ...
14
votes
1answer
2k views

Typeset a dialogue?

I need to typeset a dialogue in LaTeX, it's for a translation assignment. The original dialogue does something like this: - I found it, I told him. My finger was in the book, where George Best's ...
99
votes
1answer
22k views

Manual/automatic line breaks and text alignment in TikZ nodes

How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE). Is there a way to make lines break automatically at some specified width? And can I ...
4
votes
2answers
48 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
17 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 ...
0
votes
0answers
11 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 ...
40
votes
5answers
61k views

Error message: There's no line here to end

In a letter-class document that had no previous errors I am suddenly getting the error message: "There's no line here to end" \opening{text} I've used this file many times and today it starts ...
1
vote
1answer
51 views

TeXworks adding bogus endline characters

I realise this is not exactly a TeX question, but I figured someone here might know what this is about, and in any rate, this is a question a LaTeX user might encounter. If it is not appropriate, do ...
1
vote
1answer
47 views

How can I make the appendix one column to fit my very long equations? And also keep equations from running off the page?

The rest of the document is two columns, just the appendix needs to be one column to fit the equations. Here is the code, any help greatly appreciated! ...
3
votes
1answer
66 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
53 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
47 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
31 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
12 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
31 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
26 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 ...
25
votes
2answers
21k views

How to format an inline source code

I have a document where I quiet often refer to source code element, such as class names, I wanted to format these strings differently, but at the beginning I didn't want to fiddle with various options ...
1
vote
1answer
42 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 ...