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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [line-breaking]

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

0
votes
0answers
21 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
75 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
35 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
28 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
43 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
29 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
22 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
25 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
84 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
40 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
37 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
31 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
39 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
42 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{...
3
votes
1answer
41 views

Separate text in two lines

I started taking a CV Template which I need to edit. This one: https://es.sharelatex.com/templates/cv-or-resume/moderncv-classic So It turns that my name is longer than "John Doe". If I go to the ...
1
vote
0answers
30 views

Prevent line-breaking inside acronym which contains a hyphen (“dash”) character [duplicate]

How can I prevent line-breaking of an acronym which contains a hyphen? I have the acronym "AP-CMOS" all over my document, and it's been broken in several places into "AP-" and "CMOS". The same occurs ...
1
vote
1answer
58 views

Long Chapter heading trucated by Legrand Orange template

I am using the Legrand Orange book template (which seems to be quite popular so I am not posting its details here). A few of my chapter titles are too long and they are being truncated as shown in the ...
2
votes
1answer
35 views

Columnsep affect line breaks in a twocolumn paper

With the following code, TeX break lines after every two \myboxs, which is what I want. \documentclass{article} \RequirePackage[a3paper,landscape,twocolumn,columnsep=6cm,left=3cm,right=3cm]{geometry}...
0
votes
0answers
16 views

breakline in textbf in multicolumns

I have given a thesis template and I am trying to fill inside cover page, but whatever I do, the "thesis title" part don't break the line automatically. Here is the given code: \newpage \newgeometry{...
2
votes
1answer
19 views

Combine two equations with linebreaks into subequations

I have two separate equations with line breaks. However, I would like them to be subequations and, thus, numbered as (1a) and (1b). I have tried all sorts of things (e.g. working with \begin{...
1
vote
1answer
24 views

How to shorten width of cvitemwithcomment argument, or make line break within argument?

This is my first post here, I usually solve my LaTeX issues through other people's questions. I'm using moderncv 2.0.0 to make my CV. I'm listing a bunch of small courses, workshops, and lectures I ...
0
votes
1answer
80 views

How to add a space between two paragraphs within the column text?

I am trying to add spaces between paragraphs when I start a new section of my document. \vskip and \bigbreak didn't add empty lines inside Parcolumns. Is there a proper way of doing this? I am using ...
2
votes
2answers
71 views

Longtable indentation in first column

I'm having trouble getting the text alignment in the first column of my longtable right. The problem is, that after a linebreak (automatic) the text is indented. More like reverse indented, since it ...
1
vote
1answer
52 views

BibTeX: Prevent line break after “et al.” citation

BibTeX adds a whitespace after a citation like "et al.". If this occurs at the end of a line, the year can be in the next line. I think this can be misleading at the end of a line, because it could ...
6
votes
2answers
227 views

How to print a line break in a loop in Plain TeX?

Let's say I have this simple loop: \newcount\u\u1 \loop \the\u~ \ifnum\u<2 \advance\u1 \repeat This prints the numbers as 1 2 What I want to achieve is 1 2 To do so I ...
1
vote
1answer
27 views

Table cell with linebreak text runs into next line

In a tabu table, if I have long enough text in a cell, a linebreak is automatically inserted. This is fine with me and what I want. However the last line of text in that cell is basically bottom ...
0
votes
0answers
37 views

How can I break URLs with long unbreakable sections in it using LaTeX? [duplicate]

I would like to know how to break URLs which contains long unbreakable sections in my bibliography using Sharelatex. That's the code I use to load my bibliography file \usepackage[sorting=nty]{...
0
votes
1answer
90 views

displaybreaks and braket package

I'm trying to allow a long formula consisting of a large set definition to break among more lines. I want to define the set using the braket package that is very handy to typeset sets. Specifically I'...
0
votes
3answers
109 views

How to label a multi-line equation?

I have a a multi-line equation, e_1 = e_2 = ... = e_n. Each of the expressions e_i is quite long. So long, in fact, that using the align environment results in some of the equations intruding into the ...
0
votes
0answers
15 views

Author names overfull in the document

I am using mnras.cls, another names not breaking it's overfull in the document is it any way to automatically break the author names. Please see the below code. \documentclass[a4paper,fleqn]{mnras} \...
0
votes
0answers
50 views

Disable linebreak at the end of the page

It is possible to prevent a linebreak with \mbox or a ~. But suppose that you have a very long document, so is it possible to prevent a linebreak for the last line of each page. A linebreak can be ...
2
votes
1answer
57 views

Unbreakable spacing with tilde causes longer line

I am working on my thesis, but I came to a problem with unbreakable space in latex using tilde. It does an unbreakable space, but puts both words on previous line so the line is longer and at the end ...
4
votes
2answers
39 views

Are multiline labels with the tikzlibrary quotes possible?

MWE: %! TEX program = lualatex \documentclass{article} \usepackage{tikz} \usetikzlibrary{ graphs, graphdrawing, positioning, quotes, } \usegdlibrary{trees} \begin{document} \begin{...
3
votes
2answers
43 views

Line break long glossaries entry when using hyperref and latex-dvips-ps2pdf

I am using the glossaries-extra package with hyperref. The problem I find occurs when I have a long (or unfortunately placed) long form of an acronym. In the case that I do not use breaklinks=true ...
0
votes
1answer
34 views

Newline after theorem doesn't work if it starts with \begin{enumerate}

This method to have a newline after the exercise heading usually works: \newtheoremstyle{break}{}{}{}{}{\bfseries}{}{\newline}{} \theoremstyle{break} \newtheorem{exercise}[theorem]{Exercise} \...
0
votes
0answers
21 views

mhChem and linebreak in Latex [duplicate]

I'm actually writing a protocol for my studies. I'm using mhChem and the \ce{} order to write chemical formulas. The problem is that latex doesn't make a proper line break when i'm using \ce{} near ...
3
votes
1answer
59 views

Stripping newlines from \@title

I'm writing the document title to a file using the command \immediate\write\myfile{\@title}, but it fails if the title contains newlines \\. How can I strip newlines (or even better any kind of ...
0
votes
1answer
53 views

Minted doesn't break the line at the desired character

I'm writing a document using minted. I installed Python, pygmentize, everything works great. But there is a behaviour I don't understand. I want to break the text inside the minted environment at the ...
0
votes
0answers
25 views

In my index section (Nomenclature) of my thesis file, a long sentence exceeds the page width and gets cut off. How do I fit the whole sentence?

I have attached a picture of the problem. My index Latex code is given below, I have included this file in my main thesis file latex window, from where I quick build it. I am using Texmaker compiler. ...
0
votes
0answers
37 views

Prevent newline [duplicate]

I would like to prevent the blank line in the following output, but setting parskip to 0pt still leaves a blank line: \documentclass{scrbook} \begin{document} \setlength{\parskip}{0pt} My first ...
1
vote
0answers
27 views

Using \left( \right) in different lines in align environment [duplicate]

I would like to produce an equation over two lines with a bracket opening in the first line and closing in the second line. Unfortunately, however, using the "\left" and "\right" commands (to have the ...
1
vote
0answers
28 views

How do I insert a new line immediately after a subparagraph?

I'd like to add a line immediately after a subparagraph as by default it does a weird bend that I don't like. This is my code: \documentclass[12pt]{article} \usepackage{changepage}% http://ctan.org/...
0
votes
2answers
27 views

How to align columns in lstlisting with breaklines=true?

The issue is indicated in red below. I can guess the right indent with breakindent in pt, but there has to be a better way. \documentclass{article} \usepackage{listings} \lstset{basicstyle=\...
0
votes
0answers
28 views

Weird unwanted multiple line break in ShareLaTeX [duplicate]

It's my first time using LaTeX and I've encountered something very strange. I have some mathematical/logic stuff that I wanted to put inside a verbatim tag (in order to enforce linebreaks and for ...
0
votes
1answer
30 views

How to breakline on heading of article?

For example, title is too long, so how do I have linebreak there? Style file is: iopart.cls \title{...
3
votes
1answer
49 views

How do I put text on multiple lines in a forest tree within a gb4e example?

I'm using gb4e and forest to present (linguistic) trees in a nice format. It's been working well except that I some of the text underneath the nodes presented on multiple lines. In the forest package ...
0
votes
1answer
54 views

Troubleshooting some mildly convoluted code, inserting 'missing $' without good reason

I'm making a template for my university for Master's/Doctorate theses, and I'm building off of what I've learned from the Thesis template in sharelatex. I'm encountering an error, though, which ...
3
votes
2answers
57 views

Specify the point on the page where a paragraph ends

Is there any way to control the point on the page where a paragraph ends? Consider the following MWE: \documentclass{article} \usepackage[a4paper,margin=3cm]{geometry} \usepackage{microtype} \...
4
votes
2answers
62 views

Line wrapping not working in tabular with long numbers

\documentclass{article} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amssymb} \usepackage{array} \begin{document} \begin{table} \begin{center} \caption{Results.}\label{tab1} \begin{tabular}{|...
3
votes
1answer
62 views

Allow line breaks at hyphen characters (“-”) in URL strings

Problem: I have created a command that colors URL strings in a certain way. URLs, unlike text, do not break at hyphen characters in my document. Minimal Working Example (MWE): \documentclass[...