{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.
4
votes
2answers
184 views
References in margins `biblatex`
How can I use biblatex and not have the references run into the margins? I've seen some posts and solutions to this problem pertaining to URLs but I'm not using web links so it's a different problem. ...
2
votes
0answers
32 views
listings breaklines not working [duplicate]
Possible Duplicate:
How to deal with very long lines that do not contain spaces?
When I use the listings package with breaklines, it doesn't seem to break lines properly if there is no ...
4
votes
1answer
285 views
`pmatrix` line break
I wrote a matrix using the pmatrix environment.
The content is very long and LaTeX produces an output of the kind (the "a" line extending beyond \textwidth):
( aaa aaa aaa aaa aaa aaa + aaa aaa aaa )
...
3
votes
1answer
345 views
alltt package's \alltt{} makes a newline
alltt causes a line break (newline). How do i suppress this? I want something to the effect of \verb+HELLO+ in that it does what \begin{verbatim} \end{verbatim} does except doesn't cause the line to ...
6
votes
1answer
190 views
Penalty or badness for linebreak near start or end of sentence
I would like to set a penalty or badness for breaking a sentence (or the contents of some \command{...}) too early. More specifically, I would like the penalty of a line break to be dependent on the ...
1
vote
1answer
114 views
bibliography problem large spacing
@booklet{Ph4,
author = {Panchenko, D.},
title = {Statistics for Applications / Gamma Distribution},
year = {2006},
url = ...
2
votes
1answer
105 views
How to line break a siunitx unit
I made a new command for this unit:
\SI{#1(#3)e#2}{\KBE\per\gram\of{FM}}
But it is so bulky and it seems that latex can t handle the "normal" linebreak.
So, my new UNIT is sometimes over the normal ...
1
vote
2answers
62 views
Linebreak in math environment
I have an odd problem, I tried already all possible things, align, eqnarray, $, \[ \] and so on, but the following stays the same:
I have a formula inside text and it is not broken, so it goes into ...
6
votes
1answer
551 views
Beamer: effect of newline and hphantom
Why is it that the file
\documentclass{beamer}
\begin{document}
\begin{frame}
a\\
\hphantom{ }b
\end{frame}
\end{document}
produces an a and a b vertically aligned with a line skip in ...
0
votes
0answers
36 views
Verbatim environment — line breaking? [duplicate]
Possible Duplicate:
Verbatim environment and line-breaking
How do I make this two lines not overpass the page limit?
\documentclass[11pt,a4paper]{book}
\begin{document}
\begin{verbatim}
...
0
votes
0answers
29 views
How to avoid linebreak in the ToC? [duplicate]
Possible Duplicate:
Let title distinct in mainmatter and TOC and header
I use the book class, and I have a chapter title which is a little bit too long and thus I add a line break into the ...
1
vote
1answer
140 views
Placing several pictures in one line, but with linebreak
I am trying to plot several pictures in one line, but only two per line and then the next two in the next line. And I want it all to be in one Figure so that I have only one caption. I can place ...
15
votes
1answer
388 views
How to break long URLs using common hyphenation but adding a line feed indicator?
I saw several questions like this one that request a solution for breaking apart URLs.
I wonder if it is possible to hyphenate the words in a URL as it happens in normal text (i.e., breaking apart ...
11
votes
1answer
245 views
Is it a good practice if we always locally precede \href with \sloppy?
Is it a good practice if we always locally precede \href with \sloppy as follows?
if you are interested to know the details,
please contact me at {\sloppy
...
4
votes
1answer
177 views
listings: closing parenthesis as delimiter not matched when linebreaks=true
I want code in parentheses and in brackets to appear in different colors. In the following document, the words brackets again appear in green as intended, and outside again is black as intended, but ...
6
votes
1answer
371 views
Avoid putting statements on the same line with algorithmicx
I'm writing a simple pseudocode, but I have a problem with a repeat..until block.
Basically what happens is that the return statement that follows the end of this loop gets rendered on the same line ...
1
vote
0answers
73 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 ...
7
votes
2answers
167 views
How to deal with very long lstinline-phrases like long class names?
According to this Question:
listing: How to deal with very long lines that do not contain spaces?
My problem is that my \lstinline-phrases does not contain any special character like "-". In my ...
5
votes
2answers
90 views
Tie an inline math environment to be in the same line
How should I put command so that my inline math environment could be together.
For example 0<x<1 is break up into two parts, 0< and x<1 in the next line.
1
vote
1answer
260 views
list item multilined ( `\newline` inside of item label ?)
How to make multiline item label ?
Example
\documentclass[a4paper,10pt]{article}
\usepackage{lipsum}
\begin{document}
\begin{itemize}
\item[Great Item] \lipsum[1]
\end{itemize}
\end{document}
I ...
4
votes
1answer
99 views
\newcommand creates underfull\hbox (badness 10000) in paragraph
I have a 2-column document with repeating boxes.
So I created these macros (don't mind the colors and boxheight):
% -------------------------------------------------------
% aitparagraph
%
% gives ...
4
votes
1answer
164 views
Manually Break line in custom chapter title
\documentclass[openany, 10pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[MeX]{polski}
\usepackage{titleps}
\usepackage{lipsum}
\usepackage{tocloft}
\renewcommand\cftchapaftersnum{.}% adds dot ...
0
votes
1answer
97 views
Words don't wrap inside redefined \marginpar{}
I have tried to play with a MWE from @cmhughes in this topic, and discovered that words inside \marginpar do not wrap like they should. Here is a MWE:
...
6
votes
1answer
379 views
Adjust the indentation whithin the algorithmicx-package when a line is broken
I have this code
\documentclass{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{Minimal Working Example for my Problem}
...
8
votes
1answer
413 views
bibtex: URL and DOI line breaks on different characters
In my references, I want to allow DOI's to break on a slash '/' character (or as a last resort on any character) to avoid underfull lines like the third reference below. Note that URL's are already ...
5
votes
1answer
306 views
Automatic break/hyphen for too long meaningless words
Since there is no pattern for hyphening meaningless words, they should be individually hyphenated/broken with methods such as \hyphenation{longword}, \seqsplit{longword}, etc.
However, there should ...
7
votes
1answer
149 views
Allow line breaks but not page breaks in inline formulas
It often happens that LaTeX breaks up an inline formula over two lines. However, I find it quite distracting when it breaks an inline formula over multiple pages. For example:
...
2
votes
1answer
1k views
Vertical align at center in beamer slides using the [allowframebreaks] option and \newpage
I'm writing my thesis slides in beamer. I need to align vertically at center the slide's contents when I use the [allowframebreaks] option in the frame environment and the \newpage to start a new ...
2
votes
1answer
236 views
Background color in inline code listings with linebreak
I want to highlight code inline with a gray background. Preferably with listings.
This question is related to Colored background in inline listings.
But as my MWE shows it doesn't work with line ...
3
votes
1answer
172 views
correct the hyphenation
How to correct the hyphenation in my paper that is entirely wrong? For example, in my paper, there are wrong hyphenations like result-s, s-mall, s-pace, etc. How can I fix this problem. I don't use ...
8
votes
2answers
281 views
No hyphen for a word
I want to put pdflatex to not put a hyphen in a word went it comes to the end of the line.
I tried to put a \- in the beginning or the end of that word but it doesn't work.
For example if I put:This ...
5
votes
3answers
311 views
Break an inline math formula
I have a theorem that looks like this:
Now I would like to break the (A....D) math expression. The problem is, that nothing I did from the solution of this answer helped (since probably people will ...
22
votes
2answers
493 views
What is “\\” called?
I’ve seen it take arguments, and apparently there’s a starred version, but I can’t find any documentation because it is ungooglable!
2
votes
1answer
111 views
Listings not breaking up
I have a code listing as shown in the picture (number 4) that goes a bit out of the margin although breaklines=true. When I try to break new line it gives me an error Listings Error: lstinline ended ...
1
vote
1answer
105 views
Listings package does not break with mwrep document class
I cannot get listings package to break lines with any of the methods described in previous questions:
Listings package does not break, ...
5
votes
1answer
162 views
Automatic camel case breaking
Based on my old question Push long words in a new line, I search for a possibility to allow linebreak before a capital character in camel case terms.
For example the term ...
4
votes
3answers
275 views
Automatic linebreak on specific character
Based on my old question Push long words in a new line, I search for a possibility to allow linebreak on specific character.
For example in my case I want to break on "_" (underscore).
...
5
votes
1answer
81 views
Implicit newline at the end of each paragraph?
In certain styles of text I define \parindent 0pt in the preamble and write the text in this manner:
paragraph 1\\
paragraph 2\\
and so forth. I wonder if there is anything I can include in the ...
2
votes
1answer
348 views
quote exceeding quote right margins
I have a quote that displays long chains of words, such as
hippopotamus/hippo
The quote environment does not break words, so I have text exceeding the right margin of the quote. How can I ...
16
votes
1answer
408 views
Best choice between using \\ or leaving space after each paragraph to end the paragraph
Here is the thing, I have always used a blank space between paragraphs in order to tell latex that there is a new paragraph. But there is someone I work with very often that keeps using \\ to break a ...
7
votes
3answers
614 views
Alternative to \substack{} for a related purpose
I would like to write something like the following, but involves mathematical symbols:
I tried using the \substack{} but it makes the font smaller. I'd like a novel alternative to achieve this.
...
4
votes
1answer
193 views
Linebreaks in KOMA-script captions
Using the captions package, linebreaks can be incorporated into figure-captions easily:
\documentclass[12pt]{book}
\usepackage{graphicx}
\usepackage{caption}
\begin{document}
\begin{figure}[htbp]
...
4
votes
1answer
649 views
How to force latex to put a quote in one line?
I am currently writing a CV on LaTeX. I want to have a quote on the head of my modernCV, but latex puts ONE word into a second line. Can I make LaTeX put all the quote into one line?
...
17
votes
2answers
265 views
Could TeX typeset note text between two lines of the body?
How to typsetting the note text like
There is body blahblah blahblah I need a note here and then blah blah
The note about word
blahblah blahblah ...
8
votes
1answer
365 views
Listings package does not break
The following code does not break even though the breaklines and breakatwhitespace is set:
\lstset{
language=XML,
numbers=left,
numberstyle=\tiny\color{gray},
stepnumber=1, ...
10
votes
2answers
504 views
No indentation after empty line
Indentation can be selectively suppressed using \noindent or completely with the option parindent=full to the KOMA document classes. Books (fiction) are usually structured using paragraphs, indented ...
3
votes
1answer
81 views
Line breaking and floating
I have a matrix and I want to show some lines of text floating right to the matrix. The problem is that the following code shows two lines of text without executing \\ break-line.
\[ M = \left( ...
4
votes
1answer
177 views
Command \obeylines in a macro
I need to collect data (a sequence of input strings) in the preamble of a document, but the strings are to be typeset later in the document and must obey the line breaks set when typing the strings at ...
5
votes
1answer
397 views
Avoid line breaks after \lstinline
I'm writing a computer science paper with LaTeX and have a lot of inline code.
Now, when this code is followed by a comma and is at the end of line, the line break is inserted before the comma, which ...
5
votes
2answers
184 views
Text created with a \newcommand overflows into margin (not xspace question)
I am aware of the use of xspace to handle the space after a macro in different situations. However, it seems that I cannot avoid having my text created with a \newcommand from running into the ...

