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
2 answers
28 views

\mbox overfull in math environment

I am quite new to Latex and am having an Overfull \hbox warning on Overleaf with the following code in a document environment: \vspace{5mm} \begin{math} l^*=\frac{l}{ke^{\tau\lambda}}=(\frac{1}{ke^{\...
MsFormula's user avatar
0 votes
0 answers
15 views

linebreak in title when the title is before the beginning of the document

Pretty simple question I think but I cant seem to find the answer anywhere: How can i line break the title inside the \title{} command if this title command is before the \begin{document} command (...
Max's user avatar
  • 1
1 vote
1 answer
39 views

breqn doesn't break line automatically

I have an issue with the breqn environment. The following code doesn't break lines automatically, although there are plenty of feasible breakpoints, e.g., +. \documentclass{article} \usepackage{...
Paweł Korzeb's user avatar
0 votes
0 answers
38 views

How to automatically break fractions generated by Mathematica

I am looking for an automated way of presenting my Mathematica results in latex. My workflow at the moment is the following I use TeXForm[] Mathematica function to generate a latex code from my ...
Paweł Korzeb's user avatar
4 votes
2 answers
86 views

Automatic line breaks in aligned equation

I have an equation of the form: constant = f(parm, parm, ...) with a very long list of parameters, which I would like to automatically wrap (after a comma) at the end of each line such that the second ...
Andrew Mattingly's user avatar
0 votes
0 answers
49 views

Auotamatically provide a linebreak every time I input a new line under align*

Apologies if this has been asked before; I couldn't find any other such questions. Currently, when I use the align* environment from LaTeX, I have to manually \\ for every new line. Is there a way, at ...
Aaron Liu's user avatar
  • 101
1 vote
2 answers
55 views

Line-breaking table column with adaptive width

I'd like to have a table column with the following properties allow text with explicit linebreaks automatically break long lines at a maximum width only extend column width to minimal necessary width ...
Pybe's user avatar
  • 11
4 votes
2 answers
251 views

How to do a correct inter-sentence non-breaking space?

Suppose somewhere in the text, I have the following two sentences: This is one sentence. Another sentence is this. If we write 'sentence.~Another', we get too short a space. The same with 'sentence@.~...
linguisticturn's user avatar
1 vote
2 answers
34 views

Fix formatting for long numbered aligned equations

I have an equation which is too long to be included in a single line, yet I still want it to be numbered and somewhat centered and aligned (e.g: avoiding the second line leaving a blank space on the ...
Miles Jarra Gloekler's user avatar
3 votes
2 answers
87 views

Specify line break in booktabs tabular without specifying cell width

I have a table with lots of columns which will most of the available horizontal space in my page layout. And I would like to add a "note" of sorts to the bottom of the table, which: Spans ...
Zak's user avatar
  • 155
1 vote
1 answer
27 views

wrapped text in a table cell

I write latex with the IEEEtran document class, with TexLive 2022. I would like to have wrapped text in one of a table's cells ("The number of participants") as follows: \documentclass[...
Nicholas TI's user avatar
0 votes
0 answers
71 views

New line only if not already at the beginning of the line

I have a command that puts two minipages next to each other depending on a percentual width argument for the left box (see MWE). Now I want to adjust the command such that it stays the same if it's ...
Linus Romer's user avatar
3 votes
2 answers
134 views

Non-breaking hyphen in Plain TeX

I am asking the same question as this post: How to type a non-breaking hyphen (dash, "-" character) in scientific or technical documents but I don't want to use any package (just to ...
user avatar
0 votes
0 answers
49 views

Should a line break be allowed inside a list of references if the lines are narrow?

Let's say we have narrow columns and a list of references. We can try to squeeze the list into one of the two lines as Typesetting errors are widespread [1, 2], and they can affect readability. or ...
AlMa1r's user avatar
  • 339
0 votes
1 answer
40 views

How to Increase the Vertical Gap Induced by the Linebreak Command on an Ad Hoc Basis?

Consider the code: \documentclass[12pt]{book} \usepackage[showframe,paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \textheight=3.50in \begin{document} \thispagestyle{empty} \noindent{\...
DDS's user avatar
  • 8,796
0 votes
1 answer
68 views

Problem with line breaking using \\ in tikz

Here is my code, which was compiled by pdflatex. \documentclass[11pt]{article} \usepackage[a5paper,margin=5pt]{geometry} \usepackage{amsmath,amssymb} \usepackage{tikz-qtree} \begin{document} \begin{...
youthdoo's user avatar
  • 841
0 votes
2 answers
36 views

How to add multiple lines to \author? or How to enable line breaks at \author?

Since the university has different requirements from the template provided by Latex, I would like to use \author for a different purpose. To do this, it is necessary to use line breaks. Unfortunately, ...
Werrold's user avatar
1 vote
1 answer
51 views

2 Column tabular with automatic line-wrapping

I am trying to have a 2 column table (this is the only section with 2 columns in my entire document). Since some lines are too long i would like them to wrap (this part works). However, this causes ...
Abilash's user avatar
  • 33
1 vote
1 answer
58 views

How to reduce white space inside “𝑌.” automatically?

Feeding \documentclass{article} \pagestyle{empty} %\usepackage[slantedGreek,subscriptcorrection]{newtx}% this is what I use with many of other packages in a non-minimal example. %% Text skips with ...
AlMa1r's user avatar
  • 339
1 vote
0 answers
20 views

Line breaks inside multirow does not make cell bigger

I have some long lines in a table and I am using \makecell to add in line breaks. Usually this works fine (vertically centres the text and expands the cell to fit), but I need this inside of a ...
Henry Ginn's user avatar
1 vote
0 answers
28 views

Making lstinline make line break at any character (letters, digits, ...)

I have special data I want to include via lstinline into a floating text. The main problem is that the data does not contain certain characters you could define a line break on (like space, dot, dash, ...
Robert's user avatar
  • 652
0 votes
1 answer
49 views

Make rest of a line bold

Referring to Color until line break (without luatex) where a solution was given to colorize the rest of line (from any point upto its end), I tried to put the text in e.g. bold rather than coloring it,...
Jack's user avatar
  • 1,137
3 votes
3 answers
202 views

tabularx makes an unwanted line break

As the title says, Tabluarx makes me an unwanted line break when I fill only one page in a table. In the specific context, this is a list of pros and cons. \documentclass[% fontsize=11pt, ...
FloB's user avatar
  • 45
1 vote
3 answers
54 views

Can you make certain lines wrap around early and have a hanging indent beyond the regular indent?

I want to modify this LaTeX code to create a hanging indent effect when the line wraps to the next line. I want this to break at around 75% of the textarea and start wrapping around to the new line ...
Mark Pampuch's user avatar
0 votes
1 answer
138 views

Is possible to break a line automatically?

Writing a latex document it is possible that a math-text is putted into two different lines but obviously this could be unpleasant so that I thought to confront with this using the following solution. ...
Antonio Maria Di Mauro's user avatar
1 vote
0 answers
57 views

How to prevent newline after subsection and align the paragraph of condition?

In my project \documentclass[12pt,a4paper]{report} \usepackage[utf8]{inputenc, vietnam} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amsthm} \begin{document} \subsection{Definition} A ...
PermQi's user avatar
  • 191
3 votes
1 answer
49 views

Can't get a newline with scriptsize

This is what I wrote in the editor: \begin{array}{c} {\scriptsize mx-3x=2(2-x) \par First: } \end{array} \begin{array}{c} {\scriptsize mx-3x=2(2-x) \newline First: } \end{array} It doesn't work in ...
Liang enhao's user avatar
0 votes
0 answers
28 views

No underlining and linebreak [duplicate]

I was inspired and defined “fillIn” for my purposes with an underline. The problem was that there was no line break. Then I defined a command “showTextOrLines” that uses the working command “drawLins”....
Patrick's user avatar
  • 97
0 votes
0 answers
58 views

How can I let floats interrupt my text, but only at paragraph-resolution?

I'm writing some text, with a float at some point. I don't mind where my float is placed exactly, but - I do mind if it breaks up individual paragraphs into two pieces, before and after the float. I ...
einpoklum's user avatar
  • 12.3k
2 votes
1 answer
74 views

make4ht compiled HTML math doesn't justify with text

My test.tex MWE is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam a ...
Valdinei Rodrigues's user avatar
1 vote
2 answers
85 views

Wrapping long lines with no spaces while respecting kerning

There were many posts asking about breaking long string of text/digits (with no spaces) into justified lines. This post is one example. The mostly-agreed-upon solution seems to be adding a zero-width ...
Ruixi Zhang's user avatar
  • 9,553
0 votes
0 answers
38 views

Wrapping of Reference [duplicate]

Could someone help me -whe nusing biblatex with the apa style and the biber backend,journal names only are not line-wraped according to my document setting (see print screen below): \usepackage[...
JoeBu's user avatar
  • 1
2 votes
1 answer
44 views

Vertical mode inside a Tikz node, with \textit or \emph

I want to write a two- or multiple-line text in italic inside a tikz node. But I always get an error. Please help me with this. MWE: \documentclass{article} \usepackage{tikz} \usepackage{fontawesome5} ...
stargazer45's user avatar
0 votes
1 answer
76 views

Add new line in chronoevent with chronosys

I'm creating a timeline using chronosys package but I have some issue adding a new line inside a chronoevent. Example: %!TEX TS-program = xelatex \documentclass[]{article} \usepackage{chronosys} \...
neoben's user avatar
  • 109
0 votes
1 answer
77 views

line break inside text with defined font

I'm not sure if this is the right description. I have the default font that is applied in the whole document. And I have a font that I call inside the command \teacher{}. \documentclass[a4paper,11pt]{...
stargazer45's user avatar
0 votes
1 answer
53 views

Unwanted new line between paragraphs

I have a .tex file in which I defined the below code: \section{Introduction} \paragraph{} This is an example \paragraph{} This is an example which is shown like this: How can I avoid to have the ...
Paolo Gasparro's user avatar
0 votes
1 answer
31 views

Start the example on a new line

I'm using the following code to write out examples and solutions in my book. However, I'd like to start the example in a new line after the heading. Currently, this is what I have as the output. \...
akasteve's user avatar
0 votes
0 answers
38 views

trouble with \url and line breaks

Listing picture credits in a book. Many of them are websites, with long addresses. Here's one: \figc{II056}: Victoria and Albert Museum.\url{https://collections.vam.ac.uk/item/O70273/model-for-the-...
Anthony Phillips's user avatar
0 votes
1 answer
79 views

Avoiding blank lines in document

I have a command \wvDeductj that includes some text at the beginning of a line. With \wvDeductj{This} Text the Text gets printed next to This. What is the procedure to write text on the next line ...
user avatar
1 vote
1 answer
59 views

xurl doesn't line break in fullcite beamer

I'm doing a beamer presentation with the metropolis theme. I'm using biblatex with some custom entries and ieee style but when using fullcite in a frame I'm unable to get either DOI or URL to ...
Alessandro Romancino's user avatar
1 vote
1 answer
56 views

How to break author name at the end of the line?

By author-year format, sometimes author's name is too long at the end of the line, the name will extend to the right blank of the page. So, how to break it for all the cases in the paper and how to ...
Y. zeng's user avatar
  • 1,865
0 votes
0 answers
41 views

Prevent indentation in command or environment after section header

I am creating a custom command with \newcommand that creates a new block of text on a new line. I want the command to behave as regular text with respect to indentation, i.e.: be indented after a ...
Galileji's user avatar
0 votes
2 answers
48 views

Inserting ties in Chinese documents

I've been following Knuth's advice in the TeXbook about inserting ties (i.e. non-breaking spaces) between words and formulas in appropriate places. However, when I typeset a Chinese document (using ...
pzq_alex's user avatar
3 votes
1 answer
155 views

Automatically Indent the Last Line of a Statement a Prescribed Amount

Consider the code, \documentclass[12pt]{book} \begin{document} \thispagestyle{empty} \large \noindent\textbf{How to Automatically Indent the Second Line of This Statement a Prescribed Amount---Say ...
DDS's user avatar
  • 8,796
3 votes
2 answers
237 views

How to split a long set

I have this MWE where there are two long set \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \begin{document} Supponiamo che l'insieme sia $A=\{a,b,c\}$. L'insieme delle parti di $...
Sebastiano's user avatar
  • 53.7k
2 votes
1 answer
63 views

Unexpected line break due to `foreigndisplaycquote`-environment using `biblatex` and `polyglossia` with Persian as foreign language

I am using the foreigndisplaycquote-environment from the csquotes package for longer quotations in foreign languages in my document. It is set up like this: \usepackage[autostyle=true]{csquotes} \...
Floris's user avatar
  • 89
1 vote
3 answers
38 views

Breaking Long Radical Over Multiple Lines

I need help making this monstrosity look presentable: \documentclass[12pt, a4paper]{article} \usepackage{graphicx} \usepackage{amsmath} \usepackage{parskip} \usepackage{enumitem} \usepackage{float} \...
Yasen Y.'s user avatar
1 vote
1 answer
39 views

First tag of nested description environment with newline style wont appear on new line

I have the next document: \documentclass[12pt]{article} \usepackage[english, ukrainian]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{enumitem} \setdescription{style=...
Vladyslav Rehan's user avatar
2 votes
1 answer
91 views

How do I highlight text or formulas?

I want to highlight newlined sentences and formulas. The following code will allow me to highlight newlined sentences, but I get an error if they contain quotations (\cite) or formulas (\begin{...
ayato kanada's user avatar
2 votes
1 answer
107 views

I'm having a problem with sentences breaking when writing input and output in a latex algorithm

In my algorithm, I wrote input and output as follows. \begin{algorithm}[htb!] \caption{Data Preprocessing} \label{alg:data_preprocessing} \textbf{Input} input data \\ \textbf{...
Tim's user avatar
  • 21

1
2 3 4 5
57