Questions tagged [line-breaking]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
18 views

Combining Wrapping \texttt{} with Sections and TOC - Improper alphabetic constant

Was working on getting line wrapping working for code, and came across a solution which was working for me - until I tried to add a table of contents to my code. The issue seems to be with using the ...
0
votes
1answer
46 views

Last Word not break avoid automatically

I have need to avoid last word break. It must print in PDF before the line or break with previous word. My MWE IS: \documentclass{book} \doublehyphendemerits=100000 \frenchspacing \usepackage{...
0
votes
3answers
20 views

Line break of table notes after first column in a long table

I am creating a long table using xltabular in landscape format using landscape. I add table notes using the tablenotes environment: \begin{landscape} \begin{xltabular}[l]{X X X X} ...
2
votes
1answer
66 views

Forbid latex to split a sentence with a float

My publisher recommends that my text is not split by floats. More precisely, a sentence should end before the float and a new sentence should start after the float. The float is allowed to be moved ...
1
vote
1answer
32 views

Caption width in xltabular environment

I am creating a Table as follows: \usepackage{xltabular} \begin{document} \begin{xltabular}[l]{\textwidth}{X | X | X | X} \caption{Here is a long text that does not break and exceeds the page ...
3
votes
1answer
54 views

How can I break the text in one cell of system of equations?

I'm new to Latex and encountered this problem. I need your help to write the equation in the picture but cannot break the line in the 2nd cell of the 2nd row. Here is my code: \begin{equation} \...
0
votes
0answers
14 views

Why using X in tabularx inserts new line [duplicate]

Why newline is inserted in the first row and why \noindent fixes it in the second row? \documentclass{book} \usepackage{colortbl} \usepackage{tabularx} \usepackage{xcolor} \begin{document} \...
3
votes
1answer
56 views

Why does this DOI end up on a new line when there is lots and lots of room left?

So, David's answer appeared to work for a long time, but recently I found some citations, such as the top one here, the DOI move to the next line, despite lots and lots of room left. Example: \...
0
votes
1answer
40 views

newline with `\\` does not work

to compile Tex, I use latex/pdftex version of LaTex. Here are some details pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) kpathsea version 6.3.1 Copyright 2019 Han The Thanh (pdfTeX) et al. ...
0
votes
1answer
32 views

Trying to go to next line in an entry in a cell

I've recently decided to use latex to make my CV. I've therefore used an overleaf template: https://www.overleaf.com/latex/templates/modernfancycv/bkjntytgpcmq The last thing I want to do now is to ...
2
votes
1answer
69 views

Why is line breaking output with STEP different in pdfTeX vs. XeTeX/LuaTeX?

\documentclass[12pt]{article} \usepackage[LY1]{fontenc}\usepackage[]{step} \usepackage{lipsum} \begin{document} \lipsum \end{document} This gives different placement depending on engine, for some ...
0
votes
1answer
32 views

\lstset does not respect line breaks and indents with Cyrillic symbols

I'm trying to output some code along with translated comments but the listing does not respect indentation and line breaks if first symbol in a line is Cyrillic: \documentclass{book} \usepackage{...
13
votes
3answers
1k views

Avoid Three Consecutive Hyphens

I need to suppress occurrences of 3 consecutive lines of text that end in hyphenated words. How to solve this? My LaTeX Source Code is: \documentclass{book} \usepackage{luacode} \begin{document} \...
1
vote
2answers
56 views

How to make Three figures in one horizontal Line in Latex?

I am trying to make these three figures in one horizontal line using overleaf latex but it is not giving me the desired results, here is the example code \begin{figure*}[!t] \centering \subfigure[]...
2
votes
1answer
50 views

How to avoid a word to break in the last line of a paragraph [duplicate]

is any penalty value available to avoid a word break in a last line of a paragraph like below?
0
votes
2answers
32 views

Enumeration and line break tabularx

I try to do an enumeration / line break in my chart but I am not able to do it. Could you help me to find the right tool? For the row Advantages I try to get no genomic integration (no frameshift, or ...
4
votes
1answer
94 views

Forcing inline math mode expressions onto one line

I am encountering something whilst using inline math mode, for which I would like to find a means of avoiding. I notice that if the inline math mode is too close to the right-most edge of the line ...
0
votes
2answers
27 views

How to apply title line breaks on the title page, but not in the page headlines?

I would like to have a macro which pass the book title both to the title page and to the page headlines. Unfortunately if I pass the title containing new line command (to break line on title page) ...
4
votes
1answer
202 views

LaTeX: Why \\ causes no paragraph break for fully justified text, but does so for \raggedright, \raggedleft, and \centering?

Note: This question is not about getting a desired visual effect in pdf, it is concerned with LaTeX/TeX internal algorithm. In the following code, presence of \\ sometimes produces a new internal tex-...
0
votes
0answers
18 views

How to stack/insert line breaks between minimization arguments beneath the min symbol? [duplicate]

I tried $\min_{x \in \mathbb{R}^m, \\ y \in \mathbb{R}^n}$ but \\ doesn't create a line-break in this setting
0
votes
1answer
42 views

Awful text wrap with \ttfamily

This might be a silly question but I cannot find a way to solve it. Below is a MWE: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{blindtext} \begin{document} \ttfamily What ...
0
votes
1answer
58 views

TeX/LuaTeX: Will the typeset output of \par, and \\\indent ever differ? Why do they add separate glues?

Visually speaking, ending one paragraph and beginning another is just a matter of inserting a linebreak and an (potential) indent. Two ways come to mind to achieve this: \par (or empty line) and \\\...
0
votes
0answers
33 views

Manually modify TOC in Lyx (Classic Thesis)

I'm using Miede's classic thesis template for Lyx and want to change two things: i) It uses lower case small caps for latex equivalents of \part() and \part*(). However, only \part() is shown as lower ...
3
votes
2answers
115 views

LaTeX set up automatic line break not to stretch previous line

I am sure this is some basic LaTeX document formatting, but for the sake of me I just can't find the right place in the documentation on the proper way to achieve what I want. Consider the following ...
2
votes
1answer
27 views

How do I prevent a pagebreak in `align` before an `intertext`?

Usually, one can prevent a page break at a line break in an align-environment using \\*. When the line break in question comes before an \intertext, however, there seems to be no effect, as ...
1
vote
1answer
51 views

Automatic line break with backslash in listings

I would like to use listings to format bash commands in such a way that overly long lines are automatically broken with a backslash. I know about the prebreak option, but it appears as though it is ...
0
votes
1answer
19 views

Automatic indent on text wrap whenever it do not fit one line

Hi guys I am quite new to Latex but I cannot find answer with Google so I would be grateful for help: I would like to create rule for LaTex where whenever text do not fit the line and wraps to the ...
0
votes
1answer
27 views

Allow line-breaking after slashes in all cases without having to use a macro

I am typsetting tables with longtable. I have a p{2in} column. I have filenames in the column. Sometimes these filenames are quite long. They have slashes in them. Sort of like /home/user/somebody/...
1
vote
1answer
33 views

Adjust space between \newline within a tabularx cells

I've created a table with tabularx where I have long text (gets broken at the end of the cell by latex) and manually inserted \newline. The space between the the automatically linebreak and the \...
0
votes
1answer
26 views

How to centre multirow cell

How to centre \multirow cell? Column is centred, but \multirow cell is aligned to left. If I try \begin{center} and \end{center} (commented part of the code) it does not work. Also, if I remove cell ...
4
votes
2answers
124 views

How can I type a newline using the LaTeX Graphviz package?

I am using the Graphviz package (\usepackage[pdf]{graphviz}) for my LaTeX document. I am unable to break lines in my nodes. My code: \digraph{contract}{ rankdir = "LR"; ...
0
votes
1answer
29 views

Get linebreaks at a long list

How can I get linebreaks at a very long list like 1,2,3,...? \documentclass[a4paper]{article} \usepackage{tikz} \begin{document} \let\mylist=\empty \foreach \k in {1,...,44}{ \ifx\empty\mylist{} \...
2
votes
1answer
33 views

Forest line breaking with folder style: Anchor to first line

Is there a way with the forest package to anchor the edge to the first line of a multi-line node? In this example, I would like to have the middle horizontal edge point to the 123 of the multiline ...
0
votes
0answers
17 views

Preventing line break at dot in URL

I am using the url package in an article and am wrapping URLs in \url{ ... }. I have a footnote containing a long sentence of text that has the URL \url{https://github.com/moby/moby/blob/master/README....
0
votes
1answer
58 views

Is it possible to push long words to new line yet keeping the current line as justified text?

I want a document with justified text. However, there are some long words which are coming at the end of lines and are being pushed to the new lines and are being hyphenated. If I have spacing ...
1
vote
1answer
25 views

How do I ignore the titlesec package, and create a subsection without runin?

I'm using the titlesec package to have runin subsection titles. However, I only want this some of the time, and if I try to break the line with \ it either throws an error to adds some weird ...
4
votes
2answers
366 views

Why does \narrower not work in LaTeX as in plain TeX?

In the TeXbook (page 100), \narrower is described and the following example provided, which works fine in plain TeX. {\narrower\smallskip\noindent This paragraph will have narrower lines than the ...
2
votes
2answers
64 views

Adding line break to bibliography with long numerical doi

I am generating a publication list and have a problem about the line break in a bibentry, see below: I want the text to be aligned on the right edge and there should be a line break inserted among ...
0
votes
0answers
30 views

acronym line break misalignement issue

I'd like to ask if there's a way to do a linebreak, to split a line in the abbreviation itself (i want the short form to be on two lines), using acronym package. I think the code and an image will ...
0
votes
0answers
27 views

Biblatex is not performing linebreaks in certain situations

I use the Overleaf online environment in order to write my dissertation. However, I noticed that several of my references in the bibliography are exceeding the allowed text width causing an incorrect ...
2
votes
1answer
20 views

Single command at the beginning of my Latex document that induces linebreaks?

Currently I have to do something like this: In addition, the \linebreak knowledge retention rate of the students also increased by almost 12% when questions were reintroduced. Otherwise knowledge ...
2
votes
3answers
49 views

How to avoid linebreak after command and before period?

I use XeLaTeX with the memoir class to typeset my linguistics thesis. In the running text, I often mention prefixes, which have a following hyphen. For example: "un- is an inherited Germanic ...
1
vote
1answer
35 views

Is there a way to make page ranges non-breaking in BibLaTeX

Is there a way to prevent BibLaTeX from splitting page ranges over two lines automatically? I've noticed when editing my thesis's works cited that in a lot of cases BibLaTeX will split the page ranges ...
2
votes
1answer
42 views

How do I stop BibLaTeX from line breaking between the inital and the last name?

I've noticed BibLaTeX keeps putting linebreaks between authors initials and the last name. I would prefer these to stay together. When I do journal names I can manually specify J.~App.~Cryst. but ...
0
votes
0answers
21 views

How to fit long strings that goes out of page using lstlisting?

I am finishing my thesis in Overleaf and need to add an XML file in the appendix. I use lstlisting package. The problem is that the file contains strings with many characters and does not fit in the ...
0
votes
1answer
38 views

Forcing a line break in Inkscape's LaTeX output

I am using Inkscape, together with its LaTeX output feature, to create a block diagram for a report. I want to link each block in the diagram to a particular section in the report, using a hyperref. ...
2
votes
1answer
72 views

How to wrap Tamil words?

I have used this code. \documentclass[12pt]{book} \usepackage{fontspec} \setmainfont{Noto Sans Tamil} \begin{document} கௌரிப் பாட்டி பொறுமையாய் வெகு நேரம் பஸ்ஸிற்குள் நின்றிருந்தாள். ...
0
votes
2answers
44 views

Equation splitting in two column document - split goes towards second column instead of staying in first column

When I split a long equation using split or aligned in a document with two columns (through loading aistats2021 package), the splitted part goes towards second column instead of staying inside first ...
1
vote
1answer
35 views

Line-Breaking Around \clearpage

AFAIK, line-breaking around \begin{document}, \end{document}, or \begin{section} doesn't change the results as follows. \documentclass{article} % INSERTING OR DELETING THIS ...
2
votes
1answer
46 views

How to overflow/word-wrap numbers in table columns?

How do I word-wrap the numbers in my columns? Here I've got a tabular environment within a table environment (the latter for captions). Elsewhere I use longtabus without a table environment, and ...

1
2 3 4 5
49