Questions tagged [line-breaking]
{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.
2,621
questions
3
votes
2
answers
316
views
Line break in a NiceTabular environment in merged cells
I'm trying to create a table with NiceTabular, because I had some coloring problems with multicolumn/multirow.
The table looks already good except, that no linebreaks are done in \Block cells. In ...
6
votes
2
answers
236
views
Is it possible to define atomic chunks of math which automatically do line breaks when necessary?
I'm writing a paper for a journal, which publishes in double column style, but the submitted manuscript has to be single-column. This means, I have to make sure that the formulas are properly ...
1
vote
1
answer
36
views
lstlisting url broken by line wrapping
I have a URL which get's broken by the line break. Ideally I'd like it to be possible to copy the whole wget command and paste it into a terminal. Unfortunately I am ending with an overflowing box and ...
1
vote
1
answer
70
views
How to add variable arguments to \newcommand inside \SetBreakableRel from the package rmathbr? (inline math-break with repetition)
rmathbr is a package enabling another convention of breaking inline equations if they run too long. Specifically, symbols are repeated on the new line (and kept on previous line). So, for instance, a =...
2
votes
1
answer
57
views
Allow arbitrary linebreaks in \texttt formatted text
My document is a mixture of regular text and code, where I format the code with \texttt{}. To make this a little easier, I added a new command:
\newcommand {\ttt} {\texttt}
so now I just write, \ttt{...
1
vote
1
answer
278
views
Strikethrough and line breaks
I need to use \sout{} from the ulem package for longer passages of text and in combination with other macros. However, this removes all linebreaks and the text is kept on a single line. Is there any ...
0
votes
1
answer
53
views
Create a command which allows us to return to the beginning of the line
With the following codes
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm,mathtools,systeme}
\usepackage[tikz]{bclogo}
\usepackage{...
2
votes
1
answer
143
views
Why tolerance = 9999 doesn't work?
I expect if I set \tolerance = 9999 there will be no overfull boxes. However, I have a case where changing the tolerance value has no effect at all. Moreover, you can visually see where would be a ...
2
votes
3
answers
105
views
Linebreak in multirow using tabularx
I try to place the three first description in a multirow enviroment and include a linebreak.
But I did not succed in doing this without creating an error. Do you have an idea how I could do this?
% ...
2
votes
1
answer
44
views
Consecutive colorbox items does not line break in a table
I want to create a table with the long text content. Each word in the text is color boxed. But when this is done, the text does not wrap and there is no line break. Below is sample code:
\begin{table}[...
0
votes
1
answer
78
views
Table, new line and centering problem [duplicate]
I want to create a table where in each column I need to write something in two (or more than) lines. I also want that in each cell all the entries will be aligned at the centre.
I tried one code as ...
1
vote
0
answers
32
views
Automatic indentation in tabularx after line break [duplicate]
Similary to this How do I get indentation after automatic line break? after breaking (automatically, or manually with \newline) lines in a tabularx environment I would like to obtain an automatic ...
0
votes
2
answers
47
views
Table cell (or other paragraph) first line left aligned, subsequent lines right aligned
I’d like table cells to have automatic line breaking, but the first line should be on the left side of the cell and subsequent lines aligned to the right side of the cell, as if the first line were \...
1
vote
2
answers
48
views
Align table heading at the top of the table
I have a problem with the alignment of the heading in my table. Here I want to force a line break with the function \shortstack for the table headers. This works also so far.
However, I would like to ...
0
votes
0
answers
45
views
How i use \nolinebreak
How do I use \nolinebreak. I want no line breaks in my book. I want to use \nolinebreak.
Please help me
4
votes
3
answers
48
views
Line break in right hand side of alignat
I am trying to build an equation like the one in the image, where one of the lines at the right-hand-side has a line-break. I tried to do this by putting it in its own extra equation, but as can be ...
1
vote
1
answer
43
views
line break in tabularx environment
I have a complicated table with multicolumns that overflow. I believe I can't use \seqsplit because it's a tabular environment (inside a tabularx). I tried \newline and \hline but it didn't work ...
0
votes
1
answer
36
views
Avoid pagebreaks after group titles in glossary
I am using my own glossary style which is simply an updated version of the existing stlye altlistgroup. The problem is, that I can run into a pagebreak right between a group heading and the first ...
0
votes
1
answer
530
views
How to delete line breaks?
So my text is following:
Input Latex:
texttext
ugly linebreak
Output:
texttext
ugly linebreak
Desired Output:
texttext
ugly linebreak
how do I delete this space (at the points ...)? I know that ...
2
votes
1
answer
44
views
Easy way to break lines in tabular
is there a quick and painless way to auto-breaklines in Latex?
\begin{table}
\centering
\begin{tabular}{rllll}
\multicolumn{1}{l}{id} & nome dashboard & creator~ & tipo & URL ...
20
votes
3
answers
878
views
Why does plain TeX set \tolerance larger than \pretolerance?
When TeX breaks a paragraph into lines, it makes three passes. In the first pass, TeX tries to break the paragraph without hyphenation, during which it makes sure that no line has a badness (from glue ...
0
votes
1
answer
102
views
Changing the $$ environment to use automatic line breaking
Is there is a way to modify the behaviour of the $$ .... $$ display math in order to make automatic line breaking? I am aware of the breqn package, but to use it I would need to retype all the ...
1
vote
1
answer
34
views
Latex table inserts new line at the end
I am creating two tables, But somehow, there is an empty line between these two tables.
\begin{table}[!htb]
\begin{center}
\captionof{table}{Properties of the magnetic Resolver}\label{tab:resvprop}
\...
2
votes
2
answers
255
views
How to start a new line in an equation using $$
So I have got a pretty complex equation (with different types of brackets) and it's too long, so I want to break the equation up to start a new line. The equation is:
\begin{document}
$$
Cl_f(\vec x):=...
1
vote
0
answers
20
views
Stretchable space that allows line-break but doesn't allow page-break
I would like to create a stretchable space that allows line-break but does not allow page-break.
In this case (but I think I will use such a space in other contexts), I would like to create a \ref-...
5
votes
2
answers
266
views
Show return symbol on listings line breaks
I was wondering if it was possible to make the listings package show a return symbol like "⮑" when a line break occurs.
With default line numbering settings this is not needed, as the line ...
2
votes
1
answer
84
views
Can we have a blank line while inside math mode using $$
I am trying to debug a warning message in my LaTex document. The error message that I am getting is Missing $ inserted.
I wanted to check whether can we have a blank line while inside math mode using $...
5
votes
2
answers
110
views
How to create a paragraph that show the number of line it contains?
Trying being brief...
How can I create a paragraph that shows meta information, e.g., mentioning the number of lines or words it contains, using TeX primitives only? It's very important that such ...
0
votes
3
answers
145
views
How to recreate this equation in LaTeX?
I am taking notes in LaTeX for sometime now. But I'm stuck with this one now. I want to create the equation below in LaTeX.
I tried using \underbrace \Centerstack command but I don't know how to ...
1
vote
1
answer
44
views
Changing line spacing within table cell
Currently I am trying to make my tables look prettier (or rather say, easier to read), so I was wondering how to set a column in a way that it can perform line-breaks automatically within one cell ...
1
vote
0
answers
135
views
Word wrap in supertabular two column table entry
From a Freeman CV Template:
With a two column table defined as following:
\begin{supertabular}{rl} % Start a table with two columns, the table will ensure everything is aligned
%----------------------...
0
votes
2
answers
130
views
Centering an underlined title
The goal is to center the main title in the cover page, however, this has been proven quite the challenge.
What the problem is
Most of the approaches I've tried end up in the same way: the title ...
1
vote
2
answers
154
views
Line break inside (long) name in glossary entry
The solution to "manual break in glossaries name" does not print any glossaries in my case (after adding \gls{pab} and \gls{pc} just after \begin{document}). If I define the name as a ...
2
votes
1
answer
62
views
How to make a new line associated to the same equation inside subnumcases?
I would like to write a new line associated to the same equation inside a subnumcases environment, as the whole equation is too big to fit into a single line. For that purpose, I tried to use the \\ ...
1
vote
1
answer
80
views
'\\' and '\newline' not working
Those two symbols in the tite aren't working and I have no idea what's going on. This is my first time using latex so I'm lost. Also, can someone teach me how to make a bullet like the one in ...
0
votes
2
answers
38
views
Break line after item label in list but NOT if it fills line?
I've seen the question (and this one) explaining how to break the line after the list label but sometimes I have labels for my items that fill the whole line in which case I don't want to create an ...
2
votes
2
answers
103
views
Automatic line breaks in tables [closed]
I have tried a few different solutions for automatic line breaks within tables in LaTeX. Below is an example of a tabular list using my most elaborate method so far. It looks alright in PDF, but it ...
1
vote
1
answer
34
views
Chart Label in two lines
I created the chart below and would like to change the ylabel "Fusionierte Theater" two have each word in one line. Is that possible? I would also like to get "Anstalt" "...
0
votes
1
answer
63
views
Biblatex creates big linebreaks if Reference Entry fills whole line
I use biblatex to cite my references. Printing my bibliography works almost as expected. If the entry's last character (in my case a dot) is at the end of a line, a big line break occurs. So a big gap ...
1
vote
1
answer
40
views
lstlisting: Unexpected newline/missing background color after trailing space in escape section
I'll start with a minimum failing example:
\documentclass{article}
\usepackage{listings}
\usepackage{color}
\lstdefinelanguage{x}{
escapechar={!}
}
\lstset{language=x,
breaklines=true,
...
0
votes
0
answers
36
views
Problems with \\ in XeLaTeX when using Mac
I currently faced a problem with a XeTeX file I wrote using Windows 10 when I tried compiling it with MacOS Sierra 10.12.6. I had a .cls file containing following code snippet:
...
\newcommand{\cover}[...
1
vote
1
answer
1k
views
New line (not new paragraph) [closed]
I could not find a (no verbose) solution to differentiate new line from new paragraph.
As far as I know, \\ and \newline both insert a new line. But the first one is often not recommended.
A space ...
3
votes
1
answer
51
views
Fixed-width space in math mode that is gobbled at the end of a line
Consider the following example:
\documentclass{article}
\newcommand{\myspace}{\hspace{3em}}
\newcommand{\mycmd}{left\myspace right}
\begin{document}
1:
Lorem ipsum dolor sit amet, consectetur ...
0
votes
0
answers
43
views
How to properly left-right justify text
As you can see in the image below some of text falls into the margin for some reason i am using \RequirePackage[none]{hyphenat} this package to prevent hyphenation and i assume this must be causing ...
0
votes
1
answer
136
views
How to use \lIf and \lFor in one line for algorithm2e?
I'm using algorithm2e and am familiar with \lIf and \lFor to have no extra lines. But when I use both of them together, an extra blank line gets inserted. Is there a way to avoid that line? MWE ...
2
votes
0
answers
95
views
luaoftload v3.17 with HarfBuzz does awful line breaking with Garamond
I have this long document which I've been maintaining for years now, which I use Adobe's Garamond Premier Pro font for typesetting, and the whole document is fine-tuned to avoid overfull boxes and ...
0
votes
2
answers
48
views
word not getting broken to new line
In the first paragraph of the following document, the word mathematical is not getting broken across lines and this produces a misalignment with a wrong justification of the text. I know I can force ...
1
vote
0
answers
78
views
Need an alternative for \usepackage[none]hyphenat
I have a problem. When i want to use hyphenat package, the breaklines=true on mmacells package will not working. But it will work if i delete the hyphenat package. And i don't want to delete my ...
1
vote
3
answers
24
views
split argument of newcommand that goes into a multicolumn element across multiple lines
I have modified the following function coming from a CV template:
\newcommand{\ressubheading}[4]{
\begin{tabularx}{6in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}
\textbf{#1} & #2 ...
2
votes
2
answers
106
views
How to align displayed, multi-line computations
I work in a field of mathematics where long, multi-line computations are bread and butter, and I mostly use align* (and its siblings) from the amsmath package to display them. However, I have not ...