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

learn more… | top users | synonyms (1)

8
votes
2answers
84 views

badness for lines without glue?

I want to typeset a special paragraph which have some penalty items inside it but no glue. TeX always produces an overfull box for this paragraph. I have two questions: What is the line badness if ...
4
votes
2answers
42 views

how to avoid breaking a line in dmath mode?

I tried all 3 options above that I have seen recommended in other threads/answers, but none seem to work \begin{dmath} P (A>B \cap A>B+C)=P(A>B+C)=P(A=\nolinebreak 3 \cap B=\nolinebreak 1 ...
9
votes
2answers
129 views

Insert a character at beginning of each line after the current one?

I'm looking for a way to obtain automatically the following layout of French "continuous guillemets", used in old typography when a citation includes another citation that spreads over several lines ...
0
votes
0answers
29 views

How to get a new line in rtf2latex2e?

I am using rt2latex2e to convert .rtf files to LaTeX in Windows 8.1. It is working fine. But I am not able to find the line break. E.g.: converted as: 21 women's 1 day work = ...
7
votes
2answers
164 views

Underlined titles in bibliography with biblatex and ulem packages

I want to underline all titles in a bibliography using the biblatex package with Biber backend and the ulem package. biblatex seems to break ulem's line breaking capabilities. Please consider the ...
1
vote
1answer
89 views

no new lines in lyx output from the latex code insertion

\begin{widetext} \begin{displaymath} a+b=c;\\ d+e = f;\\ e+m = n;\\ \end{displaymath} \end{widetext} I am using the above code as an inserted Tex Code in Lyx ...
0
votes
0answers
32 views

Paragraph break adjustment [duplicate]

I've been encountering an issue regarding the spacing between paragraphs: In this particular page, as there is a new section starting right on the next page, the paragraphs are stretched in order ...
1
vote
0answers
56 views

ArabXeTeX ignoring \allowbreak

I've got an issue with XeLaTeX ignoring \allowbreak on lines that overflow by a small amount. I've tried to recreate the issue with English text but it does not occur. We have a large amount of data ...
4
votes
2answers
66 views

How to prevent linebreak in a command

I am using the package biocon, which allows to define species names at the beginning of the document, which can be used by writing e.g. \plant{At} which would be translated into "A. thaliana". ...
2
votes
1answer
43 views

Line break that doesn't work cumulative?

I'm looking for a way to write a macro that will add a line break after the text from the argument, but prevent that line break to add to another line break, if there is one following. If I use ...
1
vote
4answers
131 views

how should LaTeX know, where to break the 'equation' … somewhere in the exponential function?

I have failed to command latex to automatically enter new line as shown in the picture below. Here is my command: \documentclass{article} \usepackage{braket} \usepackage{mathtools} ...
2
votes
1answer
110 views

inline listing (lstinline) behaves bad at line end

I have defined some small macro to markup function names: \lstdefinestyle{inline-funcname}{ columns=fullflexible, breaklines=false, %Note: \usefont{OML}{cmm}{m}{it} is exactly like ...
4
votes
1answer
83 views

pgfplots: symbolic coordinates with line skipping

I am trying to skip lines inside the symbolic X coordinates of the following pgfplots Bar Chart : \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{color} \usepackage{amsmath, ...
7
votes
1answer
115 views

Relationship of \\, \newline, \raggedright, \RaggedRight, and parindent

I'm trying to understand if there is anyway to get \\, when in \raggedright or \RaggedRight, to produce a new line that is not indented, while \parindent or \RaggedRightParindent are set in order to ...
6
votes
1answer
4k views

moderncv - newline within a cventry

The information that I want to provide isn't fitting into one line. I am working with \cventry{}{}{}{}... I want to put information into a new line, still positioned to what is in the line above. I ...
4
votes
1answer
112 views

In table cell, how to break long words after “::” or “_”?

I have a software program can generate tables which may be very long and may contains words with many letters,so i use longtabu package. Some words may look like this: AAA_BBB_CCCC_DDDDD_CC ...
1
vote
0answers
23 views

Line break after \hfill [duplicate]

I hope this question is not a trivial one, but I was not able to find any answer to that. I found out that sometimes when I put an \hfill command in order to align some text to the right, there is a ...
2
votes
1answer
98 views

Is there any possibility of decreasing extra space before the equation when line nearly breaks in the following?

\documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{amsmath} \begin{document} Preliminary Theorem 1.1.2. If $(\lambda_1,...,\lambda_n)$, $(\mu_1,...,\mu_n)$, and $(k_1,...,k_n)$ ...
35
votes
3answers
38k 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 ...
7
votes
2answers
345 views

Title of beamer presentation runs outside the screen

the title does not continue on a second line but runs outside the screen Different .sty files are used but i'm not sure where the problem is located. The main .tex files is as follows ...
3
votes
2answers
412 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 ...
2
votes
5answers
136 views

Line breaking in equation

This is the equation I want to write in LaTex: I have read these advices, but for split and multilined commands it says that they are undefined (and also for multiline, but nevertheless this is not ...
8
votes
1answer
136 views

Use non-breaking space after name initials with biblatex macros

I want to enforce biber/biblatex to place non-breaking spaces between initials and last names of authors. Example: \documentclass{article} \usepackage[backend=biber,natbib=true]{biblatex} ...
1
vote
2answers
104 views

Understanding the linebreak at the beginning of itemize

I have a fundamental problem in understand how latex is typesetting documents. Consider my code \documentclass{article} \usepackage[margin = 0.75in]{geometry} \begin{document} \section*{ABC} abc ...
1
vote
2answers
109 views

How to automatically break “a long word with underscore” in a cell of table, using longtabu package?

I use longtabu package for creating tables, because the table can be very long (several pages) and i need automatic linebreak(or wordbreak) if the sentence(or a single word) in certain cell is too ...
3
votes
1answer
81 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 ...
5
votes
1answer
135 views

Line breaks in bibliography with biblatex/biber

I'm having trouble getting biblatex to break lines in a sensible way in the bibliography. Specifically, it seems that the line cannot be broken within the specification of chapter and/or page numbers. ...
9
votes
1answer
6k views

Forcing new line after item number in enumerate environment

How can I force the text of an enumerate item to start on a new line below the item number?
1
vote
0answers
26 views

How to specify custom behavior on line breaking [closed]

Is it possible to detect when LaTeX breaks a long line of text and add some custom behavior to it? Specifically, If a long sentence breaks, I want to prepend some code to all but the first line, ...
1
vote
1answer
82 views

Listing linebreaking not working

got a listing where the code include a very long sequence of characters (letters, numbers & other). With linebreak=true, the sequence gets broken at non-letter characters. However I still got a ...
4
votes
2answers
518 views

White spaces between color tabs and two other questions

!Partially solved! How to remove small white spaces between color blocks? (when you compile this tex there are small white spaces between the & \cellcolor{EM}\& & \cellcolor{EM}\\) I ...
4
votes
1answer
152 views

What can I do if a listing is too wide to fit in my two-column document?

I am writing a IEEE document with a LaTeX template I downloaded from the IEEE webpage. I inserted some MATLAB code into the document through the mcode package. It looks something like this: ...
3
votes
1answer
113 views

how to make a line between two rows in table? (when no space between strings)

I use longtabu package to build table, when I use \\ to separate every line, it is ok, see below \begin{center} \begin{longtabu} to \textwidth {|X[1 , p ] |X[1 , p ] | X[2 , p ]| X[2 , p ]|X[1 , p ...
8
votes
1answer
173 views

How to make ~ work for en-dashes?

I have a German LaTeX-document that tries to implement German en-dash line-breaking rules with ~ like this: \documentclass[twocolumn,a4paper]{scrartcl} \usepackage[T1]{fontenc} \usepackage{german} ...
5
votes
1answer
1k views

Pandoc: Markdown to PDF, without cutting off code block lines that are too long

I'm trying to convert a Markdown file into a PDF file using Pandoc. I have a lot of code blocks in my Markdown. And if I have a line of code that is too long, it will just be cut off in the PDF. How ...
3
votes
2answers
96 views

break an long line in an algorithm

I have a long line in an algorithm and want to break it into two lines. For similar case in equations, split can be used. How do I do this within an algorithm? \documentclass{article} ...
3
votes
1answer
185 views

How to make a line break in a TikZ matrix cell?

Can I use TikZ's own tools to make a line break in the matrix cells or do I have to use a tabular-environment or a \parbox? MWE (doesn't work, I included the faulty code) \documentclass[ 11pt ...
5
votes
1answer
467 views

Listing, zebra effect and broken lines

In Creating a zebra effect using listings, I've found one solution to produce a zebra effect for listing. Unfortunately, this only works if the lines are not broken. Is there a way to fix this? Here ...
4
votes
2answers
1k views

Why \\ does not go to new line in equation?

\begin{equation*}\label{eq:pareto mle2} A_0 = \frac{1}{(\alpha+t_x)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + t_x} \right ) "\\\" <br> - ...
3
votes
1answer
108 views

How to right-justify URLs inside a table?

I have a table containing a URL, and I want the URL to break so that the URL is right-justified along with the other text. In my example below you can see that the last few lines are not ...
1
vote
1answer
65 views

Prevent longtable to split cells while using \hline

although the question seems to be trivial and to be answered several times, I have not found a solution yet :-( I'm using a longtable to describe a set of computer benchmarks. Each benchmark entry ...
6
votes
4answers
186 views
4
votes
2answers
90 views

Line breaks in custom command that uses tabular environment

I am using a resume template I found here - http://www.davidgrant.ca/latex_resume_template There is a custom command, based around the tabular environment, which is in the MWE below. I would like to ...
2
votes
1answer
116 views

Problem with dash using XeLaTeX

I am writting with LaTeX my bachelor thesis. I am using XeLaTeX because you can easily highlight text with the xesearch package. My problem is that words with a dash like HTML-Request are not broken ...
5
votes
1answer
33 views

“and” in citation in the end of row

I write my article in Czech language where "and" = "a" and this little word can't be in the end of the row... how can I force bibtex not to write "and" (or anything else) in the end of the row in ...
63
votes
5answers
4k views

Avoiding “rivers” in successive lines of type

This question led to a new feature in a package: impnattypo The following quote is from James Felici, The Complete Manual of Typography (2003), p. 161: Rivers occur when word spaces stack ...
4
votes
1answer
195 views

Adding a blank line in algorithm2e

Is there any way to add a blank line in algorithm2e? I have the following document: \documentclass{article} \usepackage[linesnumbered]{algorithm2e}% http://ctan.org/pkg/algorithm2e \begin{document} ...
3
votes
1answer
118 views

two columns column breaks

\documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof,parskip=full]{scrbook} class and two columns there via "\twocolumn". It works fine mostly but in some instances of the texts involved I have the ...
1
vote
1answer
93 views

Putting an equal sign both at the end and at the beginning of the line (dmath)

I'm using dmath for my equations, because it breaks lines automatically. I've been taught that if I have two formulae separated by an equal sign and they are on different lines then the equal sign ...
2
votes
2answers
148 views

Any way to check with a macro if an equation is too long to fit into a single line?

I have some very long equations which span a few lines. I'd like to Break lines automatically. Pagebreak. Have an equals sign both at the end of the first line and at the beginning of the second ...