{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
19 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
83 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} ...
1
vote
1answer
29 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
31 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
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 ...
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, ...
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} ...
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
19 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
35 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
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 ...
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
106 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
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 ...
3
votes
1answer
19 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
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} ...
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 ...
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
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
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 ...
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 ...
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 ...
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 ...
1
vote
4answers
39 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
47 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
0answers
20 views

Line breaks between quotation mark and footnote number, while using xeCJK

At the end of a line, a break sometimes happens between a quotation mark and the number of a footnote, while using xeCJK. MWE: \documentclass{scrreprt} \usepackage{xeCJK} \begin{document} This is an ...
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 ...
2
votes
1answer
33 views

French bis/ter/quater/quinquies section numbering with manual line breaks

As a follow-up to my previous Question French section numbering using bis, ter, etc, I'm attempting to manually add line breaks in my section titles that show up in the body of the text as intended ...
6
votes
2answers
90 views

Can't get teletype \texttt to move to next line

I'm having a problem that, whenever I have a lengthy region of \texttt{} at the end of a line where it continues to trail off rather than wrapping to the next line. Here is a MWE: ...
3
votes
1answer
27 views

Bad linebreak with tabulars in loop

I have built arrays (with csnames) containing contact information, and I would like to print out all the contacts in tabular format, using a loop. But when the tabulars overflow the \textwidth, ...
0
votes
2answers
39 views

line break in enumeration and \underline command

How can I break a line that is inside of an enumeration, and \underline{} command, without using \usepackage{soul} and it's \ul{} command? \item{\textbf{\underline{Long string of text that needs to ...
1
vote
2answers
52 views

How to force a subfigure's caption to be on one line?

I want the caption for each subfigure to be on one line because it isn't so long that it should line-wrap. Is there any way I can force it to be on one line? Here is a minimum working example: ...
0
votes
0answers
23 views

Bizarre line-skipping in tex file

A tex source file that I have received from a coauthor is double-spaced (i.e. every even-numbered line is blank) when I open it in TexShop in Mac OS X, or in TexStudio. Naturally, the file won't ...
1
vote
0answers
41 views

\newline not working with longtable?

This table comes from SAS output. The \newline is not working correctly. E.g. "Percent trimmed in tail" ought to be Percent Trimmed In tail but it is showing up as Percent Trimmed In Tail Here ...
3
votes
2answers
45 views

How can I break lines automatically in tabular in IEEEtran?

I use tabularx to break lines automatically in tabular. Here is my code. \begin{table}[h] \caption{A table} \begin{tabularx}{\textwidth}{|l|X|} \hline \multicolumn{1}{|c|}{\textbf{Term}} & ...