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
0answers
19 views

How to handle line-wrap in index page?

Im using the package makeidx to generate an index page with two columns. When a term is slightly longer than a column, it just overflows instead of a line break. How do I handle this? My code: \...
1
vote
1answer
40 views

Moving an unbreakable equation from one line to another

I have an equation that is being split between two lines. I would like to solve this by making it unbreakable. However, if I do this, it overflows into the margin. How can I force the unbroken ...
0
votes
2answers
77 views

Line breaking after \paragraph{}

I know that I can it with \mbox{}\\ (\paragraph{}\mbox{}\\) but that's kinda messy and using titlesec to redefine \paragraph{} doesn't cut it for me either, because I most of the time want to have ...
2
votes
2answers
59 views

Aligning and line-breaking a set of long equations in both single- and two-column modes with proportional vertical spacing

For the following set of long equations, how to 1- aesthetically align and line-break them in a single- and two-column modes without crossing the single column dedicated space and 2- separately ...
3
votes
2answers
295 views

How to use fontspec to typeset Amharic text in Latex?

I am a new user and want to use Amharic as a main language with English as a second in LaTex. I use MAC O X 10.13 version with TexShop 4.44 version. To write the Amharic text I use Abyssinica SIL as a ...
1
vote
0answers
20 views

How can I introduce a line break in the title for a chapter, but not have the line break in the contents page? [duplicate]

Hello, I wanted to introduce a line break in some of my titles for aesthetic reasons (to avoid a line with one word)... But now this has seeped into the contents page. Is it possible to have a line ...
2
votes
1answer
68 views

A \par[] version of \linebreak[]

I like how \linebreak[] takes an number 1-4 as how insistent you are about breaking. There are some long paragraphs in my paper, and I'd like to add option paragraphs in the middle of them. I know ...
0
votes
0answers
48 views

Split an index entry between two lines

Is it possible to break an entry between two lines (the reference in a line and page number in another)? I have an index with long entries and I see that it never happens, something causing big white ...
1
vote
1answer
34 views

How can I enforce a line-break of DOIs in the references?

In my bibliography four items extend beyond the column width, three of them because of the DOI. I use biblatex. My MWE looks like this \documentclass[11pt,twoside]{report} \usepackage[url=false,...
2
votes
1answer
39 views

Automatically break a very large formula through multiple pages, using package `breqn`

I have a document which contains very large sets, consisting of hundreds of large numbers, which have to be represented as products of their prime factors. So I need to use dseries* environment of the ...
0
votes
0answers
25 views

xltabular error \newline

I am trying to build a table using xltabular. In all 3 columns, I need left aligned text. In my opinion, the manual of xltabular is not very well documented. I had a look at different topics over here,...
5
votes
1answer
97 views

Non-breaking \hspace in ConTeXt

The only non-breakable space command in ConTeXt that I know of is the tilde (~) command, but I'd like to have finer control over how long the non-breaking space will be. In LaTeX, I could accomplish ...
0
votes
1answer
60 views

random line break

I have a question. LaTex does a random line break betweenwenn and \[ [x,y] \in I\] in the penultimate line. Can someone tell me why and how I can fix it? Already tried \mbox{} and it doesn't work. \...
1
vote
0answers
56 views

Line break for URL clash with hyperref

I want to put a line break for the urls as it exceeds the page margin. I've refereed couple of posts on StackExhange but still it's not successful. The error for the following code says !LaTeX Error: ...
1
vote
0answers
58 views

Restrict text to part of beamer slide (trapezoid shape)

Previously I got help to insert images in my beamer slides here: Place image in background layer defined in frame. Now, I am trying to find some way to make sure the text does not cross the slanted ...
0
votes
1answer
358 views

Wrapping of long addresses when converting Markdown to PDF via pandoc

I have documents in markdown that are converted to PDF using pandoc, which relies on a latex engine to generate the output file. The documents contain long web addresses as well as directory and file ...
0
votes
2answers
62 views

Line break binoppenalty does not work

\documentclass[10pt]{book} \usepackage{tikz} \usepackage{graphicx} \usepackage{pgf,pgfplots} \usepackage[utf8]{inputenc} \usepackage[romanian]{babel} \usepackage[paperwidth=15.5cm, paperheight=23.5cm, ...
1
vote
1answer
35 views

Why is multline not splitting my equation?

I'd like a simple multiline environment that automatically breaks lines up to fit within the margins. I haven't decided on the end document style so I would like something that adapts well when ...
0
votes
0answers
41 views

Prevent line break before a specific character

I would ask if it is possible to set a global option to prevent line break before a specific character, in my case – (especially in the index). In my index formatted in a single paragraph I use – as ...
0
votes
0answers
38 views

PNAS template doesn't break reference list

(first post, please be kind, not familiar with local norms) I am using the latest pnas-new.cls and bst files, and use the standard \bibliography{mybib} before \end{document}. The references don't ...
3
votes
1answer
58 views

vim-t line split not working

I'm using context on my mac machine. I'm trying to wrap lines automatically using lines=split when defining vim typing, but it's not working. This is how I define vim typing at the very top of my ....
6
votes
3answers
196 views

Lua Latex: How to break a long line of elements of a set in inline mode?

I have a long listing of 2-uple elements like $A = \{ (1,2), (1,3), (1,5), (2,1), (2,2), (2,3), (1,2), (1,3), (1,5), (2,1), (2,2), (2,3),(1,2), (1,3), (1,5), (2,1), (2,2), (2,3),(1,2), (1,3), (1,5), (...
0
votes
1answer
60 views

List of Terms/Definitions Text off Page

new to TeX...Most of my document was provided to me as a template but there's something I can't get correct. Trying to make a list of definitions / terms, and on each line it should be like this: ...
1
vote
0answers
32 views

Redefining inline math, so it always proceeded by a non breaking space (~)

I don't like when inline math is typeset at the beginning of a new line. Is there a way to redefine the dollar sign so that Text text $i$. Text, $i$ text $i$ text. is automatically translated to ...
0
votes
2answers
237 views

Line breaks in really long sqrt expresssion

I am asking a question that has appeared many times on TeX StackExchange but none of the answers seem to work for my use case. I am trying to introduce line breaks, programmatically, into really ...
0
votes
1answer
72 views

Penalty after Rel, Bin, but not Punct

Considering the inline math mode, is there a conceptual or typographical reason, why TeX automatically puts a penalty after atoms of type Rel and Bin, but not after type Punct? One reason that comes ...
1
vote
2answers
23 views

Align text centered around (custom) symbol with linebreak

I want to align two text columns centered around one symbol. The following code is close to the solution, but still has a linebreak problem: \newcommand{\correspondsto}{\overset{\scriptscriptstyle\...
1
vote
2answers
61 views

Auto wrap broken words without hyphens, zero all stretch/shrink inter-word intra-word glues in fully justified paragraph

(1) Recently I have been researching a lot of fonts, have come across a range of type specimens where designers have deliberately disabled hyphenation (as a stylistic effect) while allowing words to ...
2
votes
1answer
63 views

line break so both lines have same width

I have a long string of text and it takes up more than one line. I want the line break to happen so that the first line and the second line have the same width. How do I do this? A very long line ...
1
vote
1answer
28 views

In Lyx lines go outside the page in the pdf file after choosing a larger font

I wanted to convert my lyx file into pdf but with a larger (than the default base) font size. I was told to go to Documents -> Settings -> Document Class and choose Article (Standard Class with ...
1
vote
1answer
60 views

Where to find documentation for XeTeX's line breaking behavior?

I am trying to find out more about how XeTeX implements line breaking for different languages using \XeTeXlinebreaklocale. From the XeTeX reference guide: \XeTeXlinebreaklocale⟨Locale ID⟩: ...
0
votes
1answer
39 views

End short line in fully-justified text

I want to end a line in justified text without having the line streched. Basically I want \linbreak to justify the one line it ends left. For this I dont want to use setparsizes (or similar) since I ...
5
votes
2answers
254 views

How to find out the number of lines in a paragraph for \hangafter

I want to have the last line in a paragraph be filled with an \hrulefill which sticks out 1cm to the right of the paragraph margin, like in this picture: To typeset the above, I used \hangindent and \...
1
vote
0answers
68 views

Is this possible for inline math line breaks: Have symbol duplicated on the next line?

In certain typographical conventions, it is customary to duplicate symbols of binary mathematical operators when a line break occurs. For instance, if a + b = c is broken at +, the result would be a + ...
0
votes
0answers
33 views

there is no line here to end how to introduce space of a line [duplicate]

I am having following code section Security Centre uses following technologies \newline \subsection{Intelligent threat intelligence} \newline It looks for bad actors by using I get error there is ...
39
votes
2answers
2k views

Typesetting curiosity: word change on one line does not affect how that line is set, but affects how the next line is set

The following two paragraphs differ only in that the first one uses "his" on the first line and the second one uses "her". \documentclass[12pt]{book} \RequirePackage[adobe-utopia]{mathdesign} \...
2
votes
1answer
31 views

Insert image with line-broken texts inside a table cell

I am able to insert an image in a table but I am having difficulties with the format adding text below the image. I don't want to use caption because I don't want to have "Figure x" showing up. ...
2
votes
1answer
39 views

How to break lines using conditions

How can I break a line for when the text exceeds the paragraph width? \noindent where \begin{conditions} \hspace{1cm}A & This text goes here over the paragraph and I would like to (so somewhere ...
0
votes
0answers
28 views

Long title with package Exercise.sty

I would like to know how to allow line break in the title of an exercice, using the package Exercice.sty. Indeed the code : \begin{Exercise}[ label={my_label}, title={My very long ...
1
vote
1answer
82 views

Why do my lines not break correctly?

I'm struggling with line breaks in my document and it seems to me that LaTeX is randomly deciding when to break correctly and when not. See the differences in the three blocks below. \documentclass[...
0
votes
0answers
50 views

revtex4-1 onecolumn: Remove the extra long blanks before/after eqnarray

In revtex4-1 onecolumn, I find the extra-long blanks (sentence breaks) before/after eqnarray, like this question: How to remove the extra long blanks before/after eqnarray? \documentclass[11pt, ...
0
votes
3answers
174 views

multiline text in tikz-rectangle [duplicate]

I am trying do use tikz to (re-)produce the followning figure: But it seems impossible to insert multiline text into a rectangle. I tried \newline, \\, and array without success. What else can be ...
0
votes
1answer
44 views

break an URL in the source file

I would like to break the url of the command \href{https://www.nature.com/nature-research/editorial-policies/reporting-standards#data} {policies} in the source file as follows: \href{...
1
vote
1answer
88 views

How to align the long state in algorithmicx [duplicate]

I want to reedit the algorithm in the paper. But the statement can not stay in the right place when I have a long state in algorithmicx. I want it aligned as the paper does. Is there any simple ...
2
votes
2answers
150 views

How to fit a line in latex?

\documentclass[a4paper, 12pt]{article} \usepackage{amsfonts} %\usepackage{amsbsy} \usepackage{amssymb} \usepackage{amsmath} \begin{document} Let $G$ be a $3$-coloured digraph. A subgraph $\mathrm{H}$...
1
vote
1answer
132 views

No new line after environments in block quotes for citation and quotation marks

My question is heavily related to this one: How to avoid citations being placed on a new line when \blockcquote ends with a list? I manged to adapt the solution proposed in the aforementioned ...
0
votes
0answers
47 views

Single Line Break in Latex to Single Line Break in Text? [duplicate]

This definitely seems like an answered question somewhere, but how can I make a single line break in the latex source code correspond to a line break in the text? For example, I'd like \...
3
votes
1answer
144 views

Two columns: automatic new line with compound words and inside equations

The two-column design works fine, but I encountered three problems: Every time I use a word that already has a hyphen (-) in it, LaTeX stops breaking the word with new hyphens to make it fit the ...
2
votes
3answers
140 views

Having trouble starting a new line with \mbox

Here is what I've tried so far \[\mbox{ \Large$ (1)(1)+2(1)+(-1)2+ \\ (-2)1+0(1)+(1)3+ \\ 1(2)+(-1)(1)+0(4) $} \] However, \\ is not working here. Can any genius get this done? The reason why I use ...
0
votes
1answer
51 views

Hyperlinks to headings with line breaks

I have a document with some long heading titles. I use \\ to create line breaks in these headings to have them fit my two column TOC as I please. The problem is that, when I use hyperref, within the ...

1 2 3
4
5
49