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
2
votes
5answers
228 views

latex table: include '\n' in a table cell?

\begin{table} \begin{tabular}{l | l | c | c } Name & Hex & dezimal & C-char \\ <cr> & 0x0D & 13 & '\\r' \\ % should read '\r' <lf> ...
4
votes
2answers
394 views

split a long email adress at the “@”

In a document of mine I would like to give people the option of filling in their email adress. However, for some exceptionally long email adresses the text box can be larger than the tikzpicture node ...
2
votes
3answers
76 views

Ignore double \newline on page break

When I want two paragraphs of text to be separated by an empty line in between, I use: \newline \newline However, I would like that extra empty line to be ignored if it happens that the page breaks ...
0
votes
2answers
26 views

minted does not break lines based on breakbefore

I want minted to break lines after ".", so I use breakbefore=. and breakbytokenanywhere=true but minted still breaks the line before "." instead of after. What am I missing? \documentclass{article} \...
2
votes
2answers
36 views

Newline or line break in Tikz

So I am trying to follow this this link to break up the text in two lines. Here is my code: \documentclass[12pt]{article} \usepackage{float} \usepackage[margin=1in]{geometry} \usepackage{tikz} \...
1
vote
1answer
23 views

Linebreaking in tikz table

I want to have a line break in the text that I write inside a tikz table(example here A minimalist block in latex beamer). The latex code I have is: \documentclass[10pt]{beamer} \usepackage{...
1
vote
0answers
25 views

Custom table layout for variable description

What do I want to do I want to create a table for presenting a lot of variables in a clear way. Each class does get its own table containing up to one hundred variables, so the the table has to be ...
0
votes
0answers
22 views

bibitem doesn't assume line-break

I just started using thebibliography environment. It is not big deal so I decided to stay with this functionality, without using any .bib file. I am struggling with the following lines : \begin{...
3
votes
2answers
191 views

How to avoid this error defining a \newcommand?

I want to define this macro: \newcommand{stackonetwo}{\begin{smallmatrix} 1 \\ 2 \end{smallmatrix}} But I think the compiler doesn't like \\ inside the new command. It returns the error Missing ...
1
vote
2answers
70 views

Extremely LONG equation with large fraction

I am trying to type this extremely long equation without success. I got this result out of Mathematica and copied it. For some reason, the parentheses are not changing their shape according to the ...
0
votes
1answer
15 views

How do I indent after a line break command, in case the line before the line break is at least a certain length?

I want to an auto indentation after using the line break command, in case the line before the line break command has at least a certain lenght (in best case relative to my page width). Example: bla ...
0
votes
1answer
29 views

Add Unbreaking Space in BibLaTeX: `\setunit{\addunbreakingspace}`?

I use biblatex for my bibliographies. I have two items at the end, let's call them Y and Z. (The exact details of what these are is not important.) Currently I separate them with a space via \setunit{\...
0
votes
1answer
31 views

\medskip after every paragraph

After every paragraph I write, I use \medskip all the time e.g. \begin{document} test test test \medskip test test test \end{document} Is there a way to automate this so I don't need to type in \...
0
votes
0answers
42 views

Linebreak before a link

In German, abbreviations can be part of compound words that need to be hyphenated, like "Java-API". My problem is that when I write Java-\gls{api}, I never get a line break after the hyphen. I ...
1
vote
1answer
27 views

\newpage not working in article class

I'm having an error with my code but i don't know why. Please help me with this: \documentclass[12pt]{article} \usepackage[a4paper]{geometry} \usepackage{graphicx} \usepackage{booktabs} \usepackage[...
0
votes
0answers
32 views

How to automatically convert blank lines to something else

I want to convert blank lines to \\[0.2cm] automatically TextText Text TextTextText TextTextText Text Text is what i copy paste inside the document but i do not want any indent and a specific gap ...
1
vote
0answers
47 views

Overleaf editor automatically inserts an inconvenient line break in the middle of a word or sentence after apostrophes and accents

I have a problem which I believe to be linked to the Overleaf editor. I am writing a document in book format, in French. As I usually write articles in English, I copy here the beginning of the ...
1
vote
2answers
26 views

Long footnote stretches out width of columns

I'm new to LaTeX and ran into a problem with formatting my table. I would like to have a long footnote underneath the table that starts a new line as soon as it reaches the border of the last column ...
0
votes
0answers
35 views

Long word didn't hyphenate

I'm sure it would be quite easy to answer it but currently, I'm sorry that I couldn't to do that, I'm using beamer packages are given below there is a word that used "demonstrated" I'm trying to break ...
0
votes
0answers
33 views

How to format the output for an bibliographic entry?

I would like my References to be formatted as the following: Author(s) Title Journal ref, or publishers information Doi or/& ISBN Year How could I do that? I am using BibTeX with natbib. Sorry ...
0
votes
0answers
26 views

How to break lines in your citation using Bibtex?

I've been having problems with LaTeX not automatically breaking the line (specifically for contents of the title field in entries of type @book) in my bibliography. I have tried everything to fix this ...
2
votes
3answers
100 views

How (!)within the same paragraph(!) to have places where lines are allowed to be too wide and places where lines are not allowed to be too wide?

Assume you have \macroA in a way where \macroA{⟨TeX number-quantity denoting amount⟩} produces an amount of characters A. Assume you have \macroB in a way where \macroB{⟨TeX ...
0
votes
0answers
15 views

IEEEtran conference template author section: space, font and line breaking

I am using the IEEE conference template in Overleaf. https://www.overleaf.com/latex/templates/ieee-conference-template-example/nsncsyjfmpxy I got a few problems setting the author section. The space ...
0
votes
0answers
13 views

How doing line breaks in \lstinlines?

\documentclass[12pt,a4paper]{scrartcl} % scrartcl ist eine abgeleitete Artikel-Klasse im Koma-Skript % zur Kontrolle des Umbruchs Klassenoption draft verwenden % die folgenden Packete erlauben den ...
1
vote
0answers
16 views

Improving line-breaks in full-width index

I'm struggling to get an index to line-break appropriately. I have a custom package with several classes that I use write court pleadings and other legal documents. However, I semi-regularly have ...
0
votes
1answer
33 views

How to display JavaScript and HTML code in latex

I am trying to insert sections of HTML and JavaScript code in my latex document in overleaf but the lstlisting does not work as my code spans longer than the page width. I have tried various different ...
0
votes
0answers
13 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
33 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
36 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
51 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
120 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
18 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
59 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
21 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
26 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
30 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
16 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,...
4
votes
1answer
58 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
36 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
35 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
32 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
18 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
28 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
33 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
35 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
14 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
50 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
156 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
36 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
27 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 ...

1
2 3 4 5
47