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

learn more… | top users | synonyms (1)

7
votes
0answers
45 views

Obtain \badness or glue adjustment for each line

This might be interesting for perfectionists and/or fastidious typesetters who would like to improve the document even further (beyond the beyond the magnificence of a book with zero bad boxes). We ...
5
votes
0answers
403 views

break lines in minted code

Thanks to this question minted is able to break long source code lines. It is working really fantastic, except in one case: When already indented code gets breaked into two lines, than line two gets ...
5
votes
0answers
295 views

Myanmar (Burmese) line breaking with XeLaTeX

I am having trouble getting Myanmar text to break at the end of lines properly. The previous question How do I wrap text that doesn't use SPACE character to segment word would appear to solve my ...
4
votes
0answers
213 views

How to line-break cites correctly (hanging-over problem)?

while using Bibtex, I experienced an frustrating issue with line-breaks on cites in my block text. I have chosen to use the following bibtex implementation: \bibliographystyle{plain} ...
4
votes
0answers
126 views

Preventing line break at the start of a long name in `\lstinline`

This question has developed from How to deal with very long lstinline-phrases like long class names?. That question is about line breaking inside a \lstinline phrase. I have provided an answer which ...
3
votes
0answers
89 views

Ugly linebreak in texniccenter

After the update some weeks ago to the new version of the texniccenter editor, the linebreaks have become very ugly. For instance, if ''... is positive.'' does not fit in the line, then before it ...
2
votes
0answers
87 views

How to make a line break in a TikZ matrix cell?

Can I use TikZ's own tools to make a line break in the matrix cells or do I have to use a tabular-environment or a \parbox? MWE (doesn't work, I included the faulty code) \documentclass[ 11pt ...
2
votes
0answers
122 views

How can I line-break a long string of numeric digits and hyphens?

I have a cls file that contains a definition for source code: \lstnewenvironment{code}[1][] { \lstset{ basicstyle=\ttfamily\footnotesize, breaklines=true, ...
1
vote
0answers
21 views

no new lines in lyx output from the latex code insertion

\begin{widetext} \begin{displaymath} a+b=c;\\ d+e = f;\\ e+m = n;\\ \end{displaymath} \end{widetext} I am using the above code as an inserted Tex Code in Lyx ...
1
vote
0answers
41 views

Line breaking in math mode

Under default settings a line can be broken in math mode after binary operator with \binoppenalty or after relation with \relpenalty. I'd like to preserve this behavior but alter the result so the ...
1
vote
0answers
66 views

How to respect 80-character limit per line of text in source code

Suppose I have a long line of italicized text in a report or other document. If it is more than 80 characters long, I may want to move everything after the 79th column position to the next line in ...
1
vote
0answers
37 views

Text moving outside of justification margins

Apologies if the title is incorrect, but I'm not entirely sure how to describe the issue I am having. Please see the image below for clarification. The text should be justified, but in random spots of ...
1
vote
0answers
48 views

Extremely long equations giving overfull hbox

I am using wxMaxima for doing homework. I have extremely long mathematical equations. I exported my work to a .tex file. But now I have several overfull bad box warnings. I tried to use geometry ...
1
vote
0answers
57 views

Line break long chemical names that contain brackets

I have some very long chemical names that are spilling into the margins, and I'd like to just tell LaTeX how to hyphenate them automatically so I don't have to manually go back and insert hard line ...
1
vote
0answers
82 views

Spacing between single line paragraph with lettrine

I'm having the following problem with lettrines and paragraph with a single line : \lettrine[lines=2, loversize=0.15, findent=1em, nindent=0em ]{1}{}% First step. \lettrine[lines=2, loversize=0.15, ...
1
vote
0answers
100 views

Alternative for `\linebreak` in inline math mode

Looking at this question and the chat that followed it, I was wondering what would be considered best practise to include line breaks in inline math mode (breqn does not quite work; there's some ...
1
vote
0answers
52 views

How to force a newline after subsection?

I am trying to force a newline after subsection. How can i do that? I am using conference documentclass. Instead of 1. Subsection: This is a boy i want 1. Subsection This is a boy
1
vote
0answers
211 views

mdframed - eliminating newline and top/bottom space /margins

I'm totally new to (La)TeX, but trying to learn to become more independent. So I'm writing a document which includes periodical revisions that need to be marked in a specific way (a thick black ...
1
vote
0answers
63 views

Extra spacing before an equation when line nearly breaks

I am having difficulty with producing an MWE, but let me describe the issue. I have a large document with tons of equations and run into issues with spacing. Most of the time it is fine, everything ...
1
vote
0answers
51 views

suspended hyphen without linebreak between word and hyphen

I have a word combination like this metallo-porphyrins and -phthalocyanines which eventually gives a linebreak between the hyphen and the word phthalocyanines. I tried to include the ngerman package ...
1
vote
0answers
85 views

why changing page margins using geometry package causes bad math inline break?

I had no idea that changing page margin size can cause problems with line break with in-line math. I have this MWE that shows one problem. I like to make the page margins smaller, so I can fit more ...
1
vote
0answers
82 views

How to set word wrap for enumerate items in booklet?

The code below is based on the code from booklet manual Chapter 2. I used the enumerate environment. The problem is that words are stretching out of the paper. It won't break line automatically: I ...
0
votes
0answers
17 views

How do I use \StrSubstitute for a custom environment containing custom commands (Use of \@xs@StrSubstitute@@ doesn't match its definition)

This might be a tricky one... I have a custom command which highlights "properties" \pdesc{Property name}{DE}{EN}. Depending on the language (determined using the jobname), either the DE or EN ...
0
votes
0answers
60 views

Overfull in option of thm when using “showkey” usepackage

I have a problem when using the showkeys uspackage, I get overfull in the option of the thm statement. and when I remove the showkeys it breaks automatically. I do not know the error might comes from ...
0
votes
0answers
34 views

AucTeX turn off line breaks

In AucTeX I do not want line breaks to appear when I open the .tex with a different editor e.g. on writeLaTeX. I want lines to appear as if they are broken, so I can see everything in the default 80 ...
0
votes
0answers
42 views

italic doesn't admit line break latex

I am really new in Latex, I have the problem with italic, when I am using \emph{.} to make words italic, it doesnt admit to line break: How can I use this problem? UPDATE könnten in vier ...
0
votes
0answers
110 views

How to make two line apex

I'd like to split the apex in two lines. I'm commenting a part of an equation with \overbrace and I need to split the comment in two line because it is too long. $$ x = \overbrace{y}^{very big ...
0
votes
0answers
234 views

How can I use natbib and make my reference list resemble apalike?

My question is related to here and here, but I could not yet find a satisfying answer. I will use the same example from this post. I like the apalike reference style but I have trouble with breaking ...
0
votes
0answers
108 views

Line-breaking long cell contents when using longtable through datatool

I'm trying to display a table loaded from a CSV file and displaying it like this: \DTLloadrawdb[]{myDB}{myDB.csv} \DTLdisplaylongdb[% caption={myDB caption},% label={tab:myDB},% ...
0
votes
0answers
134 views

Detect a newline after dollar $ sign

I would like to be able to use \ifnextchar to check if the next character is a new line character. The reason is that I would like to redefine the $ sign to behave differently if it is followed by a ...
0
votes
0answers
84 views

inline listing (lstinline) behaves bad at line end

I have defined some small macro to markup function names: \lstdefinestyle{inline-funcname}{ columns=fullflexible, breaklines=false, %Note: \usefont{OML}{cmm}{m}{it} is exactly like ...