{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
2k 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 ...
17
votes
1answer
31k views

Inserting a specific number of blank lines

I'm new to LaTeX and trying to format my Honors Thesis, which has very specific formatting rules to prepare the manuscript for publication. For instance, on the Abstract page, I am required to place 3 ...
5
votes
1answer
3k views

Newline in \multirow environment

One element of a multirow column is long. How can I split it so that it spans over multiple line. The following code \documentclass{article} \usepackage{multirow,array} \usepackage{booktabs} ...
2
votes
1answer
625 views

split a \xrightarrow into two lines

I'm using the command \xrightarrow{}[] in a two column document. The problem is that the string above the arrow is too long and the arrow ends outside the column. Is there a way to "split" the arrow ...
0
votes
2answers
2k views

New line instead of word-breaking [duplicate]

Possible Duplicate: Prevent hyphenation and use line break in block of text When some word at the end of sentence does not fit in the line - I would like it to be moved to the new line, and ...
9
votes
2answers
555 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: ...
3
votes
1answer
345 views

Mhchem overfull boxes

I am using the mhchem package in-line and the equations don't break lines and thus cause overfull boxes. Any way to force them to follow the rules for line breaks. i.e. the following sentence: ...
1
vote
2answers
2k views

How to force a linebreak in itemization?

I have a proposition which consists of two itemized bullets. I want both to be displayed in an offset way, but the first one keeps getting displayed as a continuation of the Proposition in bold. How ...
6
votes
3answers
763 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 ...
3
votes
1answer
779 views

Pseudocode overflow out of column

I am writing pseudocode using the algorithmicx package in IEEEtran class (double column). My problem is, some of the statement in the code are quite long which I expected to wrap to next line. ...
8
votes
1answer
226 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
3answers
4k views

Push long words in a new line

I have sometimes very long words, which are for example method names and so on. Is there any possibility to force LaTeX to push them to a new line, if they overflow the margins? It is possible to ...
3
votes
1answer
667 views

Algorithmic package for loop and comment at the same line

I want to have the following output using algorithmic package: for i = 1 : z do // number of rows x = 1 end for I use the following tex code: \begin{algorithmic} \FOR{$p=1:r$} // number of ...
1
vote
2answers
333 views

Tables environment

I have a question about breaking lines and pages in table environment. I know, there are some solutions as using longtable package, however, it is quite complicated and I don't know how to work with ...
8
votes
1answer
6k views

moderncv - newline within a cventry

The information that I want to provide isn't fitting into one line. I am working with \cventry{}{}{}{}... I want to put information into a new line, still positioned to what is in the line above. I ...
9
votes
1answer
266 views

Using discretionary linebreaks in centering environment

I am having trouble with the interaction between discretionary line breaks and centering. I have defined macros for math mode that contain discretionary line breaks to help TeX lay out inline ...
7
votes
4answers
829 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 ...
3
votes
1answer
333 views

Nomenclature and line breaks

I'm trying to format the nomenclature such that there is, ideally, a curly bracket around a series of items with 1 definition. If that's not possible then at least having a line break in between ...
8
votes
2answers
545 views

How to wrap text in a table when there are no spaces at which to break the line?

I have a lot of text in table. I want to wrap it with in 2cm. In the last column, I have [1][2][3].....[89][100] but the column width is only 2 cm. It is supposed be wrapped by itself. How can I ...
8
votes
1answer
8k views

Tabular: Underfull \hbox (badness 10000) in paragraph at lines

I read all the questions regarding the error message Underfull \hbox (badness 10000) in paragraph at lines but I am still not sure if my code is correct. The problem is with the tabular of a table. ...
2
votes
2answers
275 views

Ignore badness 10000 in \ttfamily

Due to zero stretch in \ttfamily the lines get Underfull \hbox (badness 10000) often. I would like to ignore these, still being informed about other badnesses in the same paragraph. See the example: ...
7
votes
1answer
3k 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 ...
11
votes
4answers
7k views

Newlines after section headings in amsart

This latex code: \documentclass[9pt]{amsart} \begin{document} \subsubsection*{Animals} Rabbit horse monkey cow \end{document} Generates something that looks approximately like this: ...
2
votes
1answer
196 views

subsubsection description and title not separated

When I have \subsubsection{sub sub section} Some Contents and some description for it. I cannot distinguish between the title and description as they appear in the same line. For instance if I do: ...
3
votes
1answer
90 views

Long lines don't wrap when characters are input by number

Why doesn't the following long line wrap and how to force it to? \documentclass[a4paper]{article} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} ...
2
votes
2answers
687 views

enumitem nextline style: nested item shouldn't start on description label's line

I use enumitem description style nextline to emulate a sort of TOC entry with the following code: \documentclass{article} \usepackage{enumitem} \newenvironment{DLdescription}[1][*]{% ...
1
vote
1answer
465 views

How to break this function up between multiple lines?

I need to split the equation $$f(x)=\bigg(\prod_{i=1}^n((y(\lceil\frac{i-1}{i}\rceil)+1|(\lceil\frac{i-1}{i}\rceil)-1|) ...
10
votes
2answers
600 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 ...
15
votes
1answer
2k views

Difference between control space and non-breaking space

In my answer to How can I get following layout? I've used non-breaking spaces ~ (ties) to align monospaced text. Actually I rather meant control spaces \ , but they're less convenient to type (and ...
3
votes
1answer
177 views

Linebreak in makeatletter command

For some reason I get a linebreak when using my \textlabel command in the table cell. It seems to work fine for everything else. \documentclass[a4paper]{scrartcl} \usepackage[english]{babel} ...
4
votes
1answer
348 views

Changing vertical alignment of items in middle of line (for ToC entry)

Well, I'm really starting to hate LaTeX sometimes - mostly because you can't really learn one thing, and have it applied everywhere else you wanted :/ For instance, I asked the question Changing ...
3
votes
4answers
809 views

Boxes overflow column

It's all in the subject. I used all kinds of boxes in a towcolumn article, but whenever the boxed text is long enough, the box happily continues into the other column! Is there a "smart" box that ...
19
votes
3answers
10k views

How to avoid using \sloppy document-wide to fix overfull \hbox problems?

How to avoid using \sloppy document-wide to fix overfull \hbox problems? This is my minimal working example. \documentclass[12pt]{report} \usepackage[english,ngerman]{babel} ...
5
votes
1answer
525 views

Hyphenation points within rigidly typeset formulas

Because I am not fond of the look of tracking ("stretching") for math formulas, I generally use ${...}$ instead of $...$ for math formulas. (Please respect this aesthetic preference of mine.) However ...
4
votes
1answer
400 views

Correct longtable \multicolumn exceeding page boundaries/margins

I have problem with some of the longtable tables, as illustrated here: Is there an easy way to make table wrap cell contents multi-line so that it does not exceed page margins?
2
votes
1answer
374 views

newline in title on first page but not on subsequent pages

My title had only one word on the second line and it looked weird so I fixed it by adding \\ in the appropriate place. Now on the odd-numbered pages where the title is at the top, it has a really ...
2
votes
1answer
243 views

listings ignore final newline

When I write listings in my LaTeX code I usually follow this format \begin{lstlisting} foo bar baz \end{lstlisting} and when I put this inside a normal LaTeX document, things look fine. But when I ...
5
votes
2answers
7k views

LaTeX table frustratingly too wide

I'm getting really frustrated. I want to enter the following table into my LaTeX document, but the first and third columns refuse to narrow so it is too wide. Can someone please tell me what I am ...
9
votes
2answers
236 views

how to enforce correct hyphenation of “(near-)uniform” as “(near-)” + “uniform” instead of “(near-” + “)uniform”?

how to enforce correct hyphenation of (near-)uniform as (near-) uniform instead of (near- )uniform?
6
votes
2answers
845 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 ...
3
votes
1answer
600 views

Lines look very “stretched”

Some lines of my document become very very "stretched". Here is my preamble: \documentclass[bachelor, subf]{gost732} \usepackage[a4paper,includefoot, left=3.5cm, right=1cm, ...
7
votes
3answers
3k views

How to split optimisation problem over two lines?

I have this expression involving minimisation. How do I split it over two lines? The problem is \min seems to be separated from the objective function. breqn does not seem to work, as this is not an ...
3
votes
2answers
2k views

Tabbing environment: How to line break?

I'm desperately trying to get a linebreak in a CV at the end of my dissertation. When I do this: \begin{tabbing} \hspace*{4.5cm}\=\kill 09/2004 -- 11/2010 \> \textbf{Study of Biology at TU ...
11
votes
2answers
1k views

How to break URLs when footnotes are on same line?

Question Footnotes on the same line revealed that it is a good idea to use \usepackage[para]{footmisc}. However, this does not seem to work with URLs: \documentclass{article} \usepackage{hyperref} ...
7
votes
3answers
443 views

How to avoid unbreakable \pmb boxes when typesetting math?

I have a big problem called as a river problem. I'm using the report class defined as: \documentclass[11pt,notitlepage,a4paper,oneside]{report} \usepackage[english]{babel} ...
3
votes
2answers
253 views

Custom references page with additional line breaks

Is it possible by any chance to style the references page to match this: [1] The Author, The Author2 "The title of some kind" 3rd. edition ISBN: xxxx-xxxx-xxxx-xxxx
5
votes
1answer
809 views

avoid linebreak in \lstinline if possible

By using \lstinline{mysourcecode} I put some code within my document. I would like to avoid that this code is broken to a new line, if possible. so, if the codeline itself is less long than a full ...
2
votes
1answer
6k views

Left margin flush for itemize's item labels in LaTeX

I am trying to get the item label to flush with the left margin of the page width within itemize, i.e.: This is my sentence. Here are my items: ITEMNAME notice my list definition is indented ...
3
votes
1answer
1k views

How do I put multiple lines in a title when using the apa6 class?

Right now I'm using \title to define a title and \maketitle to display it. How do I put multiple lines in the title? I need to adhere to APA 6th edition format, and according to the book I'm using, I ...
8
votes
2answers
11k views

How to make a title of two or more lines?

My document has a long title, so I want the title spans two lines. I've use this: \title{my title that must be in two or more lines} but it not works. How can I get it done?