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

learn more… | top users | synonyms (1)

0
votes
0answers
50 views

Avoiding pagebreak after newline in theorem

This might be of relevance: Theorem environment - line break after label pagebreak and amsmath theorem environment issue Avoid page break in theorem Situation I used the information provided ...
16
votes
4answers
6k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
0
votes
1answer
33 views

Automatic line breaks in path{} command?

i use the \path{} command to print out a path to a directory in my *.tex File. I searched a lot around the internet to solve the problem to automatically linebreak the path-url. I found some hints ...
0
votes
2answers
38 views

How to avoid underfull boxes in itemize?

I am using an itemize as shown in this example: \begin{itemize} \item \textbf{The First}\\ Some text here over fifty lines.... bla blah \item \textbf{The Second}\\ Other text here ...
1
vote
2answers
85 views

Long glossary description and line-break for the short form of the acronym

I've been struggling with some long glossary word descriptions that are not breaking correctly. I found a link to a question about hyphens, but it only solves part of a part of my problem. For the ...
2
votes
1answer
43 views

How to check if a macro can be followed by a newline

I'm trying to create a class that allows you to define a name using \name{Whatever} This is defined as \newcommand{\name}[1]{\def\gsy@name{#1}} Whatever is passed to this is used in the header, ...
0
votes
0answers
22 views

Prevent line breaks after specific words in general

I am sorry if this is duplicate but I couldn't find it... or, more specifically, I've found something even more general, but I didn't understand a word from it :D Prevent line-breaking after short ...
3
votes
1answer
28 views

Semantic Package: Multiple Lines in Conclusion

I am using the semantic Package and I would like to place line breaks in the conclusion part of an inference rule. For example, I would like to write something like: \inference{A}{B \\ C \\ D} ...
0
votes
0answers
25 views

Avoid the insertion of spaces when using newlines in latex source code

I have a problem with some Latex code that I need to write. In this code, I am putting elements into a table using a macro. This Macro also does some magic with the content it is inserting into the ...
1
vote
1answer
42 views

Theorem header and *all* content on separate pages

I have in my paper a theorem-like environment which consists only of an enumerated list. It looks bad if I just type it in vanilla, so I add a $\,$ before the enumerate (see also enter link ...
1
vote
1answer
46 views

Repeating certain signs after linebreak in inline math expressions

I use LaTeX to type my University Maths notes. In that, I often find myself faced with linebreaks in inline math expressions. In such a situation, I usually want to double the sign just before the ...
0
votes
1answer
49 views

How to adding vertical spacing in \raggedright or \RaggedRight

I usually use \\, \par, \newline, etc. to add whitespace to LaTeX. However, when I use raggedRight, the pdflatex spits out a ton of messages saying "There's no line here to end." Ultimately, all ...
2
votes
0answers
62 views

LuaLaTeX vs XeLaTeX hyphenation and line layout [closed]

I am typesetting my journal just for the fun of it. I am using KOMA-script's scrartcl with two columns. I am testing with both LuaLaTeX and XeLaTeX. I haven noticed page count is different between the ...
3
votes
2answers
45 views

How do I completely suppress paragraph indentation in quoting environment without \noindent?

\documentclass[oneside,12pt]{article} \usepackage{geometry} \usepackage{microtype} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{enumitem} ...
0
votes
1answer
42 views

Ideal file path line breaking within a cell longtable tabu

I am creating a table which has file name, source and destination file paths, and a short description of each file. The description and flag fields have spaces so the line break can be automatic. ...
1
vote
1answer
24 views

theorem header still not breaking line

The question has been asked before at How can I get a line break in a theorem headline?, but the answers seem not to work for me: \documentclass[a4paper, twoside]{book}%[a4paper,oneside] ...
0
votes
1answer
36 views

wrapfig not breaking lines properly in beamer

I have a very simple situation where wrapfig is not correctly choosing line break positions correctly. Here is the MWE: \documentclass{beamer} \usepackage{wrapfig} \begin{document} \begin{frame} ...
4
votes
2answers
84 views

Problem with too large table

I'm trying to make a large table with latex, but I have a problem with text inside it, it depasses, the page. here the code : \begin{table*} \centering ...
1
vote
2answers
76 views

Lines with texttt reach into the page border, how to prevent?

MWE: \documentclass{scrartcl} \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} ...
5
votes
2answers
570 views

Linebreaks in KOMA-script captions

Using the captions package, linebreaks can be incorporated into figure-captions easily: \documentclass[12pt]{book} \usepackage{graphicx} \usepackage{caption} \begin{document} \begin{figure}[htbp] ...
11
votes
2answers
18k 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 doesn't work. How can I get it done?
7
votes
3answers
640 views

References spilling out of margin in bibliography

I have a search for this problem but all I could find was the case of reference citations in document spilling over, not the bibliography. Quite simple problem I hope... In my bibliography some of ...
1
vote
1answer
110 views

Linebreak does not work in section headings modified with tikz

I have a problem with long sub/section headings: \\ is not wirking. As I'm new to Latex, I adopted this beautiful template http://www.fluortools.com/misc/LaTeXtemplate and modified it for my needs. ...
0
votes
0answers
70 views

inline listings line wrapping issues

I am having issues with inline listings line wrapping. As you can see in the linked image, the period ending the sentence is on the next line due to wrapping of the cite-website text. The listings ...
14
votes
5answers
936 views

Creating a multi-line colored box in LaTeX

I am trying to create a colored box in LaTeX that has two lines. I would like the text to be centered. Ideally, I want to be able to change the text font and the size of the colored box. So, an ...
1
vote
1answer
44 views

Force equation numbering to the same line of case equation

It seems that the column is so narrow that it can not bear the whole equation: \begin{equation} R(p_i|G) = \begin{cases} ep_{p_i} + (1- UA(p_i|G))\cdot ({r_G - ep_{p_i}}) ...
1
vote
0answers
38 views

colorbox highlighting: overfull hbox

For a current LaTeX-Document, I've done some highlighting using colorboxes around specific words or formulas. This works quite well, although, of course, the colorbox doesn't do line breaks when it is ...
3
votes
1answer
63 views

tabularx automatic line break and aligned over several tables

I found here a solution to the problem of having an automatic line break: \documentclass{article} \usepackage{tabularx} \usepackage{listliketab} \usepackage{lipsum} % only for this example ...
4
votes
2answers
54 views

Change color line in hline

Recently I asked a question about how to draw a line under titles but this line should be flexible is a picture is included or not. I am trying to change the color of this line but nothing works? ...
1
vote
0answers
242 views

GitHub-hosted Jupyter notebook auto line breaks / wrapping [closed]

I would like to put a document containing a fair amount of inline math onto GitHub as an IPython Notebook. Because I don't like the typical Markdown sans-serif font, which wouldn't match the Latex ...
114
votes
5answers
247k views

How can I split an equation over two lines

I am having the following equation: \begin{equation} Q(\lambda,\hat{\lambda}) = -\frac{1}{2} P(O \mid \lambda ) \sum_s \sum_m \sum_t \gamma_m^{(s)} (t) \left( n \log(2 \pi ) + \log \left| C_m^{(s)} ...
0
votes
2answers
29 views

Linebreak in a longtable

I use the longtable package to create a table that covers multiple pages, but the problem is that the linebreake does not function correctly.This is my code: \documentclass[12pt]{article} ...
28
votes
4answers
16k views

Include a line break in algorithmic while maintaining indentation

I have this code: \DeclareCaptionFormat{algor}{% \hrulefill\par\offinterlineskip\vskip1pt% \textbf{#1#2}#3\offinterlineskip\hrulefill} ...
1
vote
0answers
30 views

Automatic linebreaks for equations in tabular environment?

I have so far tested the breqn's dmath environment example here but it does not work with tabular in rotating's sidewaystable, resulting into \cr errors in wrong place. So How can you automatically ...
1
vote
1answer
121 views

How to prevent words from running into the right margin?

I'm revising one of the final drafts of my thesis and on several pages there are words running into the right margin. My question is whether rewording the paragraph is the only way to get rid of this ...
7
votes
2answers
215 views

How can I control the minimum number of lines (rows) that should be kept together when a page break is necessary?

What to do when tabular alignment just doesn't cut it? I designed (perhaps not efficiently or with the "right" approach, yet using some helpful LaTeX3 answers from egreg) a way to enter data into an ...
23
votes
2answers
1k views

Best choice between using \\ or leaving space after each paragraph to end the paragraph

Here is the thing, I have always used a blank space between paragraphs in order to tell latex that there is a new paragraph. But there is someone I work with very often that keeps using \\ to break a ...
0
votes
1answer
47 views

how to let the long web-link automatically break line?

I use the \tt in the latex, however, it can not break line automatically. Then, I add \\ in the link, e.g. \tt{http://tex.stackexchange.com/ \\\\ questions/ask}. Then, in the generated pdf file, it ...
5
votes
1answer
98 views

How to break lines in tables without vertical spacing?

I'm building a table and I need to have line breaks in each cell of one column. I have found the following example: How to add a forced line break inside a table cell Here is the code: ...
31
votes
1answer
499 views

Obtain \badness or glue adjustment for each line

This might be interesting for perfectionists and/or fastidious typesetters who would like to improve the document even further (beyond the beyond the magnificence of a book with zero bad boxes). We ...
9
votes
1answer
10k views

Newline in table cell possible?

I am trying to add linebreaks in my table cell but found that LyX doesn't allow me to. How can I insert a newline inside a table cell?
11
votes
1answer
220 views

Macro to capture until end-of-line as argument

Is it possible to capture the contents to the end-of-line as a macro argument? For example, consider the following naive visualization: \documentclass{article} \newenvironment{myitemize} ...
1
vote
1answer
75 views

How to add a linebreak in a tikz UML Sequence Diagram instance/thread

I'm writing a UML sequence diagram with tikz package pgf-umlsd. Currently the code looks as follows: \begin{sequencediagram} \newthread{controller}{Special Task Controller} ...
0
votes
1answer
36 views

How can I prevent non-math overflowing into margin when using textsubscript?

I am using \textsubscript for subscripting a non-math data . but it is long enough to cause overflow into the margin. What are the possible solutions?(may be like writing subscript in 2 lines)
2
votes
1answer
157 views

Ifx and end of line [closed]

Can anyone shed some light on this? I have an interesting problem involving the "There's no line here to end" error. EDIT: Variables. I did not think to include this as I thought there was only one ...
1
vote
1answer
135 views

How to prevent a linebreak before align/equation environment in itemize? [duplicate]

The following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{itemize} \item \begin{align} a&=b\\ &=d \end{align} \item \begin{equation} a=b\\ =d \end{equation} ...
0
votes
1answer
40 views

Breaking Typewriter-styled Detokenized Text

The goal is to have snake_cased elements typewriter-styled breaking properly. I am using \detokenize rather than simply \_ because otherwise the snake_casing looks wrong, namely like this: rather ...
0
votes
1answer
33 views

Disallow line break in \cite

How can I disallow line break in \cite? Two bibtex entries are @book{is, author = "Mörður Árnason", title = "Íslensk orðabók", publisher = "Edda", address = ...
0
votes
1answer
16 views

Function throws error only on first call in a section

I'm setting up a template for my homework for this semester in LaTeX, and I'm getting an error that the first time I call a function it fails but every later time in the document it works. Here's the ...
1
vote
0answers
32 views

Reference a picture [duplicate]

I am writing a PhD thesis. Sometimes when I reference to a figure the following problem occurs. In PDF the word Fig.[number of figure] are written in two lines (Fig. and [] are separated). How to ...