Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [line-breaking]

{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.

1
vote
1answer
11 views

How to create vspace after the first line without an indent

I am brand new to LaTeX, and I am quite frustrated at my inability to use the \vspace command after the first line without this weird indent on the first line. Here is my first attempt at creating ...
0
votes
2answers
16 views

Not to have titles with broken words neither in the title nor in the header

If have long titles in my document, and I do not want them to present broken words. I saw this topic on How do I manually break a line in the title of my thesis -- using the U of Maine package, but ...
0
votes
0answers
41 views

Compiling to PDF without line breaks

This has been asked before, but the discussion veered off course to using TEX as the source instead of a PDF. So to borrow the previous question's phrasing: "I want to be able to copy text from PDF to ...
3
votes
4answers
110 views

Horizontal line without indenting

This is the result I want to have (I want to obtain the result that most resembles this mathematical expression): What I have tried is this: \[ \begin{aligned} 01\: 1011 \: 0110\\ 11\: 0001 \...
1
vote
0answers
41 views

Using boxed with newline in it [duplicate]

I am new to LaTeX, cant figure out this issue. I want a box around the following equation. \begin{equation} A State S_{t} is Markov if and only if : \newline P [ S_{t+1} | S_{t} ] = P [ S_{...
2
votes
1answer
48 views

Line break long verbatim text with highlighted background

I created an MWE-look-alike in the original document then 'background highlighted' (somehow 'highlight' means something else in verbatim) some text to show where/what to focus on. This MWE-look-alike ...
1
vote
1answer
20 views

Prevent line break in only one chapter title (chapter title run over margins)

One of my chapter titles is only one or two characters longer than the text width; therefore latex breaks the chapter title automatically and moves the last word to the next line. How can I prevent ...
0
votes
0answers
17 views

Line break in longtable environment

How kann I insert linebreaks in my longtable? I tried \RaggedRight bu it does not work. What is my mistake? \documentclass[origlongtable]{scrbook} \usepackage[showframe]{geometry} \usepackage{...
1
vote
1answer
37 views

Unwanted newline after a tcolorbox

How to avoid new line jump after each tcolorbox ? \documentclass[10pt,a5paper,landscape]{article} \usepackage{pgffor,luacode,array,tcolorbox,bm,geometry} \geometry{margin=1.5cm} \pagestyle{empty} \...
2
votes
1answer
26 views

linguex forest in multicols larger than margin

I'd like to have two forest in one row. Unfortunately it is slightly over the page margin. I am new in latex. Do you have any suggestions for me? \documentclass[a4paper,12pt,DIV=15,BCOR=12mm,oneside,...
2
votes
1answer
39 views

Automatic line breaking in minted

I'm using the minted package to generate syntax-highlighted code snippets. The listing I want to show has some lines that overflow, though. Minted can automatically handle line breaks with the ...
0
votes
1answer
55 views

How to account for delimiters when full stops are active?

I'm working on an environment in which each sentence is supposed to end with a line break. This should happen automatically and with minimal intrusion into the text because in the actual use case the ...
3
votes
1answer
70 views

How to mark soft wrap lines?

Is there a way to mark all lines which have been wrapped automatically (i.e. places where LuaTeX decided there needed to be a line break)? Something like \localrightbox but which is only active at ...
3
votes
2answers
95 views

How to insert a line break after each full stop?

How do I add a line break after each sentence in the text? Preferably without altering the text too much because I have to be able to reuse the text in other cases where I don't want this behavior. ...
5
votes
3answers
138 views

Line break and Numbering inside align environment

I'm trying to number a set of equations within the align environment. \tag{...} doesn't work for some reason. Moreover, I would like to have line breaks in the text elements in order to save space. ...
0
votes
0answers
28 views

page/line breaks with index

Consider the following possibilities for indexing a word (potentially enclosed in parentheses) with spaces before and after it: 1) \index{foo}long_word 2) long_word\index{foo} 3) (\index{foo}...
1
vote
1answer
23 views

Word break malfunctioning in custom enumerated list

I'm working on a custom homework template, and for some reason, word break malfunctions on long words in the first line. I've included a MWE. Does anyone have any idea of what is going on? \...
4
votes
2answers
80 views

Insert LaTeX code at line break

Is there a way to insert arbitrary (La)TeX-code at the line break of a typeset line? I am aware that this isn't really possible with (La)TeX as such. But looking at all the interesting chickenize-...
0
votes
0answers
54 views

No line breaking in bibliography [duplicate]

i am using biber and pdflatex to compile. my problem is that some lines in the bibliography do not break at the default margins. can you help me here?
2
votes
2answers
42 views

creating new line in a row of table in latex

Above is the table generated by my code. While I need table like one in the 2nd image given below. I searched a lot but couldn't find any solution. Can someone help? My code is \documentclass[12pt]{...
0
votes
1answer
33 views

Do you know why I have this warning: underfull \hbox(\badness 10000), using visual studio code with Latex extension

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[]{amsthm} %lets us use \begin{proof} \usepackage[]{amssymb} %gives us the character \varnothing \usepackage[...
3
votes
2answers
60 views

Make compiler interpret some chosen symbol (say, a comma) as a line breaking hint within an environment?

Here's a minimal not working example: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \begin{document} % some text \parbox{\linewidth}{a short phrase, followed by another} \...
0
votes
1answer
29 views

How to break an inline equation with text in it by maintaining the correct syllables separation

I'm writing a long inline equation which contains text and citations in it by using the \textit{}, \text{} and \ref{} command. The problem is that both inside the text environment and after a ...
1
vote
0answers
24 views

Spacing between words using \break [closed]

I get excessive word spacing at the bottom lines of paragraphs ending with \break. I tried to add \setlength{\parskip}{0pt}, \raggedbottom, loading ragged2e and loading microtype. Nothing seemed to ...
6
votes
1answer
42 views

How can I completely suppress hyphenation that starts in a column (or page) and ends in a second one?

In the example above, the hyphenation of the word 'deterministic' starts in one column and ends in the next one. How can I suppress this behavior altogether? NOTE: I know that \mbox{<text>} ...
1
vote
2answers
32 views

Auto-resize table when text from a column is to big

I have a simple table that I manage to make it to scale when text is too big by using p{4.7cm}. Here is the code: \begin{document} \begin{table}[] \scalebox{1.0}{ \begin{tabular}{c|c|c|} ...
2
votes
1answer
24 views

DOI links inside \texttt{} with \url{} line breaking

As in the title, is there any way to have \doi{}, apart from automatically inserting a link to an article, output into \texttt{} and break the line just like \url{} does? Unfortunately, I can't use ...
0
votes
0answers
24 views

How to break a long equation into 2 lines? [duplicate]

I have a long equation that can't show in one line. I'm new to LaTex. Can anyone help? Thanks a lot. \frac{1}{2} \left(2 \varphi ^{(1,0)}(x,t) \left(u^{(1,0)}(x,t) \left(A G k \cos (2 \varphi (x,t))-\...
0
votes
0answers
15 views

bibliography bibtex line break

How can I break the line in the title in the bibliography? I am using a bibtex file to compile the bibliography. I attach a picture of the issue. Do I have to add any macro or redefine something? In ...
2
votes
1answer
28 views

Lstlisting does not break on long line containing only “*”

When using the lstlisting environment, I can't get it to break on a long line which contains only the * character. This is my minimum working example. It produces a listing in which the text flows out ...
0
votes
0answers
28 views

How to force or allow line breaks in \tcolorbox no listings mostly just on word or expression

Hello Community Fellows, I just want to highlight little Code snippets in my document as well and as lookalike like here with the tcolorbox (<- best example) but the line breaks will not appear, ...
1
vote
0answers
32 views

set tolerance within a span command only

URLs (and similar, e.g., long class names or folder names) can be annoying to typeset well. This gets even worse when the document is automatically generated, and you cannot "just" insert manual ...
0
votes
0answers
9 views

How to get a skip line after use \paragraph{..} with sectsty package? [duplicate]

sectioning my document I had to use \paragraph{}, but the text appears in the same line. For customizing my section titles I'm using sectsty. How can I get a newline after using \paragraph{}? \...
0
votes
1answer
24 views

linebreaks in lstlisting and verbatim environment

longline*.txt files contain some text and in some files the text is inserted in an environment as indicated in the filename. The following script: \documentclass{article} \usepackage{listings} \...
1
vote
2answers
40 views

Is it necessary to use a non-breaking space when using cleveref?

I came across this question about the instances wherein non-breaking space should be used. For cross-referencing, I am using cleveref. Although its documentation does not indicate anything about non-...
3
votes
2answers
52 views

Equation in footnote causes empty footnote on next page

I have a footnote in a standard article document that happens to be at the bottom of a page, and the footnote ends with an equation environment. This causes the footnote to continue on the next page (...
0
votes
0answers
24 views

Need a way to nest line breaks in tabularx environment for Calendar

I am trying to make an academic calendar package. I know there's a veritable horde of them out there and I've looked through many of them but can't seem to find one I like. Since I am (usually) pretty ...
4
votes
2answers
95 views

Truncating multi-line text

We can use the truncate package to truncate a piece of text so that it fits e.g. in a 5cm wide box. However, the package can only handle one line of text. What if I have got a (possibly long) text ...
0
votes
0answers
44 views

Line break in table (math-mode)

How can I add a line break into a table during math-mode? For instance, here: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{amssymb,amsmath} \begin{document} \begin{...
0
votes
0answers
50 views

How do I get the author list to wrap when using authblk with titling?

I am writing a document that compiles a collection of abstracts, and so I want to use \maketitle repeatedly. I'm using the titling package along with authblk to get multiple author affiliations, ...
2
votes
1answer
48 views

Adding a line in a diagram using tikzpicture

Currently my diagram looks like this: Using the following code: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{center} \begin{tikzpicture}[level 1/....
2
votes
1answer
61 views

How to write Appendix and its name on the same line in IEEEtran?

I would like to write Appendix A: Proof of Theorem 1 in IEEEtran but what I am getting is Appendix A Proof of Theorem 1 Here is the code I am using: \documentclass[10pt, conference, ...
0
votes
0answers
37 views

Full line on twentysecond.cls

I am new to LaTex and using twentysecond.cls to create a resume. In the email section,my email id is big but can be contained in single but the template doesn't allow full line on /cvemail. Here's ...
1
vote
1answer
26 views

Alignment / scaling of pgfplot legends

I would like to align two plots containing legends on their outside: \documentclass[a4paper]{article} \usepackage{tikz} \usepackage{tikzscale} \usepackage{subcaption} \usepackage{pgfplots} \...
2
votes
1answer
107 views

How to adjust the breaking in the bibliography?

This question continues my another. I have to use weird margins and line spacing for my academic wirting. MWE: \documentclass[ pagesize, usegeometry = on, ...
0
votes
0answers
43 views

\texttt line break at capital letters [duplicate]

inside my text flow I'm writing classes of my C# code with \texttt, to explain the listings. The Syntax of these classes Looks like this "TestObject". I'd like to allow line breaks before capital ...
0
votes
3answers
38 views

\paragraph command start below heading

When using the \paragraph command, how do get the text that follows to start below the heading (and not in the same line)?
2
votes
1answer
32 views

How does one specify a newline as a “before-code” in the titleformat command? [closed]

(titlesec-Package) It seems to me that inserting anything like \\ or \newline in any of the fields provided by titleformat and titlespacing result in any of the following: The newline sometimes ...
0
votes
1answer
42 views

Switching back to inline math with “\everymath{\displaystyle}”

I have " \everymath{\displaystyle} in my header (even though I know you all don't recommend this). But the following line won't break at the end of the text part of the margin and instead writes off ...
0
votes
1answer
50 views

How do I make break in chronology?

This is my code \documentclass[10pt]{beamer} \usetheme[progressbar=frametitle]{metropolis} \usepackage{appendixnumberbeamer} \usepackage{chronology} \begin{frame}{Timeline} \begin{center} \begin{...