{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.
7
votes
1answer
678 views
Line length in fancyvrb
What I'm doing: Typsetting source code using pygments.
What is happening: the code typsets fine, but because pygments puts the code into a Verbatim environment, some of the lines are far too long.
...
6
votes
3answers
152 views
How to place a line break between every character in ConTeXt?
I have some text appearing in a macro, like this:
\printascolumn{This is some text.}
How can I place a line break between each letter or printed symbol, such that it appears like this?
T
h
i
s
i
...
6
votes
4answers
1k views
Something like \raisebox that respects line breaks
If one wants to raise some text one uses something like
\raisebox{0.5 em}{some text}
However this doesn't respect line breaks and may cause some nasty overflows.
Is there a way to have \raisebox ...
6
votes
2answers
2k views
paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?
I want to format paragraph to work as a regular title
\paragraph{title} text goes here
output of that is:
title text goes here
how can I change the output to force line break and use the usal ...
6
votes
1answer
267 views
Is there an alternative to LaTeX which isn't whitespace sensitive?
I have been using LaTeX for about a year now, and I quite like it.
However, I like to space out my source code. In most languages, this doesn't cause an issue,
as extra newlines don't affect meaning.
...
6
votes
4answers
564 views
Splitting very big numbers over several lines [duplicate]
Possible Duplicate:
Wrapping long lines that contain no spaces
I'm writing a report (in LaTeX) in cryptology and I have to work with very large numbers.
I want those big numbers to be on ...
6
votes
2answers
2k views
How do I keep a string of text together without it doing a line break?
I'm writing up a long paper, in which in prose I have various equations. However, I do not want a line break to occur within the equation - I want the equation to stick together. I want to do this ...
6
votes
3answers
5k views
Newline in a table cell which is centered
This question may look like a duplicate but, none of the answers given to the possible duplicates contain the answer to this specific case.
I have a tabular, say \begin{tabular}{ccc}. While adding a ...
6
votes
2answers
124 views
smarter hyphenation for narrow columns?
I know how to turn off hyphenation via \nohyphens{.....} (from hyphenat). But what I'd really like would be to hyphenate smartly. What I mean by this should hopefully be made clear by the following ...
6
votes
3answers
376 views
lualatex and line breaks after em-dashes
I’ve just installed TeX Live 2012. As mentioned elsewhere on this site, the release history explains that “the parameter \XeTeXdashbreakstate is set to 1 by default, for both xetex and xelatex. This ...
6
votes
1answer
77 views
How to write text within \begin{verbatim} and \end{verbatim} in same line?
I am stuck on the following problem and don't know how to solve it.
Here is my problem :
\documentclass{article}
\begin{document}
\begin{verbatim}'\hfill\end{verbatim} MKS' which puts the word ...
6
votes
2answers
278 views
latex tabular issue
I am creating a tabular in LaTeX.
I want one column to be as small as possible, with no inter column spacing, so that it's just enough to fit the text. I know the answer to this question: I need to ...
6
votes
2answers
1k views
Fixing an overfull box
I have an overfull box in a French text which looks like this:
The sequence at the end of the line is:
d'Ananias~: \og Vous
"Vous" cannot be hyphenated and \og inserts a non-secable space, so ...
6
votes
1answer
263 views
How does LaTeX make line-breaking for word that can not fit in cell?
Often in my tables LaTeX doesn't want to line-break a word that can not fit in a cell.
How I can teach it to split such a word?
As you can see in my example below the same word in some cases will be ...
6
votes
3answers
7k views
Tabular, parbox, vertical alignment
What i want to achieve is really simple:
I want to be able to align cell content at the top (which is the default behavior of tabular) while being able to manually break lines (and anything you could ...
6
votes
2answers
75 views
How can I get a very wide table to wrap all three rows within the margins?
I have a series of tables that are going to be very (very!) wide, but with only 3 rows. Is there any way I can get the tables to wrap within my margins, without having to break the rows within the ...
6
votes
2answers
213 views
Forcing math mode to be on the same line
I would like to have math mode expressions in dollar signs always to stay on the same line, which is what happens to a sequence of characters with no spaces while not in math mode. Is there a way to ...
6
votes
1answer
237 views
How do I manually break a line in a custom title?
I'm using my university's LaTeX class package to write my thesis, but I'm running into an issue with line breaks in the title. I'm required to break my title manually in a certain spot, but the ...
6
votes
1answer
595 views
Avoid line break between em-dash and the next word
I'm writing a text in spanish, and I have a phrase wrote between em-dashes (that work like parentheses). The problem is that if the "opening" em-dash is too near the end of the line, then it may ...
6
votes
2answers
864 views
Section titles, hyphenation, manual line breaks - and how to avoid them
I have several section titles in my document that are getting hyphenated, which is quite ugly.
I am now looking for some way to avoid the hyphenation, which is is somewhat related to this question, ...
6
votes
2answers
95 views
Custom verbatim that sets all spaces (“ ”) as visible spaces (“␣”) that can line-break
It makes sense to typeset code in a monospaced font. Sometimes such code needs to be embedded in a paragraph context, and then it will be useful to allow it to linebreak. In order to visualize spaces ...
6
votes
1answer
104 views
Breaking equation in align enviroment to put textwidth matrix in separate line
I have to put a textwidth pmatrix into an align environment. When using split, it destroys the centered alignment of the other equation.
Pseudocode:
\begin{align}
\vec{a} &= \vec{b} + \vec{c} ...
6
votes
1answer
72 views
count the newlines in title
I am trying to automatically adjust the title page to get a pleasing result independent of the title size. This means that I have to count the number of line breaks in an argument.
My MWE (not very ...
6
votes
2answers
361 views
Overfull \hbox from printindex
I've got a index generated with makeindex but when compiling the file again, when the index is generated, I get a bunch of overfull \hbox.
This is an example of an index that results in overfull:
...
6
votes
2answers
235 views
Environment to allow line breaks at `,` in math mode
I find the question and accepted answer to Allowing line break at ',' in inline math mode? very useful, BUT I would like to make an environment (e.g. "allowbreaks"} out of it. The problem is that I'm ...
6
votes
1answer
1k views
How to break long url in an item
I have an enumerate. In an item I have a long url. I use the package breakurl and it works fine outside the enumerate but not in the item.
\usepackage[margin=3cm]{geometry}
\usepackage{hyperref}
...
6
votes
1answer
924 views
line break inside cases environment
I have an equation using a cases environment, with one case with a long description text:
\begin{eqnarray*}
\begin{cases}
1 \text{too long description of the first case,
not ...
6
votes
1answer
372 views
How to remove the extra line?
I use this command to show the headword in dictionary.
\newcommand{\entry}[2]{\hangpara{2em}{1}\textsf{\textbf{#1}}\ #2 \markboth{#1}{#1}\par}\nopagebreak[4]
When the headword is exactly as long as ...
6
votes
1answer
1k views
How can I prevent hyphenation in a table column?
I have a table (tabular) with some fixed width columns, and I'd like to prevent a hyphen being inserted (preferring a line break to be inserted prematurely).
The sample table's content is below.
...
6
votes
1answer
93 views
Yet another overfull \hbox question
Consider the following example:
\documentclass[a4paper,11pt]{article}
\usepackage{showframe}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor ...
6
votes
4answers
313 views
Within a single paragraph, hang a wrapped line, but do not hang new lines
I'm writing a list, and would like the line hanging to work like this
I do not want to use separate paragraphs for each item in the list, and I do not want to use the list environments; I will be ...
6
votes
2answers
356 views
Can I put a line break in \pgftext?
Simple question: I'm making a picture with PGF (basic layer, not TikZ) and I would like to add some text using \pgftext. The problem is that any \\ or \newline line breaks within the text are ...
6
votes
1answer
205 views
Biblatex breakline Doi
I'm using the XeTeX with BibLaTeX and biber.
That's the line:
\usepackage[backend=biber, citestyle=authoryear-ibid, bibstyle=authortitle-ibid]{biblatex}
It's working fine but I'e just get one ...
6
votes
1answer
59 views
How to carry long text of \href to the next line while ocgcolorlinks is present?
This simplest code
\documentclass[a4paper]{book}
\usepackage[ocgcolorlinks]{hyperref}
\begin{document}
\href{"some URL"}{"long text"}
\end{document}
by compiling with pdflatex puts the "long ...
6
votes
1answer
90 views
en-dash with half-sized space on either the left or the right
I am looking to produce directional variants of the en-dash. A "left en-dash" should have half of ordinary inter-word spacing on its right and allow line-breaks only on its left; a "right en-dash" ...
6
votes
1answer
188 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 ...
6
votes
1answer
536 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 ...
6
votes
1answer
478 views
Emergency stretch hook
Is there a way to automatically set parameters when emergency stretch is required?
Here is my situation. After I implemented the solution chosen for unbreakable spaces in Bible verse references, I ...
6
votes
1answer
1k views
Optional but encouraged line break + \hfill
How would I write a macro (to be placed immediately before every URL in a bibliography) whose effect is to tell TeX
This is a good place to insert a line break, but breaking the line here is not ...
6
votes
1answer
152 views
Shipout line like Shipout page
In lineno package guide, I found:
Attaching line numbers after TeX has broken the paragraph into lines
is already quite a difficult job for TeX. Why? Because TeX does not
normally give you any ...
6
votes
1answer
144 views
Append character at autobreaks in listing
I'm writing a LaTeX document for a hands-on workshop which uses shell/bash commands. I'm making use of the listings package to format the chunks of code.
Some of the commands are rather long so I'm ...
6
votes
1answer
361 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}
...
6
votes
1answer
122 views
Hyphenation on next-to-last line
On the next-to-last line of a paragraph, I have some hyphenation and on the last line, I only have the end of the word.
blablabla cou-
cou.
New paragraph
I thought the command \finalhyphendemerits ...
6
votes
2answers
409 views
In listings, lines that are broken (option breaklines enabled) cause frame to be drawn badly. How do you fix this?
I have an lstlisting which has breaklines and frame enabled. The actual setting is as follows.
\lstset{
basicstyle=\ttfamily,
showstringspaces=false,
breaklines=true,
keywordstyle={},
...
6
votes
2answers
1k views
Linebreak in Package algorithm2e
I'm using the algorithm2e package for pseudocode. I got some very long lines that needed to be wrapped. Is there a way to indent the following (breaked) lines and/or put a mark at the first line to ...
6
votes
1answer
1k views
Biblatex: Removing underlining of journal title and enabling line break of it
I'd like to use authoryear-comp for my bibliography. However, I'd like to suppress underlining the journal title that seems to be set default.
Also, I got the problem that a line break is not ...
6
votes
1answer
347 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 ...
6
votes
1answer
939 views
Breaking an array of equations
I wanted to break long equations in an array environment. To do this, I used dmath environment from breqn package but it did not work. How can I write long equations in an array environment with line ...
6
votes
1answer
347 views
\input only part of a file using catchfilebetweentags package
I would like to include only a part of a .tex file into a different .tex file. The part I want to include is delimited by some comment tags, as it is used by catchfilebetweentags package.
I tried the ...
6
votes
1answer
170 views
How do I get multiple ToC entries in the same line?
I need that, in the ToC, all the \paragraph references appear in the same line, like.
1 First Chapter................................................1
1.1 First ...


