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.

3
votes
2answers
58 views

Auto Detect Last Paragraph and Pass to Macro

The MWE below produces the desired results: via the \ProcessLastPara{} which applies a desired \parshape to the given (last) paragraph. Questions: The MWE below required me to manually identify ...
3
votes
1answer
30 views

Listings does not break at pure hyphen lines

I have the issue, that I need listings package to break at a hyphen (-). I will give a MWE below. According to https://tex.stackexchange.com/a/140725/7166 the hyphen is a character of type "other", ...
0
votes
1answer
27 views

Don't replace new line with space

Is there a way to prevent TeX from replacing new lines with spaces? This example text second example text results in this but what I want this Any help is greatly appreciated.
2
votes
0answers
48 views

Correct line breaking for Japanese using Babel

MWE \documentclass{article} \usepackage{xeCJK} \usepackage[japanese]{babel} \begin{document} \selectlanguage{japanese} 日本語をををををををををををををををををををををををををををかいぎょうします。 \end{document} In some ...
1
vote
2answers
40 views

Inline list: How to insert a non-stretching but line-breaking thin space?

This is a follow-up to How to insert a non-stretching but line-breaking thin space?, but in reference to an inline list. The MWE below attempts to use each of the solutions mentioned there, but the ...
5
votes
2answers
149 views

lettrines, explicit linebreaks and hanging indents

I need to combine lettrines, explicit linebreaks and hanging indents for whatever chunk of text ends up being longer than one typeset line. For the sake of semiautomatic text-production I'd very much ...
0
votes
2answers
35 views

Overfull hbox in a section title

Every now and then I get this error and I don't know how to solve it. From what I understand reading other posts, it's because LaTeX doesn't know how to hyphenate some sentences and finds no good way ...
2
votes
0answers
52 views

embrac package allows for line breaking immediately before closing parenthesis (closing parenthesis starts new line)

I have started using the embrac package and found that in some lines of my text the package allows for a line break between the last parenthetically enclosed character and the closing parenthesis; i.e....
1
vote
0answers
22 views

full justification not worked in tex studio [closed]

I want to write down this document in latex. It is a book type document. I am using this packages \documentclass[11pt]{book} \parindent0pt \parskip10pt \raggedright ...
0
votes
0answers
11 views

How to format only short (nonbreaking) footnotes in two columns?

This question yielded an answer on how to format footnotes in two columns. I would like to do the same, but also to span footnotes wider than the column width across both columns, so as never to ...
1
vote
1answer
32 views

Custom line-breaks in minted environment

I'm using the minted package for my code listings. I'd like to customize the line-breaks instead of using the breaklines option that does the line-breaking automatically. Unfortunately I haven't found ...
2
votes
1answer
35 views

How to set hard line breaks in Texstudio

I am using Texstudio in Ubuntu 18.04 as a Latex editor. I need to set hard line breaks. Can't find any way. The main issue I'm having is that in my editor, I see the soft line breaks (i..e., a new ...
0
votes
0answers
29 views

Listing, break line when displaying it in PDF, but paste is as one line after copying it from the PDF. Possible?

I am trying to display one long line of characters on a latex report using the listing package. I use breaklines=true to avoid the line going outside the margins of the page. My problem is that if I ...
0
votes
0answers
34 views

Underfull \hbox (badness 10000) message in Overleaf [duplicate]

I am new to this forum, please appologize, if the anwser is really already solved. I have found a similiar question e.g. Underfull \hbox (badness 10000) message, but the answers are not satisfying and ...
1
vote
1answer
32 views

Optimize space usage of paragraphs

I have sometimes encountered the problem in TeX, that a paragraph does not fit on one single page and is therefore splitted over two pages. This behavior makes of course sense. However, I noticed ...
0
votes
0answers
11 views

line-breaking behaviour changes after \subfile

In my document, the line-breaking behaviour changes, depending on the parts I have \subfiled before. I haven΄t been able to isolate it in a MWE to make it visible. If I compile a document that ...
4
votes
2answers
297 views

How to break the email-address in behind the @-symbol (scrlttr2)

I like to write a letter in latex, it all works fine so far, i just find that the sender information on the top rightis kind of "ugly". This results from the long email-address pushing the entire ...
1
vote
0answers
50 views

Insert LaTeX code at line break (follow up)

This is a follow-up question to David Carlisle's answer here (Insert LaTeX code at line break). In addition to glyph nodes, is there a way to insert (almost) arbitrary LaTeX commands with the help of ...
1
vote
1answer
17 views

Normal text should be separated from caption title

I need to know how normal text can be separated from caption title. \documentclass{article} \usepackage{amsmath,mathtools,amssymb,array,arydshln} \usepackage[german]{babel} \usepackage[latin1]{...
1
vote
1answer
19 views

Prevent line break caused by \part in article class

I'm trying to prevent the line break caused by the \part command. In a second step, I'd also like to get rid of the word 'Part' in the output. Hence, what I'd like to have is: I ABC But I'm stuck ...
2
votes
1answer
49 views

How to break a line inside a table cell and add text in the next column ONLY IN CERTAIN CASES?

I am quite new to LaTeX and I am making a wine menu. In some cases I need to add a price for a single glass and/or for a half-carafe... But ONLY in these cases, when such an option exists. I found ...
1
vote
1answer
21 views

Linebreak After Subsubsection Title in IEEEtran

I'm using the IEEEtran document class and want my subsubsection to have arabic numbering and a linebreak between the subsubsection title and the subsubsection body. I've achieved the arabic numbering ...
0
votes
0answers
20 views

automate non-breaking space between number and scientific unit

I am using LaTeX2e with MikTeX and would like to automate the insertion of a non-breaking space ~ between a number and scientific unit (e.g., 120 MW, 30 km, 10 degrees) when I am typing in normal text ...
2
votes
1answer
17 views

Biblatex - prohibit line break between first and last name of author

I am using a biblatex-gost package. Here is a MWE: \documentclass[12pt,a4paper]{article} \begin{filecontents}{\jobname.bib} @book{halanay, langid = {english}, title = {Differential Equations ...
2
votes
1answer
23 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
25 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
46 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
114 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
43 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_{...
3
votes
1answer
109 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
22 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
23 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
63 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} \...
3
votes
2answers
40 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
89 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
86 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
98 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
169 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
30 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
25 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
99 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-...
2
votes
2answers
43 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
57 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
39 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
34 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
33 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
36 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 ...