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

learn more… | top users | synonyms (1)

15
votes
5answers
233 views

Behavior of \\ inside center environment

While trying to compile a title page for my dissertation I realized that I do not understand the behavior of \\. Consider the following MWE \documentclass{memoir} \begin{document} \begin{center} ...
20
votes
1answer
274 views

How to I force a word to move to the end of the line?

How do I force my document to pull selected words to the end of each line (and to hyphenate them as well, if needed)? I have an old document. I know the page size and I think I've found the ...
4
votes
1answer
133 views

Insert line break in \cventry

What do I have to change in the following code to drop my company name, and company location to the line below my job title? I tried them around within the separate brackets but my LaTeX knowledge is ...
1
vote
1answer
69 views

How to add a line break

Sometimes I need an empty line like this If I write $\Rightarrow \mathcal{I}_1 = \{\{A\}, \{B\}, \{C\}, \{E\}\}$ \\ Generierung der häufigen $2$-Itemsets: I'll get an error "There's no line here ...
4
votes
1answer
57 views

How do \widowpenalty and \clubpenalty interact for a 2-line paragraph?

Sometimes \\* does not suffice to prevent a linebreak. Adding {\widowpenalty10000 \par} or {\clubpenalty10000 \par} helps if the separated line is paragraph-final and stranded at the top of a page ...
3
votes
2answers
63 views

Breaking paragraph into lines with courier in cals table

\documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[a4paper]{geometry} \geometry{top=10mm, bottom=10mm, left=10mm, right=10mm} \geometry{showframe} \usepackage{courier} ...
1
vote
0answers
40 views

How to force a newline after subsection?

I am trying to force a newline after subsection. How can i do that? I am using conference documentclass. Instead of 1. Subsection: This is a boy i want 1. Subsection This is a boy
6
votes
1answer
234 views

TikZ: Text alignment and line breaking

I have some troubles with text alignment along path in tikz. I made custom shape and wrote text along path inside it in the following way: \documentclass{article} \usepackage{tikz} ...
1
vote
0answers
129 views

mdframed - eliminating newline and top/bottom space /margins

I'm totally new to (La)TeX, but trying to learn to become more independent. So I'm writing a document which includes periodical revisions that need to be marked in a specific way (a thick black ...
7
votes
2answers
183 views

How to get a line break in a title on the page head?

I am writing a document using the amsart and the title is just very long. Now I wonder, how I could get a linebreak such that it would not overfill the heade of each page. I tried \protect\\\ but this ...
8
votes
3answers
291 views

Viva preparation document

In one of the doctoral thesis howto books (Rugg and Petrie, I think) the advice given is to prepare a document that summarises one page of your thesis per line of page. I'm interested in working with ...
1
vote
0answers
54 views

Extra spacing before an equation when line nearly breaks

I am having difficulty with producing an MWE, but let me describe the issue. I have a large document with tons of equations and run into issues with spacing. Most of the time it is fine, everything ...
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 ...
3
votes
1answer
99 views

Custom table caption (Updated)

I'd like to achieve a custom table (figure) format with Table numbering and title (this is usually the title also used in the list of tables but does not have to be) in boldface, and the (longer) ...
2
votes
2answers
86 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
118 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 ...
3
votes
2answers
86 views

Splitting the equation on two lines

I have the following equation (as you can see I have used split): \begin{equation}\label{testequation} \begin{split} d_{m}^{\phi}\left(A,f\right)=\sqrt[m]{\mid ...
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
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} ...
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 ...
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 ...
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 ...
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, ...
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 ...
4
votes
1answer
79 views

Bleed into margins automatically to prevent orphans?

When I set my papers, it sometimes happens that the last line of a paragraph is very short, in extreme cases just a single word, perhaps a page number. I have set \clubpenalty to 10000, of course, ...
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} ...
7
votes
1answer
103 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 ...
4
votes
1answer
74 views

Left-aligning URL with line breaks in bibliography

URLs break fine in my bibliography. My problem is that they are justified which creates a gap between "URL:" and the URL itself (see below). Is there a way to left align only the URL? I am using ...
2
votes
1answer
45 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
73 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
102 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 ...
5
votes
4answers
137 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} ...
4
votes
2answers
56 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.
2
votes
1answer
69 views

How can I break a long URL in bibliography

I have a problen with a long url on LaTeX, I want to break it but I don't know how. The line in LaTeX is: \bibitem{} Information Intel 8085: \\ ...
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},% ...
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 ...
0
votes
1answer
72 views

Line break in author list for elsarticle document class

I'm using the Elsavier document class elsarticle where the authors are added with individual \author{Bob} commands. I have a long list of authors (generated randomly for this example): ...
1
vote
2answers
76 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} ...
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} ...