{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
0answers
25 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
17 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 ...
-1
votes
0answers
57 views

How to break lines in a cell of table? a very long word contains “::” or “_”

I use "longtabu" package to create a table. The reason I choose longtabu is, first it can deal with very long table, second it can automatically break lines to fit the width of a cell. But I got a ...
1
vote
1answer
84 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)$ ...
31
votes
3answers
31k 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
172 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
334 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
113 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 ...
0
votes
0answers
36 views

Websites in Biblatex: new line when the URL is too long for the remaining space

I am currently using Biblatex for my references. However, sometimes, the URL is written close to the line ending and it looks very bad. I would rather like to make a line break BEFORE the URL to avoid ...
8
votes
1answer
87 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
72 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 ...
0
votes
2answers
65 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
35 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 ...
4
votes
1answer
46 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. ...
8
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
23 views

How to specify custom behavior on line breaking

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
75 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
473 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
77 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
87 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 ...
0
votes
0answers
58 views

Tex file with warning “underfull \hbox” produces a weird square sign

I have a TeX file to produce PDF, but there are many warnings (underfull or overfull) when I compile the file. For example, below picture shows a warning for underfull \hbox. Above is the TeX-code, ...
7
votes
1answer
155 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} ...
3
votes
1answer
299 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
37 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
121 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
449 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
131 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
77 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
34 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
166 views

Line breaks in part of the equation in math mode - how to?

Does anybody know how to do this: Thank you!
1
vote
0answers
44 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 ...
4
votes
2answers
45 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
78 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 ...
4
votes
1answer
29 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 ...
62
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
41 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
53 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
52 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
122 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 ...
4
votes
2answers
87 views

Align split equation to the margins

How to align a two-lined equation such that the first line left aligns with the surrounding text and the second line right aligns with the surrounding text? Example (where the pipes denote the left ...
2
votes
2answers
82 views

Custom line breaks in biblatex bibliography entries

I'm using biblatex with bibstyle=authoryear option. I'd like to customize the style to insert a line break after the year in each bibliography entry. Currently, an entry looks like this I'd like ...
0
votes
0answers
21 views

How do I use \StrSubstitute for a custom environment containing custom commands (Use of \@xs@StrSubstitute@@ doesn't match its definition)

This might be a tricky one... I have a custom command which highlights "properties" \pdesc{Property name}{DE}{EN}. Depending on the language (determined using the jobname), either the DE or EN ...
7
votes
0answers
53 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 ...
3
votes
2answers
217 views

Right-align the prebreak symbol in a listings environment

I’m using the breaklines and prebreak option with listings, but I find it visually not very pleasing that the prebreak-symbols are not vertically aligned. I’d prefer if they were all on the very right ...
2
votes
1answer
53 views

How can I force to print exactly at the end of the line? [duplicate]

I would like to force a linebreak, but at the same time I would like to force LaTeX to print at the and of the line, so I would like no space at the and of the line!
1
vote
0answers
45 views

Line breaking in math mode

Under default settings a line can be broken in math mode after binary operator with \binoppenalty or after relation with \relpenalty. I'd like to preserve this behavior but alter the result so the ...
7
votes
3answers
222 views

How does (or, what happens when) Tex typeset(s) a line and linebreak?

I could not find references to this with a cursory search, so I thought I'd post a question; I'm aware this is probably discussed at length in the Tex book or similar, but unfortunately I don't have ...
3
votes
1answer
91 views

Linebreak followed by bracket

I tried to find a topic here on this (possible problem) but I didn't. I reported it at TeXstudio SF but Tim Hoffmann pointed me that it is not a problem of editor. After tested with nano and ...
2
votes
1answer
54 views

Line break and text arent working

I am new to LaTeX and I am having trouble with \text and line breaks. My code is as such $$\text{if} y^{(t)} \neq h(x; \theta, \theta_{0}) \text{then} \\ \theta^{(k+1)} = \theta^{k}+ ...
2
votes
2answers
252 views

Line break “no line to end”

I would like to know how to force a gap say in this instance: \subsection{$K\nsubseteq L$}<br> [Line break here]<br> In the next three results that follow, ... Naively using \newline or ...