Skip to main content

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
0 votes
0 answers
20 views

Line break inside psfrag

I want to replace a tag with some text inside an .eps graphic using \psfrag. Is there any way to replace the tag with multi line text? I tried \psfrag{tag}{line 1 \\ line 2} and \psfrag{tag}{line 1 \...
User's user avatar
  • 1
3 votes
2 answers
225 views

Address Formatting Issue in LaTeX

I'm facing a formatting issue with the address in my LaTeX document. I'm using the following command to specify the address: \documentclass[manuscript, printscheme]{aomart} \author{La. La.} \address{...
L.L's user avatar
  • 145
2 votes
1 answer
46 views

Why does Latex produce this error and how to fix it? [duplicate]

When I use \dot on the first line with an operator $\hat{a}$ and then go to a new line where there are two operators that are both dotted on top, there is an error where the letter from the first line ...
QEntanglement's user avatar
0 votes
2 answers
43 views

How can I suppress the word 'Chapter' (book) and have number and title in one line? [duplicate]

I am using the book class and I want the title of the chapters to be printed without the word 'Chapter' or 'Kapitel', respectively. I already succeeded in suppressing the word itself with the help of ...
kosdeg's user avatar
  • 25
0 votes
0 answers
41 views

Best approach to ensure that typeset paragraph is free of /r/n whitespace characters

Consider a use-case where one is copying a paragraph from a typeset .pdf for insertion into a field of a webform or .pdf form which supports multiples lines / paragraphs. The typesetting process ...
John Chris's user avatar
2 votes
1 answer
50 views

How to encourage line breaks after clauses of phrases?

I'd like to encourage LATEX to insert its line breaks in grammatically sensible places in sentences. Here's my first attempt: \documentclass{article} \usepackage[document]{ragged2e} \newcommand{\p}{\...
user avatar
2 votes
2 answers
118 views

Underfull \hbox with image

When I create a minipage to insert an operating mode in front of an image, I obtain a warning with an Underfull \hbox (badness 1748) in paragraph at lines 75--75 I can't understand what is causing ...
Nicolas's user avatar
  • 1,297
0 votes
1 answer
44 views

A weird result when use aligned with sqrt for multiple lines

I'm trying to write an equation in which sqrt function is too long and I use aligned to break into multiple lines inside sqrt \begin{equation} \begin{split} \begin{aligned} \sqrt{(\tilde{\textbf{w}_i} ...
jupyter's user avatar
  • 103
1 vote
1 answer
54 views

How to achieve wrapping align left+right and solve the spacing problem after emdash?

I’m currently working on a LaTeX document where I have defined a new command \entry that takes two arguments: \newcommand{\entry}[2]{\markboth{#1}{#1}\textbf{#1} — \hfill{#2}} where it is used in ...
swiftenjoyer's user avatar
0 votes
2 answers
58 views

How can I make lines break automatically in table?

\fancyhf{} \rhead{Juan Da Silva} \lhead{Machine Learning} \rfoot{Page \thepage} \lfoot{TUM} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.5pt} \usepackage{ragged2e} \justifying ...
juan19.99's user avatar
0 votes
2 answers
39 views

Hyphenation at the end of the line

I have an issue with hyphenation. Here is the code \documentclass[11pt,a4paper]{amsbook} \usepackage[utf8]{inputenc} \usepackage{txfonts} \usepackage{hyperref} \usepackage{mathrsfs} \usepackage{...
Conjecture's user avatar
0 votes
0 answers
44 views

Prevent single word to cause line break in bibliography

Is there any way to prevent single words like page numbers (e.g. pp. 20-22) to cause line break in bibliography? I'm using natbib with following options: \usepackage[square,sort&compress,comma,...
Mohsen's user avatar
  • 1
0 votes
2 answers
71 views

Is there a way to avoid new paragraph?

Is it possible to avoid a paragraph/line break in the compiled document between different paragraphs of code? Something like \noindent but specifically for the paragraph break: lorem ipsum dolor sit ...
joaocandre's user avatar
1 vote
0 answers
33 views

ragged2e: forbid overlong lines [duplicate]

I am trying to set some text ragged-right with ragged2e. To conform to the format I'm working with, my text absolutely must not go over the right margin under any circumstances. LaTeX sometimes ...
Holly's user avatar
  • 13
1 vote
1 answer
66 views

Cutting fboxes when lines break [duplicate]

Is there a way that fbox, at the end of the line, just stops (there is blank instead of the right side of the box) and restarts automatically on the next line (with a blank instead of the left side of ...
Louis Lascaud's user avatar
0 votes
1 answer
43 views

Prevent line break before french quotation marks

Simple question today. I'm using this preamble for languages: \documentclass[a4paper,12pt,twoside]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french,english]{babel} and I ...
Louis Lascaud's user avatar
4 votes
2 answers
97 views

Adding \kern to Thai language in babel breaks line breaking

If I add a \kern in Thai text, it seems to break line breaking. (Disclaimer: I don't read or write Thai.) How can I fix this? (I'm using \kern to add a little bit of unbreakable space, so happy with ...
David Purton's user avatar
  • 26.4k
3 votes
2 answers
154 views

Making a character active in a macro

I thought I am smart, so I put this code to locally allow breaks inside inline math into a macro: \documentclass{article} \def\MakeCommaBreakable{% \def\OldComma{,} \catcode`\,=13 \def,{% ...
Bubaya's user avatar
  • 2,549
1 vote
1 answer
75 views

Why is there no parameter \emergencytolerance?

If overfull boxes cannot be removed by rewording, layout changes etc., there are basically two strategies for removing them: Increase the value of \tolerance Increase the value of \emergencystretch ...
user227621's user avatar
1 vote
2 answers
42 views

Avoiding page break inside all paragraphs with \filbreak when also using \\

I am writing some song lyrics. If possible, partially empty pages should be preffered over page breaks inside paragraphs. Using \widowpenalties 1 10000 and \raggedbottom didn't work. Until now, I was ...
Filip Ž's user avatar
1 vote
2 answers
33 views

Drop Cap is causing text to be pushed out on certain lines of text

I would like the text to stay flush but it looks like the superscript along with the dropcap to be pushed out. I don't know what I need to fix that. Also, I'd like the paragraph to wrap around the ...
DonnyRodriguez's user avatar
2 votes
2 answers
84 views

What are good ways to make a forced line break within a table cell while maintaining proper formatting?

I looked into some of the different solutions provided in the following thread on how to make forced line breaks within a table cell: How to add a forced line break inside a table cell Based on that, ...
Atex's user avatar
  • 210
1 vote
1 answer
41 views

Avoid breakpage between content and legend in colorbox

Situation : I use a tcolorbox, but sometimes the content and the legend of the box are separated by a breakpage. I want to avoid that, but to let the box breakable in its content. I tried different ...
Hobo_academicus's user avatar
0 votes
0 answers
17 views

mdframe-boxes within boxes won't break properly

I'm currently working on a project for which I would like to use the mdframed-package for some structuring. Doing this I would like to create boxes within boxes, but when I do so and the inside boxes ...
Paul Schott's user avatar
5 votes
1 answer
131 views

Definition of nobreak changed after upgrade to TexLive2024

We have now updated our Linux system and therefore upgraded as well to lualatex 1.18.0. Somehow the definition of nobreak seems to have changed - or at least the handle of it. Since we're running Unit-...
LeO's user avatar
  • 1,491
1 vote
1 answer
105 views

Underfull \hbox (badness 10000) in paragraph at lines 25--27

\documentclass[lettersize,journal]{IEEEtran} \usepackage{amsmath,amsfonts} \usepackage{algorithmic} \usepackage{algorithm} \usepackage{array} \usepackage[caption=false,font=normalsize,labelfont=sf,...
BsAxUbx5KoQDEpCAqSffwGy554PSah's user avatar
4 votes
2 answers
314 views

Difference between \newline, \linebreak, \break

What are the actual definitions of \newline, \linebreak and \break (and also \par)? Is the latter a TeX primitive? I can't find the relevant documentation anywhere regarding their precise function, ...
SvenForkbeard's user avatar
1 vote
1 answer
41 views

Parenthesis encapsulating several lines in math mode

I would like to be able to produce parentheses that encapsulate several lines of text in math mode. The context is the following: when typing the solutions to a set of probability exercises, I need to ...
Wild Feather's user avatar
0 votes
2 answers
72 views

Behaviour of newline in tabularx package

I want a table with two columns; the left column should be left-justified, the right right-justified, but with possible manual line breaks in either column. I am using a tabularx environment \begin{...
SvenForkbeard's user avatar
0 votes
1 answer
32 views

Define the following environment: \divisorule\begin{flushleft}\end{flushleft}\divisorule

Anytimes I need to explain something which could be not clear for someone so that I usually to put it into a shrank text as to follow \noindent\hrulefill~\raisebox{-4pt}[10pt][10pt]{*any symbol like ...
Antonio Maria Di Mauro's user avatar
0 votes
0 answers
35 views

Is there something like a would-rather-not-break space in LaTeX? [duplicate]

I know that ~ prevents line breaks and that allows them. Is there something in between to tell LaTeX that it could break here if necessary, but it would be better not to. For example "in order ...
user avatar
2 votes
1 answer
81 views

Why it appears that seqsplit fails to break some strings?

I know it is possible to break long lines using the seqsplit package. The following code block shows a minimal working example. \documentclass{article} \usepackage[a4paper, showframe]{geometry} \...
Rodrigo Morales's user avatar
0 votes
1 answer
20 views

Break long lines without exceeding page limits for any given font size (xelatex)

The following code block was retrieved from this answer. It shows how to break long lines (see code and screenshot below.) \documentclass{article} \usepackage{lipsum} \begin{document} \parindent0pt \...
Rodrigo Morales's user avatar
0 votes
1 answer
56 views

How to make custom command work after line break/new paragraph? [duplicate]

I have a simple command which creates coloured text. This works without any issues when there is a single paragraph without a line break. With a linebreak/new paragraph this does not work (commented ...
Damitr's user avatar
  • 2,025
1 vote
2 answers
41 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
16 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
58 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
42 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
132 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
54 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
63 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
280 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
37 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
4 votes
3 answers
109 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
  • 175
1 vote
1 answer
32 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
76 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
153 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
52 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
  • 541
0 votes
1 answer
41 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
  • 9,768
0 votes
1 answer
69 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
  • 871

1
2 3 4 5
58