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

Preventing line break at dot in URL

I am using the url package in an article and am wrapping URLs in \url{ ... }. I have a footnote containing a long sentence of text that has the URL \url{https://github.com/moby/moby/blob/master/README....
0
votes
1answer
58 views

Is it possible to push long words to new line yet keeping the current line as justified text?

I want a document with justified text. However, there are some long words which are coming at the end of lines and are being pushed to the new lines and are being hyphenated. If I have spacing ...
1
vote
1answer
25 views

How do I ignore the titlesec package, and create a subsection without runin?

I'm using the titlesec package to have runin subsection titles. However, I only want this some of the time, and if I try to break the line with \ it either throws an error to adds some weird ...
4
votes
2answers
378 views

Why does \narrower not work in LaTeX as in plain TeX?

In the TeXbook (page 100), \narrower is described and the following example provided, which works fine in plain TeX. {\narrower\smallskip\noindent This paragraph will have narrower lines than the ...
2
votes
2answers
72 views

Adding line break to bibliography with long numerical doi

I am generating a publication list and have a problem about the line break in a bibentry, see below: I want the text to be aligned on the right edge and there should be a line break inserted among ...
0
votes
0answers
44 views

acronym line break misalignement issue

I'd like to ask if there's a way to do a linebreak, to split a line in the abbreviation itself (i want the short form to be on two lines), using acronym package. I think the code and an image will ...
0
votes
0answers
29 views

Biblatex is not performing linebreaks in certain situations [duplicate]

I use the Overleaf online environment in order to write my dissertation. However, I noticed that several of my references in the bibliography are exceeding the allowed text width causing an incorrect ...
2
votes
1answer
22 views

Single command at the beginning of my Latex document that induces linebreaks?

Currently I have to do something like this: In addition, the \linebreak knowledge retention rate of the students also increased by almost 12% when questions were reintroduced. Otherwise knowledge ...
2
votes
3answers
49 views

How to avoid linebreak after command and before period?

I use XeLaTeX with the memoir class to typeset my linguistics thesis. In the running text, I often mention prefixes, which have a following hyphen. For example: "un- is an inherited Germanic ...
1
vote
1answer
36 views

Is there a way to make page ranges non-breaking in BibLaTeX

Is there a way to prevent BibLaTeX from splitting page ranges over two lines automatically? I've noticed when editing my thesis's works cited that in a lot of cases BibLaTeX will split the page ranges ...
2
votes
1answer
42 views

How do I stop BibLaTeX from line breaking between the inital and the last name?

I've noticed BibLaTeX keeps putting linebreaks between authors initials and the last name. I would prefer these to stay together. When I do journal names I can manually specify J.~App.~Cryst. but ...
0
votes
0answers
23 views

How to fit long strings that goes out of page using lstlisting?

I am finishing my thesis in Overleaf and need to add an XML file in the appendix. I use lstlisting package. The problem is that the file contains strings with many characters and does not fit in the ...
0
votes
1answer
50 views

Forcing a line break in Inkscape's LaTeX output

I am using Inkscape, together with its LaTeX output feature, to create a block diagram for a report. I want to link each block in the diagram to a particular section in the report, using a hyperref. ...
2
votes
1answer
74 views

How to wrap Tamil words?

I have used this code. \documentclass[12pt]{book} \usepackage{fontspec} \setmainfont{Noto Sans Tamil} \begin{document} கௌரிப் பாட்டி பொறுமையாய் வெகு நேரம் பஸ்ஸிற்குள் நின்றிருந்தாள். ...
0
votes
2answers
46 views

Equation splitting in two column document - split goes towards second column instead of staying in first column

When I split a long equation using split or aligned in a document with two columns (through loading aistats2021 package), the splitted part goes towards second column instead of staying inside first ...
1
vote
1answer
35 views

Line-Breaking Around \clearpage

AFAIK, line-breaking around \begin{document}, \end{document}, or \begin{section} doesn't change the results as follows. \documentclass{article} % INSERTING OR DELETING THIS ...
2
votes
1answer
47 views

How to overflow/word-wrap numbers in table columns?

How do I word-wrap the numbers in my columns? Here I've got a tabular environment within a table environment (the latter for captions). Elsewhere I use longtabus without a table environment, and ...
2
votes
1answer
23 views

Blank line between equation and theorem statement

I need to end a paragraph with an equation before the statement of a theorem, but I get an unnecessary blank line. How can I remove it? Looks like the problem lies within the "thmtools" and &...
2
votes
2answers
106 views

How do I make DOIs in a bilbliography move to a new line if there is not room for it without breaking on the current line instead of breaking?

There are many questions about how to get URLs and DOIs in bibliographies to break properly. (This one seems like it should help, but I don't see how to use it. My DOIs are breaking correctly, but I'm ...
1
vote
2answers
42 views

No linebreak with \refKey (tcolorbox documentation library)

I currently try to document a LaTeX-package with several keys. When I use the internal tools of the tcolorbox documentation library, I get some ugly results. \documentclass{scrartcl} \usepackage{...
0
votes
0answers
53 views

How to make `itemize` behave like `enumerate`

The org document below generates a tex file that compiles as follows: *** 理性與情感的對立 **** Yang, X. (2006). A Moral Psychology without the Concept of Reason? History of Philosophy Quarterly, 23(4), 295–...
1
vote
0answers
26 views

Push \texttt in tcolorbox to a new line if it doesn't fit

So I use a colorbox with \texttt for inline code fragments, and as you can see from the picture below, the code fragments run off the page. What I would like is for the colorbox to appear on the next ...
1
vote
1answer
27 views

How can I get rid of these “Overfull \hbox (… too wide) in paragraph at lines 23--26”?

I have tried \hyphenation{every-where}, - and some more that I don't remember and none works. These are three sentences where I can three \hbox from \documentclass[12pt]{article} \usepackage[margin=...
0
votes
1answer
43 views

Automatically making spaces (preferably also hyphens) after 3-or-less-chars words non-breaking

In Polish and Czech typography short words should never be typeset at the end of a line, hyphenating a longer word is preferred instead. Sadly typing a NB space after every short word adds a lot of ...
2
votes
3answers
64 views

substack in multirow table gives error

I am using a multi-row table to display result. I want to break the table content text, for that, I am using substack but I keep getting an error \begin{table*} \small \centering \begin{tabular}{...
0
votes
1answer
40 views

How to split sum argument over several line. But the argument not the limits

I have an equation that involve sums of a big function F(i) over simple limits. So the limits are simple like from i=0 to i=N but the function F(i) to be summed over is so large that it not fit into a ...
2
votes
0answers
26 views

Limit number of consecutively hyphenated lines to a hard numerical value

Is there a way to limit the number of consecutive hyphenated lines to a fixed maximum value (say, at most 3 consecutive lines with hyphen) in (1) LaTeX and (2) LuaLaTeX? MWE: \documentclass[ngerman]{...
1
vote
2answers
29 views

Linebreak in multicolumn for column names in normal tabular environment

I saw many answers to this specific problem for tabularx-environment. But is it possible to split one column text in separate lines e.g. add a linebreak in a mulitcolumn in a tabular environment This ...
0
votes
1answer
57 views

Unwanted line breaks in threeparttable's tablenotes

I'm generally quite happy with the behavior of threeparttable, but there sometimes appears unwanted line breaks in the table notes even though I'm using the para option. For instance, in the below MWE,...
1
vote
0answers
30 views

Allow arbitrary linebreaks in href macros

I'm trying to have arbitrary line breaks in text created by Hyperref's \href macro. Actually, I found a solution for the \url macro here, but I don't know how to extend it to \href. A bit of context. ...
1
vote
1answer
33 views

Remove newlines between Authors, title and journal in bibliography using natbib

recently I had to change the layout of my document, and the new layout uses natbib. The issue that natbib is adding a line break between author's name, title and journal name. I'm not changing any ...
1
vote
1answer
21 views

Hyperref problem with ntheorem theoremstyle{break}

I'd like to use the package hyperref together with ntheorem and its option \theoremstyle{break}, because I want to separate the title of a theorem from the theorem's content. My problem is that the ...
0
votes
0answers
16 views

Line breaks when using tikz package {er,positioning} in simple entity-relationship diagram [duplicate]

The following code does exactly what I want, with the exception that I would like line breaking. Ideally, I want the numbers to appear under the word 'Thing' but there will be other text as well. The ...
0
votes
0answers
31 views

How can I globally prevent lines from overflowing

I'm using pandoc with xelatex and a custom template to generate a PDF document from markdown. Some parts of my document are overflowing on the right side, for example especially long paths that don't ...
1
vote
1answer
90 views

Mesomere structures are in one line

I'm trying to write the mesomeric structures of Phenetol. Here's a short form of the code: \documentclass[pstricks, a4paper, 14pt]{article} \usepackage{chemfig} \usepackage[version=4]{mhchem} \begin{...
0
votes
2answers
42 views

Getting \needspace to work in multicols

I have code that generates multiple lists of data in the form of XeLaTeX source. Because the lines of data are very short, I'm presenting it in a multicols environment. Each list has a few headings ...
1
vote
0answers
31 views

Generally suppress line breaking at hyphens followed by parentheses

It's not uncommon for me to typeset documents containing words such as "(semi-)automatic" (meaning "automatic or semi-automatic") or "(half-)hourly" (meaning "every ...
0
votes
1answer
55 views

LaTeX hyphenation and line breaking not working

I am unable to produce a simple text with hyphenated words and justified lines with PDFLatex. Here is a MWE \documentclass[12pt,openright,a4paper,twoside]{article} %\usepackage[utf8]{inputenc} %It ...
0
votes
0answers
21 views

How to eliminate vacant rows between references and IEEEbiography

I want to eliminate vacant rows between references and IEEEbiography. How can I control the rows? \bibliographystyle{IEEEtran} \bibliography{IEEEabrv, references} \begin{IEEEbiography} [{\...
1
vote
1answer
63 views

Fixing hbox overflow by breaking \href?

Similar to the URL problem: Forcing linebreaks in \url and URL latex linebreak My links do cause an hbox overflow. However, I have an \href with a local link. Can I force line breaks at any char there,...
0
votes
1answer
48 views

Word breaking from any point of the word for whole document or specifically for tables

I have a bunch of markdown tables such as this one below, and they're being converted into PDF using pandoc and a LaTeX PDF template. | Column1 ...
0
votes
0answers
67 views

Why isn't \newline or \\ working?

I am using a template to make my resume, I usually just use \newline or \\ to skip a line. However it isn't working here. My line is too long and it is overflowing the document, here is the code: \...
1
vote
1answer
26 views

line breaking in mbox environment

I'm writing a combinatorics resume for me so I need to write things like some number is equal to the number of objects satisfying some condition. In the way of this I tried \documentclass{article} \...
0
votes
1answer
25 views

Forcing a linebreak in itemize: Two-line bullets

This is hard to describe but I think the easiest way is to write out the TeX that I had hoped would work: \begin{itemize} \item[some text \\ more text] Here is some content for the first bullet that ...
2
votes
2answers
49 views

Place text one below the other or on the same row but with extra space - in a mathematical formula

I am running the following code \documentclass{article} \usepackage[T1]{fontenc} \usepackage{mathtools,siunitx} \usepackage{amsmath} \usepackage{xcolor} \title{test} \author{spanos.nikolaos } \date{...
1
vote
1answer
37 views

Enable line breaks in captions of theorem environment

Normally, captions of a theorem-like environment are not broken across lines, because they are put into the argument of \item by the default styles. If one has long captions and a narrow text width ...
0
votes
1answer
63 views

sagetex linebreak

When using the environment sagecommandline of sagetex with long number output, how can I get automatic line breaks? I already tried to change sagetex.sty (putting breaklines=true at several places), ...
1
vote
2answers
90 views

Add newline after every period in the document

Is there a way to make every period (dot) act like \newline command ? The only way I can think of now is to write shell-script to do it for me.
3
votes
1answer
46 views

Automatic line break in tabularx environment

I'm trying to get a table that automatically inserts a line-break so some very long text can fit in the cell, instead of overflowing to the margins like it's doing now. I tried with \makecell but didn'...
2
votes
2answers
109 views

How do I reproduce the numbered items in a Beamer list in text?

I wrote a theorem in beamer with \enumerate. Then I need to write "Idea of proof of 1", with "1" which should be written the same way it appears in the theorem, ie a blue dot with ...

1
2
3 4 5
49