Questions tagged [line-breaking]
{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.
2,934 questions
1
vote
1
answer
29
views
custom command to put a bold title, a line break and normal text
I'm trying to make a command that would put the first argument in bold. Then it must create a line break and put the remaining text normally, which should have been passed as second arg. The problem ...
0
votes
0
answers
25
views
Table of Contents: prevent line break between dotted line and the page number
With \titlecontents of the package titletoc to configure table of contents, I am encountering an issue that if the text is essentially occupying the whole line, then the page number might be wrapped ...
0
votes
2
answers
48
views
How to disable clickable and breakable url hyperlink only in `minted` environment?
I was afraid that this question is duplicated, but I can't find it since 5-minutes' search.
I have the following code with minted-v3 on TL2025:
\documentclass{article}
\usepackage{showframe}
\...
3
votes
2
answers
166
views
Long words can't be line-broken in a right way when invoking babel
A minimal working sample is as follows.
\documentclass{ctexart}
\usepackage{babel}%
\babelprovide{greek}
\babelfont[greek]{rm}[Scale=MatchUppercase, ItalicFont={GFSArtemisiaIt.otf}, BoldFont={...
3
votes
1
answer
140
views
How to prevent `\input` from appending an extra newline at the end of a file?
I'm trying to visualize newlines in an input file by making ^^M active and displaying it as \n. However, the \input command appears to append an extra empty line at the end of the file, which I don't ...
2
votes
1
answer
85
views
Specify \qformat in exam package with no line break?
In this example:
\documentclass{exam}
\title{Exam}
\qformat{\thequestion. \ \ignorespaces}
\begin{document}
\begin{questions}
\question How many legs does a duck have?
\begin{checkboxes}
...
1
vote
1
answer
90
views
Data reported on two lines and not one
I am struggling on writing the data on a document latex, because it writes me down on two lines, as you can see on the picture.
Is it possible to write: Thursday 25th September, 2025 on the same line ...
12
votes
1
answer
344
views
Why does `\*` not show the multiplication sign "×" when using unicode-math with a math font?
I noticed that when I load the unicode-math package and select a math font (I tested several, and the issue occurs with all of them), the command \* no longer produces the expected multiplication sign ...
2
votes
1
answer
136
views
\parbox to a LaTeX3 box?
This question is related to another question about breaking lines into some boxes.
There, if I get a vbox with my content split into lines, I can use L3 \vbox_set_split_to_ht:NNn.
From interface3.pdf:
...
1
vote
1
answer
75
views
Break text along a series of minipages
I would like to typeset bilingual text – one language on the left page, other on the right page, with as little interference as possible, like manual breaks. The text of each language spans 20 pages.
...
3
votes
2
answers
220
views
How to allow line breaks before units in siunitx to avoid margin overflow in LaTeX?
I'm writing a LaTeX document using siunitx to typeset quantities:
\documentclass{article}
\usepackage[showframe=true]{geometry}
\usepackage{siunitx}
\begin{document}
AAA AAA AAA AAA AAA AAA AAA AAA ...
0
votes
0
answers
68
views
How to unite seperate consecutive display equation blocks automatically in LyX
So i have a 100-page lecture notes document in which due to some software error all equations have turned from
to
which wastes a lot of space so is there an automatic method to fix this?
1
vote
1
answer
173
views
How to automatically break long Python module names at dots in \texttt{...} inside tables using \allowbreak or \discretionary?
This is my code:
\documentclass[a4paper, 12pt]{report}
\usepackage{adjustbox}
\usepackage{makecell}
\usepackage{booktabs}
\usepackage{tabularray}
\usepackage{color, xcolor}
\usepackage{amsmath, ...
2
votes
0
answers
87
views
Line break (\\) resets \hangindent with \raggedright
It seems that using \\ for line breaks acts like starting a new paragraph for the purposes of \hangindent when \raggedright is active, while it does not do this normally. Using \newline instead of \\ ...
8
votes
3
answers
355
views
forcing line break in url while preserving link url, without using \href
Sometimes I want to force a line break in a url. However, the method I know for doing so, adding to \UrlSpecials, leaves the new command character in the url, rendering it invalid. For example:
\...