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

learn more… | top users | synonyms (1)

1
vote
2answers
77 views

Creating table with multirow option fixed width and wrapped text

I am trying to create a table using multirow option. I am using the following code: \documentclass[10pt]{article} %\usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
1
vote
0answers
29 views

Separate sectioning titles for main text, headings, and toc for line breaking purposes

I am using the titlesec package with the toctitles option, which modifies the optional argument of sectioning commands so that this optional argument is used only in headings; the non-optional ...
2
votes
2answers
88 views

Keep block quotes text on single lines

I am using CSQUOTES package as suggested by this TEX question. It plays nicely with the nested {}s How do I get the following (bibtex) text that has each line as a single line to remain on a single ...
4
votes
1answer
49 views

How to make a hbox several lines under the specified place?

Recently I asked How to colourfuly highlight some lines of an algorithm using algorithm2e? I wanted to acheive this effect using the algorithm2e package: Thanks to JLDiaz's answer I know how to do ...
1
vote
1answer
94 views

Warnings about Underfull/Overfull hboxes

I have created a calendar in LaTeX using MiKTeX and although the whole code is correct I have 12 warnings about underfull hboxes and overfull. Can someone tell me first how to make my code run without ...
0
votes
1answer
47 views

page layout for function description

I write an SDK manual in which I would like describe function using the following layout, but I have a carriage return I don't want. Parameters * unsigned int * string Return Value ...
7
votes
1answer
74 views

Remove space before macro if exist a environment

I create a new macro: \newcommand{\intersection}[1]{% \par\vspace{\baselineskip}% \noindent\textbf{\large\bfseries\sffamily #1}\par} It works perfectly for what I want, but when there is a ...
7
votes
1answer
85 views

How can I find out the linebreak penalty at a given point of text or a math formula?

How can I find out the linebreak penalty at a given point of text or a math formula? An example would be the point before and after the equals sign here: \(a + b = c\). If I write complex formulas, I ...
2
votes
1answer
121 views

Linebreak at itemize

My MWE is the following: \documentclass{article} \begin{document} \begin{itemize} \item[about] Foo\\ Lorem ipsum dolor sit amet, consectetur, adipisci velit \item[about] sort rules(...) ...
2
votes
1answer
97 views

Line break in formula [duplicate]

I have a math, that is too long for only one line. Now I want it to break like this: f(x) = x + ... Or what is the mathematic right way to break such a long formula into several line? Thanks ...
4
votes
2answers
149 views

When splitting an equation, why do parentheses appear in different sizes?

I have the following equation which I have split in two lines, why do I get the ( after = to be smaller that the closing )? \begin{equation}\label{testequation} \begin{split} d_{m}^{\sim ...
2
votes
1answer
64 views

Listing / lstinline and line breaks

I'm using \lstinline among other things for writing file names of my source files. For example \lstinline{foofoo.pl} Then, sometimes I have the problem that some lines containing this string are ...
2
votes
0answers
76 views

How can I line-break a long string of numeric digits and hyphens?

I have a cls file that contains a definition for source code: \lstnewenvironment{code}[1][] { \lstset{ basicstyle=\ttfamily\footnotesize, breaklines=true, ...
2
votes
1answer
132 views

avoid underfull \hbox (badness 10000) in paragraph because of linebreak

It seems to be a common question, but the other werent adressing my code. \begin{table}[ht!] \centering \small \caption{Absolute and relative frequencies } \label{FreqFair} ...
3
votes
1answer
65 views

Creating Table using array

I'm trying to create entry similar to tables using array begin{array}{*{20}{r}} {}| & A |& B \\ \hline A_1| & {one|} & {two} \\ B_2| & {three|} & {four} \\ \hline ...
5
votes
0answers
54 views

No hyphenation of long words in narrow boxes [duplicate]

I stumbled across an hyphenation problem which I cannot explain or solve. When I use a narrow box containing a long word with a width longer than the box width, this word is not hyphenated. The ...
2
votes
1answer
74 views

multi-line proof using proof package

I have been using the infer from the proof package. I am wondering if there is a way to add line breaks in the proofs? For instance I would like to set: A B C ----- D But I couldn't find a ...
3
votes
1answer
46 views

Using multiple newlines (\\) within LARGE block

I am trying to typeset a long title using a {\LARGE ...}-Block. Here is a minimal example: \documentclass{scrbook} \begin{document} {\LARGE Very \\ Long \\ Title} \end{document} And the ...
7
votes
1answer
89 views

Tweak showlabels/showkeys - wrap the label

Can showlabels wrap the label in the margin? A very similar question is showlabels: wrap labels in marginpar, but the solution of @DavidCarlisle does not solve the more general case. Consider the ...
0
votes
0answers
29 views

Inserting a line break in a formula [duplicate]

I have the following formula in LaTeX: \begin{equation} =\sqrt[m]{\mid C_{new}\left(pi\right)-f\left(pi\right)\mid^{m}-\mid C_{k}\left(pi\right)-f\left(pi\right)\mid^{m} ...
5
votes
4answers
138 views

Exam Class: how to avoid question going beyond margin

I'm able to create question paper using LaTeX code mentioned below: \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...
7
votes
1answer
104 views

Why does \marginpar sometimes add an unnecessary newline?

In the following example, the main paragraph gets typeset as 3 lines of text, with the paragraph ending on the third line before it reaches the margin. However, when un-commenting the line with the ...
3
votes
1answer
63 views

Weird new line using \cmpd from chemnum in long headingtitles

I have a problem using \cmpd in a heading, that is too long. For some weird reason, the compound number gets put on a new line, even though there is no need. I already have a workaround using ~, but ...
2
votes
1answer
46 views

How to manage long lines of inputs in function declaration, or inside the code, in clrscode3e

This is a part of my code: \begin{codebox} \Procname{$\proc{\textbf{Connect_two_SamplePoints}}(Graph,S1, S2,connectionCostMat,cost)$} \li \Comment S1 and S2 are sample points \li cost[S1][S2] $=$ ...
3
votes
1answer
49 views

biblatex and new line for Title, and all entries in general

I want to create a Bibliography that is a little more readable, meaning, for a single bibliography entry everything should start on a new line. Since the document will not be printed, nor submitted to ...
3
votes
1answer
74 views

How to apply \looseness=-1 to ALL the paragraphs?

I'm writing a short document of (3-4 pages), and try to condense it into the allowed space. Putting \looseness=-1 at the end a paragraph helps quite a lot. Is there a way to tell LaTeX to treat ...
5
votes
1answer
103 views

Error with line-breaking in cvlistdoubleitem in moderncv

I'm experiencing a strange asymmetry in how moderncv's \cvlistdoubleitem command handles line-breaking. This code compiles perfectly. \documentclass{moderncv} \moderncvstyle{classic} ...
0
votes
0answers
62 views

biblatex, homemade newbibmacro and problem with margins

I am starting to use biblatex and I have read very little documentation. Currently, I have some hurry, so I am looking for more straightforward answers in the forum. I beg your perdon if my question ...
4
votes
2answers
57 views

Adding more than two address lines to a document of class res

I'm using the res9b template and I'm trying to figure out how to add one more address line. I tried using "\\" but the output is a comma separated list instead of a line break.
8
votes
3answers
3k views

Skipping line after “Proof” in proof environment

Like the OP in Is it possible to skip the first line in a theorem environment?, I would like to be able to skip a line after the word "Proof" so that the first line of the proof is actually part of ...
22
votes
2answers
24k views

Error message: There's no line here to end

In a letter-class document that had no previous errors I am suddenly getting the error message: "There's no line here to end" \opening{text} I've used this file many times and today it starts ...
0
votes
0answers
89 views

Line-breaking long cell contents when using longtable through datatool

I'm trying to display a table loaded from a CSV file and displaying it like this: \DTLloadrawdb[]{myDB}{myDB.csv} \DTLdisplaylongdb[% caption={myDB caption},% label={tab:myDB},% ...
14
votes
1answer
147 views

Does \\ suppress hyphenation for the following word?

I am not sure, if this is a bug of the package showhyphens or some LaTeX-behaviour I don't understand. Please have a look on the following example: % arara: lualatex \documentclass[ngerman]{article} ...
3
votes
1answer
3k views

Underfull \hbox (badness 10000) in paragraph for table

I got a "bad box" warning said `!h' Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness ...
1
vote
1answer
112 views

Hbox overfull: automatic linebreaks on spaces

I have a problem Overfull \hbox (13.62198pt too wide) in paragraph at lines 49--50. I read similar questions and all the solutions introduced a manual intervention directly into the text - e.g. using ...
35
votes
5answers
3k views

one-letter word at the end of line

This question led to a new feature in a package: impnattypo I come from Poland and I'm writing some text in my native language. One of our typography standards is that we do not leave ...
3
votes
1answer
94 views

Chapter headings too wide for page, but won't break

I'm preparing a document (scrreprt) which has pretty long chapter titles. Apparently, those are too long: they exceed the right margin by quite a bit, and of course I'm getting Overfull \hbox ...
3
votes
1answer
82 views

Line break at hyphen in source inserts space in output

I prefer to wrap lines in my LaTeX source, and my editor will often choose a hyphen as a good place to split the line. Unfortunately, if a hyphenated word doesn't appear in the output file at a line ...
1
vote
1answer
440 views

Wrap lines in verbatim

I just started to learn LaTeX, and I have to do some documentation with it. However, the guy editing the TeX manuscript of the documentation before me didn't pay attention to word wrapping, so long ...
9
votes
2answers
137 views

I'm using the standalone package. How can I get regular paragraph breaks?

I'm using the standalone class to render images for individual math problems that will be displayed in an app, so the cropping functionality is essential. However, the package seems to destroy ...
23
votes
3answers
10k views

Prevent hyphenation and use line break in block of text

I have a custom block of text on my title page which can be longer than a single line. By default LaTeX is hyphenating a word at the end of a line, but I want it to break on to the next line. How do ...
1
vote
1answer
61 views

Avoid line break in section

I do have a section name with a pretty long name but which could "nicely" fit on one line. I was wondering, therefore, how I could avoid the line to break, perhaps using some space compression and/or ...
3
votes
2answers
208 views

\url{} links with percent (%) signs and overfull hbox error

I have looked at the first comment to this question on % in urls and found that I didn't need to type \ ahead of each %. However, in WinEdt 7.1, everything from the first % in the first URL is now ...
3
votes
1answer
69 views

Using savebox around the BODY of environ

I tried to use a \savebox around the \BODY macro of \NewEnviron. Can I keep the linebreaks somehow (they are gone, in the MWE)? \documentclass{article} \usepackage{environ} \newsavebox{\mybox} ...
7
votes
1answer
91 views

Is it necessary to give a \\ before \intertext?

I am not sure which one is correct when using \intertext or \shortintertext. Adding \\ before them or not. \documentclass[preview,border=12pt]{standalone} \usepackage{amsmath} \begin{document} ...
4
votes
1answer
92 views

Line breaking and alignment in list

Consider the following code: \documentclass[ a4paper, 12pt ]{article} \usepackage[ hmargin=2.4cm, vmargin=3cm ]{geometry} \usepackage{amssymb} \usepackage{enumerate} % better to use ...
0
votes
0answers
27 views

Allow line breaks in highlighted text [duplicate]

When I highlight a bit of text using \colorbox, it prevents line breaking. How does one give tex permission to break lines? Example: \documentclass{article} \usepackage{color} \begin{document} ...
5
votes
1answer
41 views

Is there any means by which to severely discourage breaking a line in a would-be box?

I have a small section of text—no more than 15 or 30 characters—that is split up into a few words. I'd like to add a penalty to breaking in this section, but I don't want to completely bar it and risk ...
5
votes
2answers
199 views

Breaking very long equations

This is a frequent question, so let me specify a bit more what the problem is. I have equations with very long fractions that are within integrals, \begin{equation} \int A \int \frac{A B C D E ...
1
vote
0answers
41 views

suspended hyphen without linebreak between word and hyphen

I have a word combination like this metallo-porphyrins and -phthalocyanines which eventually gives a linebreak between the hyphen and the word phthalocyanines. I tried to include the ngerman package ...