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

learn more… | top users | synonyms (1)

6
votes
1answer
503 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. ...
3
votes
1answer
196 views

Discretionary equation breaking at a particular symbol

I have long equations that I want LaTeX to break automatically. After some extensive searching I have been unable to work out how to achieve this effect. I have breqn in my package list, however it ...
2
votes
1answer
103 views

Is it possible to break the following aligned?

I don't want to use the displayed math environment for which \allowdisplaybreak is designed. Shortly speaking, is it possible to break the following alined by defining something like ...
2
votes
1answer
148 views

Linebreak without justification if remaining Text doesn't fit [duplicate]

I have a text (justified block paragraph) with an author attribution. If the last line of the text has enough space left to fit the author attribution and some space, then it should be put into that ...
11
votes
3answers
344 views

How to generate non-blanks between words?

In an otherwise-vanilla latex doc, I have a long list of strings that I need separated by <space> <cdot> <space>. The output needs to look like: Lorem <cdot> ipsum ...
5
votes
1answer
4k views

How can I fix this overfull hbox?

\documentclass[10pt]{article} \usepackage{chemfig} \usepackage[margin=1.2in]{geometry} \newcommand{\chem}{\setatomsep{2em}\chemfig} \begin{document} \begin{itemize} \item[--] 1$^\circ$ Alcohol ...
2
votes
1answer
593 views

Prevent words such as 'the' from appearing at the end of the line

I write my document in Latex for Mac and I don't know how to prevent Latex from putting 'the' and similar short words at the end of the line. I already tried impnattypo and encxvlna packages, but none ...
5
votes
1answer
738 views

Chemfig new line reaction scheme

I just recently started using LaTeX and chemfig and have a question in regard with making a new line in the text below or above the reaction arrow. I am trying to place MW, 160C, 5min under Na2CO3, ...
1
vote
1answer
518 views

How to add equation with cases inside the table

I want to include the complicated equation into one of the cells of my table. I am using tabular environment, additionally I have some multirows. I would like to add something like this: ...
5
votes
1answer
76 views

Spaces in references

I have the following reference : @misc{pcons, author = {Energy.Gov}, title = {{Estimating Appliance and Home Electronic Energy Use}}, Howpublished = ...
7
votes
1answer
1k views

How to create a table with merged columns and rows, and wrapped text, like in MS Word?

The above can easily be created in MS word, but how can I create something like this in latex? Basically changing the columns for specific cells, merging a bunch of cells together, wrapping text in ...
6
votes
1answer
591 views

Overfull \hbox caused by em-dash

There is one problem that currently seems insolvable to me. I am typesetting a book in Russian language and I noticed that, in some cases, an overfull box appears which cannot be solved via manual ...
4
votes
1answer
1k views

Why hyperref doesn't break links when using \href but it does when using \url ? Bibtex entries in the middle of a document?

I encountered the following problem while preparing my CV. There are a few links prepared by hyperref that are not broken in several lines. I am wondering if there is a way to fix this problem. This ...
15
votes
4answers
3k views

Splitting root symbol

How can the \sqrt command be modified to split root symbol into two or more lines automatically? Example: \documentclass{standalone} \begin{document} \begin{minipage}[t]{0.8\textwidth} ...
1
vote
1answer
645 views

New paragraph without \newline?

I am writing on a larger text and sometimes I want to begin a new paragraph. So I don't want to have a new heading, just a space for visiual reasons. Currently I use the solution with \\ \newline For ...
4
votes
1answer
84 views

Specify number of columns in brqalign

Some time ago David Carlisle wrote an awesome brqalign function in this answer: http://tex.stackexchange.com/a/51543/4011. See the cited code below. How to modify the brqalign environment such that ...
1
vote
1answer
382 views

Force DOI on a newline in reference list

I'm using biblatex for my citations (using xelatex). This is the relevant code to invoke the reference list: \usepackage[backend=biber, style=authoryear, doi=true, firstinits=true, ...
2
votes
2answers
186 views

Some text lines are longer than the rest of the column

Some text lines are not wrapped correctly and they are longer than the rest of the column. How to solve this? Here a MWE: \documentclass{acm_proc_article-sp} \begin{document} PTX source modules have ...
2
votes
1answer
4k views

Line return/spacing after \hrulefill

I'm new to LaTeX and am trying to make a simple resume. I'd like my left-justified name to appear above an \hrulefill line followed by my right-justified address on the next line. However, when I do ...
9
votes
3answers
187 views

How to typeset Tibetan in XeLatex with correct linebreaks?

I am trying to typeset Tibetan language in a document, but the text does not wrap at the margin. I think this could be easily fixed if I tell XeLaTeX to recognise the Tibetan tsheg character ('TIBETAN ...
7
votes
2answers
546 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 ...
2
votes
2answers
309 views

Breaking a long math expression

I am trying to type long expression by using parenthesis inserting some sentences, as an example I have a expression like product of \documentclass{12 pt}{article} \begin{document} \begin{multline} ...
10
votes
2answers
9k views

\hspace is not working after \newline command

I am currently working on my thesis report and would like to add affirmation to it. Following is the minimal code for the same : \documentclass[]{article} \begin{document} \section*{Affirmation} ...
5
votes
2answers
1k views

Correct line-breaking of long math expression

What is the correct way of breaking such unnumbered equation into multiple lines? \begin{equation*} \lim_{\bigtriangleup t \to 0^+}\int_{\bigtriangleup t}^{T} \! \int_{\Omega} \! D(t_1,x) ...
3
votes
1answer
277 views

Inline equation doesn't fit in page

I have an inline equation that I don't want to split in lines. If I use foo bar foo bar foo bar foo bar foo bar foo bar foo bar ${ B = A \cap \{ T \leq n \} }$ It doesn't fit in the page's width ...
5
votes
1answer
235 views

How to align this long equation which out put from Mathematica

I use Mathematica, and use the command TeXForm from Mathematica, I get \{\{x\to -19,y\to 4,z\to 11,t\to -14,m\to 11,n\to 19\},\{x\to -19,y\to 4,z\to 11,t\to 19,m\to 11,n\to ...
14
votes
2answers
3k views

How can I really force the hyphenation points of a word?

I try to make XeLaTeX hyphenate the German word "Sicherheitsbeauftragter". I tried several values for x in \tolerance=x and instances of \hyphenation{Si-cher-heits-be-auf-trag-ter}. Nothing worked. ...
5
votes
2answers
5k views

How to get line-breaking / multirow to work in the caption of my beginner's table?

How to get line-breaking / multirow to work in the caption of my beginner's table? \caption{this is my first table's captive caption} I'd like the caption to look sth like this: this is my ...
1
vote
1answer
717 views

How to get line-breaking / multirow to work in my beginner's table?

I can't seem to get the multirow or pbox to give me a line break (of "automatic" width). The following won't compile successfully: note the two variations in the "TOTALLY" line. How can I fix it? ...
1
vote
1answer
364 views

Algorithm code width problem

I have a problem in the width of the algorithm which I wrote as shown below, and I need to write it in a better way but I can't, any help? This is my code: \begin{algorithmic} \WHILE{$GenC[i] ...
4
votes
1answer
122 views

\url wrapping extends into marginal notes space

This is a slightly odd one. I've been trying to get \url{} blocks to wrap really long URLs, and the only thing that seemed to work was to renew the \UrlBreaks command to allow breaking on practically ...
7
votes
1answer
552 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
2k views

Biblatex: URL-breaking not working in DVI-mode

I'm preparing my bibliography and noticed that biblatex-printbibliography produces Overfull \hbox several times. Examples (gray lines indicates text margins, red line is the physical page margin): ...
4
votes
2answers
1k views

How to typeset a backslash and get line breaks in URLs?

I have a lot of Windows file/folder paths and register paths in my document. And I'm having 2 problems: The \ is seen as and escape character which obviously doesn't compile. \\ Starts a new line ...
2
votes
1answer
735 views

Force hyphen line-break one words with dieresis [duplicate]

Normally Latex adds a hyphen if the word at the end of a line is too long, and continues the rest of the word on the next line. I'm writing my document in Dutch and when the last word on a line ...
6
votes
1answer
334 views

biblatex: no linebreaks in name lists when typesetting ragged-right

When typesetting a bibliography \raggedright, biblatex seems to have trouble breaking a line between an author's first/last/middle names (and, if multiple authors are present, between two authors). ...
7
votes
2answers
2k 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 ...
5
votes
1answer
3k views

Break multicolumn text at document margin with tabularx

I'm using tabularx to break the content of a column at the document margin (cf. Linebreak in table cell at document margin). But when I use \multicolumn in such a table, the instruction to break the ...
2
votes
1answer
919 views

How can one produce spaces of arbitrary (fixed or relative) width that (do or don't) linebreak?

Adobe InDesign lets me insert a wide variety of spaces: over half a dozen spaces that allow for a line break (let's assume for the purpose of this question that they disappear in case of a line ...
5
votes
2answers
112 views

How to get autobreaking with sequential tables

So it appears that \hspace is not breakable, but is if it is followed by \allowbreak. Alternatively you can use \hskip1.0em as that is breakable. So, if my understanding is correct, then why do the ...
1
vote
1answer
226 views

Using split to break a long equation

I am trying to break a long equation over multiple lines. It is here as follows: \begin{equation} \begin{split} L(\textbf{q})=&\prod_{t=0}^{36}{q_{1}^{iB(t)sB(t+1)+iC(t)sC(t+1)}\\ &\quad\cdot ...
7
votes
4answers
216 views

Justify long line with no spaces but a lot of hyphens

% !TEX TS-program = xelatex % !TEX encoding = UTF-8 Unicode \documentclass[11pt]{memoir} \usepackage{fontspec} \usepackage{showframe} %%% Book Layout %%% \setstocksize{4in}{5.75in} ...
-1
votes
0answers
146 views

Latex not showing properly citations [closed]

I use the following latex command for citation at latex. \subsection{Subsection Example 1} some tex ~\cite{maccormack2003managing} some text and I get the following result. As you can see the ...
11
votes
2answers
652 views

How can I fix a problem where italics prevent line breaking when using microtype? [duplicate]

I wish to use protrusion and expansion from microtype as I like the look you get with them. I use amsthm and typeset theorems in italic as usual (with \theoremstyle{plain}). With microtype enabled, ...
5
votes
1answer
659 views

Suppressing line break in enumerate environment

I'm using the gather environment within the enumerate environment. After creating an item/before entering the gather environment, LaTeX adds a linebreak which I don't like. \begin{enumerate}[(a)] ...
10
votes
1answer
5k views

Linebreak in \thanks footnote?

I am using the scrartcl class of Koma-Script with \thanks on the title page. Everything works as expected, so far, but I'd like to use a linebreak within the footnote. Here's an MWE: ...
1
vote
2answers
1k views

Tabbing and automatic line breaks without columns

I'm making dense revision notes so I'm trying to use all space possible e.g. tabbing and adding short notes whenever the previous item takes up significantly less than half the line \begin{tabbing} ...
2
votes
1answer
194 views

Inline math: Line breaking and stretching only in specified places

Is it possible to have document-wide solution for all inline formulas was breakable and stretchable only in pointed positions? Like $longformula1 \/ longformula2 \/ longformula3$ was able to break ...
7
votes
1answer
266 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 ...
11
votes
2answers
2k views

\RaggedRight makes document longer

I have a document carefully written to fit in 4 pages; but when I added a \raggedright (or \RaggedRight with use of the ragged2e package) the length gets longer. Furthermore, suddenly the output ...