All Questions
Tagged with newline or line-breaking
2,937 questions
0
votes
0
answers
65
views
Remove \\ from a value/command [duplicate]
For a paper I have a rather long title which is setup as
\title{Some very long text\\which\\needed line breaks}
so that it looks fine on the cover page.
However I get an error from hyperref:
Package ...
2
votes
1
answer
40
views
Remove linebreak form clipboard text
I have code sections in my text that are highlighted with lstlisting. The line breaks are working and I get a (desired!) \hookrightarrow int the output text.
So from this input TeX:
My code:
\begin{...
0
votes
1
answer
29
views
Numbered citation with multiple sources without line break on dash
I have a document using the revtex4-2 class.
Citations using the standard \cite{...} command are numbered, and when there are multiple sources in the citations (\cite{ref1,ref2,...,refN}) that have ...
1
vote
1
answer
32
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
28
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
55
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
169
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
148
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
90
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
99
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
138
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
224
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?