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

learn more… | top users | synonyms (1)

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
656 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
451 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
587 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
172 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} ...
3
votes
1answer
343 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
788 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 ...
17
votes
3answers
9k 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
520 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
390 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
370 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
239 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
235 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
822 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
575 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
2k 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
441 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
246 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
795 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
5k 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
10k 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?
4
votes
1answer
9k views

How to add a newline in a table cell?

How can I put a new line (line break) within a table cell? I'm at a loss how to do this. I'm not using lyx or anything special, just MacTex and texmaker.
14
votes
2answers
1k views

Wrong line break in description environment after a long label

I encountered an issue with my description environments: If I use a label that almost is as long as the text width, the explanatory text afterwards is not wrapped correctly. I am using the mdwlist ...
7
votes
2answers
463 views

How to avoid citations being placed on a new line when \blockcquote ends with a list?

When csquotes's \blockquote and displaycquote ends with a list the citation is put on the next line after the list rather than directly after the last list item. Can one force csquotes to place the ...
6
votes
1answer
2k views

How to force line breaks within a fancyvrb verbatim environment?

Consider the following LaTeX document: \documentclass{article} \usepackage{fancyvrb} \DefineVerbatimEnvironment{example}{Verbatim}{commandchars=\\\{\}} \begin{document} \begin{example} Foo\\{}Bar ...
10
votes
1answer
8k 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} ...
5
votes
2answers
3k views

Breaking lines in codes with mcode package

I want to include some code from MATLAB and I'm using the mcode package. But the problem I encounter with it is that it doesn't break long lines automatically and since I load the file and not the ...
1
vote
1answer
939 views

Long code that needs to wrap

How would I enter this text on an 8.5x11 worksheet with 1.25inch margins all around so wraps around and does not extend onto the margins? Using normalsize text. SolverAdd ...
8
votes
2answers
1k views

Line overflow with long filenames and urls

Consider the following text. Here /etc/postgresql/8.4/main/pg_hba.confoverflows into the margin, and is hypenated. /var/lib/pgsql/data/pg_hba.conf is also hyphenated, but does not overflow. So, I was ...
6
votes
3answers
869 views

How to break long word containing symbols but with no hyphen?

Below is my minimum working example: \documentclass[10pt,a4paper,draft]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{lipsum} \begin{document} ...
6
votes
2answers
834 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 ...
3
votes
1answer
575 views

New line in code with no white space in output?

I would like to put my \footnotes{} on a separate line in code, to make code easier to maintain and read. But I don't want any whitespace in between the foot note, and the preceeding word in the ...
3
votes
1answer
1k views

When I prevent hyphenation using an \mbox, the box gets pushed into the right margin

I've used \mbox to prevent LaTeX from breaking certain long words into hyphenated pairs. Now I have a new problem: the unbroken words are extending into the right margin. Here's some minimal sample ...
3
votes
1answer
907 views

How to set frame size in a listing

I'm trying to put a frame around my code, but the frame has the wrong dimension. How can I set them right? ...
3
votes
2answers
3k views

hspace doesn't work. Depth

I need to locate my text in such way. At first, I have some formula. There must be a little indent. $bla-bla-bla$ \\ Then I have another formula, but the indent must be bigger. $bla-bla-bla$ ...
3
votes
1answer
6k views

formula transfer to a new line

How I can make a transfer of a long math equation in a new line? I suppose there are at least two methods: manually by hands and adjust math container to do that automatically. Can you show me, please ...
16
votes
2answers
1k views

Temporarily increase the limit on space size?

I often see those warnings about "overfull \hbox" when I'm preparing my document. Because the document is still in the early stage, I see no point in correcting them on-the-spot - since the document ...
4
votes
2answers
476 views

How to stop mathmode straddling two lines (without overfull boxes)?

I do not like it when my maths spills over onto a second line. For example, what I am currently doing spits out stuff like, ...just some talking then we have some maths Aut(G) < H/K and lo! it has ...
1
vote
0answers
397 views

Wrapping file paths in tables [closed]

I am programmatically creating LaTeX documents. Now, what I wish to do is to have a table in which a file path wraps. I expected I'd be able to do this by defining that column of the table as a ...
2
votes
1answer
641 views

Wrap text inside tabular environment without changing a lot of code

I used the following code: \begin{tabular}{|c|c|l|} \hline Pin Number & Pin Name & Analog Function\\ \hline \hline 1& 4xOUTZ& Yaw-rate or Z-rate output voltage 4 times amplified ...
3
votes
2answers
2k views

Breaking long equation after a certain left bracket

I am typing a long equation which needs to be broken just after the left bracket and three dots are placed at the end of the left bracket same line. Here is an example, in which, I need the third left ...
4
votes
1answer
1k views

Names on title page of Beamer presentation

We have several group members whose names should be on the title slide of a Beamer document. However, when I put something like this: \author{Person A \and Person B \and Person C \and Person D \and ...
2
votes
2answers
276 views

avoid space before \textsuperscript in linebreak

I have a lot of Ca\textsuperscript{2+} in my text. In my editor I use automatic linebreaking to keep the text readable. Now it sometimes happens that lhe line breaks like this: Ca ...
9
votes
2answers
7k views

amsthm: \newtheoremstyle, headspace, \mbox{}, and lists

Q: How do I define a newtheoremstyle which will start the theorem text on a newline after the header even when the theorem text starts with a list, e.g., enumerate? If there's no way of doing this, ...
3
votes
1answer
5k views

Multirow and tabularx

I'm trying to make a table that should be pretty straight forward. But somehow, the text in the two first cells seems to "forget" that it's using the X-alignment command in tabularx: ...