Questions tagged [line-breaking]
{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.
2,839
questions
1
vote
1
answer
155
views
Splitting fraction numerator into several lines
I need to write a fraction for which I can break the numerator into several (not just two) lines. I tried several solutions and none have works. On Overleaf, most just stop the document from compiling....
1
vote
1
answer
853
views
How to include a long list of authors in the ACL template?
I'm working on a paper that has ~15 set of authors that is written in Latex using the ACL template. I can't seem to find a way to fit the author affiliations into the space and at the sometime ...
0
votes
1
answer
67
views
Automatically break a very long line, shown with monospaced font (code-like display)? [duplicate]
I have seen but there is no answer there ...
I would like to show a very long line, composed of only digits and comma, as code in Latex - and have Latex automatically break it, as I do not want to ...
1
vote
1
answer
635
views
How can I split text into a new line inside resumeSubheading?
In a section I want to describe some aspects with their respective time and place via the format below, ie with a bold heading, some (italic) text below and on the RHS of the doc the time and place.
...
1
vote
0
answers
34
views
Breaking a subsection title
I am trying to break a subsection title using \\
It was working before, but now for some reason, it is not working at all! I have done lots of edits and formatting adjustments to the whole document. I ...
1
vote
0
answers
34
views
How to make Equations exceeds one column from the IEEE template?
Equation exceeds one column of IEEE pattern in LaTeX how should I correct it? Please help, the code is attached herewith.
H_{LOS}(0;T_i,R_j) =
\frac{(m+1)A_p}{2\pi d_{ij}^{m+3}}\left\{
\left[x_j^R-x_i^...
1
vote
1
answer
46
views
Not aligned text without any package
Problem
I was working on a project, when suddenly, just one word didn't follow the rules of margins, without any reason. I thought it was some package error, but it seems like this is a 1 in a million ...
2
votes
0
answers
93
views
Line breaks in long acronyms with the packages hyperref and acronym
I am using both the acronym and hyperref packages. If I use only one of them, there's nothing wrong but if I use both, then the auto line break does not work. I want automatic line break, can someone ...
3
votes
1
answer
43
views
No URL line break in description
there are several ways to make a line break in URLs. But does somebody know how to break the URL in this example? Thanks, Harald
\documentclass[
10pt,
twoside,
toc=listofnumbered,
...
1
vote
3
answers
54
views
Latex table cell linebreaks expands to whole row
I have this table, and making \\ line breaks in first column, but this affects also the next cell, which is unintended. How can i stop this behavior? I have tried a lot, at this point, but i feel ...
0
votes
1
answer
32
views
Line breaks are missing in \author if it processes the output of another command
In this post, I found a nice trick for dealing with lists. The code below allows to print lists with an optional separator argument.
\documentclass{article}
\usepackage{etoolbox}% http://ctan.org/pkg/...
1
vote
0
answers
70
views
Line breaking with fancyvrb and fvextra doesn't work when injecting commands in Verbatim environment
Using fancyvrb and fvextra, it's possible to get verbatim environments to breaklines at any location to accomodate the text width.
\documentclass{article}
\usepackage{fancyvrb}
\usepackage{fvextra}
\...
2
votes
2
answers
77
views
How to define a column vector command using foreach and bmatrix?
I am trying to do something like this,
\DeclareRobustCommand{\col}[1]{
\begin{bmatrix}
\foreach \i in {#1} {\i \\}
\end{bmatrix}
}
Which unfortunately does not work, while this works,
\...
1
vote
1
answer
80
views
Line breaks don't work properly when fontspec uses as main font some fonts different from default Latex font
I have the following code setting as main font GFSArtemisia containing just two paragraphs of text with some empty spaces to be completed from students. I noticed that if I use as main font some fonts ...
1
vote
1
answer
65
views
Long equation in doubled column format journal
How can I split the equation or somehow make it totally visible? (WileyNJD-v2.cls) you can download wiley format from https://onlinelibrary.wiley.com/pb-assets/assets/14678640/AMA-stix_New-...
2
votes
2
answers
155
views
Automatic page break for very long equations
I have ultra-long equation. I tried to use the dmath but got the error "Overfull \hbox" and it is not running in my main code. I even tried to change \left( and \right) to \biggl( and \biggr)...
3
votes
1
answer
72
views
Dotfill after hypenation break
It seems there is an issue with \dotfill after a hyphenation break, minimal example
\documentclass{article}
\begin{document}
hippopotamus, hippopotamus, hippopotamus, hippopotamus, hippopotamus
\...
0
votes
0
answers
21
views
May we avoid the line break after section title? [duplicate]
I would like to avoid the mandatory line break after \section{title}, so that the text after \section{title} continues on the same line.
One way to answer the question may proceed by modifying David ...
1
vote
0
answers
41
views
Amsart table of contents long lines are not aligned left
Short question: I noticed that using amsart, after the line break in a long section header in the table of contents, the second line is centered, and I would like it being aligned left. Any idea how I ...
0
votes
3
answers
226
views
\linebreak causes the words in the preceding line to expand
In a document I have to use \linebreak\indent like this:
\documentclass[a5paper,openany,14pt,oneside,]{extbook}
\usepackage[left=2.34cm, right=2.34cm, top=2.66cm]{geometry}
\setlength{\parskip}{6pt ...
0
votes
1
answer
49
views
parskip sometimes pagebreaks last line
I have a two-column spread, one column on even pages and the corresponding other on the facing odd pages, using \begin{paracol}[1]*{2} environments. But the package parskip randomly pagebreaks some of ...
3
votes
1
answer
106
views
Reference request: line breaks in inline math
I find the automatic line breaking in inline math slightly obscure. Is there a comprehensive summary of where and where not automatic line breaks may occur, what are the penalties, etc.? I suppose ...
1
vote
1
answer
39
views
How to keep long words / numbers in bibliography entries within page margins
I'm trying to make sure that bibliography entries stay within the margins of the page. But annoyingly, I get entries like this sometimes, where the DOI runs off the margin:
Does anyone know a good ...
1
vote
1
answer
76
views
Using \newline in longtable in Overleaf interrupts table continused
I've created a longtable in Overleaf which has 10 rows in total (one for each author). I've used \newline to space out the RoB in the final column. However, this interrupts the 'table continued on ...
0
votes
1
answer
328
views
Single character at end of line
I am looking for a way to discourage ending lines with a single character. I could manually type out, for example: a\penalty\hyphenpenalty\ cat or I\nolinebreak[1]\ am each time I write a single ...
1
vote
1
answer
71
views
Breaking into lines of equal width for centered text
I am generating a bunch of documents with centered titles of varying lengths. Sometimes the titles run onto a second line. When they do so, I would rather have the line break occur somewhere in the ...
2
votes
1
answer
470
views
Curve rubric entry key with line break
I am using the curve class to make a resume. I would like to have an entry key inside a rubric that goes over two lines, like this (notice the line break in Arts \& \\ crafts):
% resume.tex
\...
0
votes
0
answers
49
views
How to underline text from a macro when using Alex Chan's implementation of 'a really nice underline'
Following David Carlisle's answer in How to underline text from a macro including a line break?, I am attempting to adapt David Carlisle's use of \expandafter to allow linebreaks (when underlining ...
1
vote
0
answers
269
views
How to break line or insert new line without using `\\`?
I've seen this answer but it didn't answer my question. I'm trying to get rid of all the \\ I have in my document. I initially put them to force break lines or to insert new lines. I have understood I ...
5
votes
2
answers
295
views
Overfull hbox caused by paragraph consisting of a single line
I have a document using A4 paper and relatively smaller margins than default (3cm), so the line width is quite large. There are some paragraphs that consist of a single line, for which I'm getting an ...
1
vote
1
answer
168
views
How to make a line break inside a multi-column cell created with the tabularray package?
I made a table using the tabularray package. In the first row of this table I want the text to be in two lines, but I can't because I get the error Something's wrong--perhaps a missing \item. \end.
In ...
5
votes
1
answer
87
views
Line breaking within ```\left[...\right]```
I want to break the line which is within \left[...\right].
\documentclass[12pt] {article}
\usepackage{epsf}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{align*}
\frac{...
1
vote
1
answer
55
views
Prevent LyX from creating new paragraphs after float
Using LyX with tufte-book class, whenever I insert a margin figure, LyX creates a new paragraph. Same for colored boxes. Can this be suppressed somehow?
0
votes
0
answers
33
views
Inserting linebreak between subfigures with active preview package
I would like to create subfigures with multiple rows with preview mode active. Positioning subfigures sidy by side works just fine:
\documentclass[a4paper,11pt]{article}
\usepackage{tikz}
\usepackage{...
0
votes
1
answer
70
views
How to use a line break in eqnarray without adding a new equation number?
I am working on a two-columned page and want to write a long formula. I want to use eqnarray so that I can label my equations and refer to them. Not working with eqnarray, I have the following code:
\...
0
votes
0
answers
22
views
Some questions relating to writing project number
I'm writing acknowledgement for a paper and have some questions that I need some help.
The acknowledgement is something like below with some modification to hide the real name.
This research was ...
1
vote
2
answers
61
views
How can I endline in tabular environment?
How do you end line in a tabular environment so that it would stay in it's lane? I've made an improvisation but I would like it to be automated.
\documentclass[12pt,a4paper,titlepage]{report}
\...
1
vote
1
answer
297
views
how to force break of long lines
I noticed that some long lines does not break as expected. For example test the following:
\documentclass[12pt,twoside]{article}
\usepackage[a4paper,inner=1.5cm,outer=1.5cm]{geometry}
\begin{document}...
0
votes
1
answer
218
views
Looking for a command to allow a linebreak with a hyphen
I am looking for a command like \allowbreak that inserts a hyphen when breaking the line at this position. So I basically only want to add a hint where to break a word and not allow splitting it into ...
0
votes
1
answer
87
views
Add new line in mini page - right col
I am interested to add new line after each company.
I try to achieve it by \ \ or \newline but the text get right indented. Shown using colored rectangle.
Also, I'd like to have date in same line as ...
-1
votes
1
answer
67
views
there is no line to end [duplicate]
I've "there is no line to end" prolem at my 8th line.
How to correct this.
\begin{document}
\title{\textbf{Aléatoire} \\\\\\\\
Introduction à la théorie \\\\
et au calcul des probabilités}
\...
3
votes
1
answer
101
views
Lines that doesn't fit the structure (overfull hbox)
In some places in my doucemnt I am experiencing this \hbox full error, which results in words sticking out on the right side of the marginal. I have inserted the code below.
I realize now when I try ...
2
votes
1
answer
81
views
How can I include a line break for \If statement in algorithm
I am trying to apply solution in Include a line break in algorithmic while maintaining indentation for the lines starting with if. But then does not carried out to breaked line.
\documentclass{article}...
8
votes
4
answers
1k
views
How can I make such a drawing in TikZ?
(The lines are not meant to be dashed. I'm using unicode box drawing characters, but apparently the font used by this site makes the drawing look dashed.)
┌──────┐ ┌────┐ ┌───────┐ ┌───┐ ┌────┐ ┌──────...
1
vote
2
answers
145
views
Multiple lines Caption in a figure
I need to do multiple lines in the caption of the figure
the figure looks like this now
but I want the caption to have
Multi-Label Classification Techniques.
A: Binary Relevance (BR).
B: Classifier ...
0
votes
1
answer
102
views
new line in tikz in latex
I have wrote this code to explan determinant of matrix using tikz package. How can I write last formulas in new line?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\...
0
votes
1
answer
399
views
Underfull \hbox (badness 1389) in paragraph
I am trying to draw a table like:
However, there is a warning in line 117 that "Underfull \hbox (badness 1389) in paragraph "
When I searched this error, it says that 99% I put \\ wrong.
I ...
0
votes
0
answers
122
views
Excluding words that cannot be at the end of a line
haven't found this topic on any LaTeX forum in my surprise. So I hope it's not completely stupid idea or I didn't use wrong tags.
To expand the idea in the title, is there a way to set up a set of ...
1
vote
1
answer
90
views
Reference section with spaced words and unjustified items
I want to write a manuscript by iopart from IOP publishing group that can be found in this page. Unfortunately my references have problems. I attached tex and bib files. many thanks in advance
% ...
0
votes
0
answers
38
views
How to set all \\ in arrays to be \\[1em]?
Everything is in the question. Right now, for instance, I must do this:
\begin{array}[t]{ccl}
\sin\theta & = & \sin\paren{\dfrac{2\theta}{2}} \\[1em]
& = & 2\sin\paren{\dfrac{\theta}{2}...