{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
votes
2answers
79 views

how do i create a linebreak in an inline math formula?

I tried to make a equation in Latex but the parentheses disappear near the edge of the page. How I put the equation in two lines? $\left(\omega=\frac{d\theta}{dt}=\int_{0}^{\dot{\theta}} ...
3
votes
2answers
73 views

Split text nodes multiline in tikz-cd

This LaTeX code: \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \begin{document} \begin{figure}[ht] \begin{tikzcd}[row sep=3cm, column sep=0.9cm] & \text{binary relations} ...
2
votes
2answers
31 views

How to align on right if there was a linebreak right before?

Consider this MWE \documentclass[a4paper]{article} \usepackage[top=1in, bottom=1.25in, left=1.25in, right=1.25in]{geometry} \usepackage{enumerate} \usepackage[ngerman]{babel} \usepackage{ifthen} % ...
6
votes
1answer
40 views

Using the Verse Package and Line Numbering

Does anyone have a way to make line numbers show up only on the first part of the line using verse? A reduced example: \documentclass[11pt, a5paper]{article} \usepackage{verse} \begin{document} ...
0
votes
0answers
9 views

How to enforce new lines after line break on one character conjunctions to start with a conjunction instead of leaving it at the end? [duplicate]

Current behaviour: To jest taki paragraph gdzie będę pisał o tym i o czymś jeszcze innym a o tamtym nie. Desired: To jest taki paragraph gdzie będę pisał o tym i o czymś ...
2
votes
1answer
23 views

Non-pagebreaking return in LyX

I know that in TeX, I can issue \\* to make a new line without a page break. How I do that in LyX?
1
vote
2answers
27 views

Description item label overflows through block [duplicate]

\documentclass{beamer} \usetheme{Copenhagen} \begin{document} \begin{frame}{Proton Pump Inhibitor use and the Risk of Chronic Kidney Disease } \framesubtitle{Benjamin Lazarus et al, in JAMA Intern ...
1
vote
1answer
19 views

hbox badness with line breaking in tables and use of \raggedright

I am hunting for hbox badnesses in my document at the moment and have some problems in resolving issues with a table using tabularx. As suggested in this thread I am using \raggedright to relax the ...
4
votes
1answer
45 views

Line breaking in \newcommand

I defined a new command for highlighting some text parts: \newcommand{\keyword}[1]{\colorbox{black!5}{#1}} Unfortunately, when the text becomes to long it overlaps my margins. The keyword ignores ...
2
votes
0answers
22 views

parskip (or line spacing) for conversations

I post the example here to illustrate what i want. \documentclass{article} \setlength\parindent{0pt} \usepackage{blindtext} \begin{document} \section*{default} \setlength{\parskip}{10pt} This is the ...
2
votes
1answer
53 views

How do I get a space or line break between paragraphs rather than an indent? Parskip is not working [closed]

So when I first started out with my file I had gaps between paragraphs and no indent, as I was using the parskip package as listed below in my pre amble. At some point for a reason unbeknown to me ...
0
votes
2answers
41 views

Line Break in Equation with Text

I would like to include an equation, which mostly consists of text elements, however I am having trouble with aligning the last argument which spreads over two lines in order for the equation to still ...
3
votes
3answers
446 views

How do I break a long equation?

I have a long equation that it was hard for me to break so that it appears professional. How can I do it? \begin{equation} \begin{split} &\mathbb{P}\left( \left. Z_{1}\in ...
2
votes
1answer
57 views

Centering section with label and title on separate lines

I am trying to center a section title with the section label on one line, and the section name on the next. ie: | Article II This is the Title | My attempt: ...
0
votes
2answers
48 views

Linebreak in \raisebox-like environment + consistent height of table cell

In Frank Mittelbach's answer here, he constructs an environment to add linebreak in a \raisebox-like environment. In Alain Matthes' answere here, he shows how to get a consistent row height in a ...
0
votes
0answers
25 views

Double spacing, not in titles [duplicate]

I aim to write paragraphs with double spaces lines, so I decided to use the setspace package : \usepackage{setspace} \doublespacing But the result is that even in titles, figures, nearly ...
0
votes
0answers
25 views

Listings package does not break with my own class

I have created a class based on the article class so: \NeedsTeXFormat{LaTeX2e} \LoadClass{article} \RequirePackage{../../mypackage.sty} According to that, I have done following example document: ...
2
votes
1answer
35 views

unexpected linebreak when using `\nameref` in marginpar

I have an unexpected linebreak in my \marginpar and don't know where it comes from. It appears right in the middle of the \nameref... Does anyone see the mistake? ...
2
votes
1answer
34 views

Disallow long words from flowing into margin by breaking early

I sometimes have long words that are unbreakable and end up sticking out into the right margin. I realize that there's nothing magical to be done about this and the only real solution is to break them ...
1
vote
1answer
45 views

Nice line-break in inline math within theorem environment

This is my first question here, I hope it's not bad (please bear with me if it is). I have quite a specific problem concerning inline math and theorem environment. In general, I want to obtain the ...
2
votes
1answer
62 views

linebreak in long URL? Breakurl won't break it

There are several questions on this site (for example here and here) where people are struggling with overfill hboxes when making clickable URLs. I have read and tried the answers there and none of ...
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 ...
1
vote
2answers
40 views

Some lines are formatted differently (overflowing) for a reason I can't tell

In my first attempt to use LaTeX a bit seriously, I formatted my CV using the template in ShareLaTeX. Some parts were confusing and I got some great help from here and finally produced a CV that ...
0
votes
2answers
34 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 ...
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} ...
1
vote
2answers
84 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 ...
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 ...
0
votes
1answer
48 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
61 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 ...
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
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. ...
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} ...
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
35 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} ...
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 ...
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. ...
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}}) ...
14
votes
5answers
930 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
0answers
36 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 ...
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 ...
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
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 ...
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? ...
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} ...
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 ...
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 ...