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

learn more… | top users | synonyms (1)

3
votes
1answer
43 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 ...
3
votes
1answer
35 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, ...
4
votes
1answer
56 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
18 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
0answers
68 views

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

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)$ ...
7
votes
2answers
173 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 ...
0
votes
0answers
39 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 ...
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 ...
1
vote
2answers
73 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 ...
8
votes
1answer
88 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} ...
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 ...
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, ...
4
votes
1answer
47 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. ...
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
1answer
78 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
89 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
60 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
157 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
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} ...
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
35 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
46 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 ...
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 ...
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
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 ...
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
123 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 ...
2
votes
2answers
83 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 ...
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 ...
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 ...
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!
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}+ ...
3
votes
0answers
11 views

Bibliography URLs missing part when using lmodern [duplicate]

I'm creating a document that contains urls in the bibliography. That works just fine and the urls are broken to new lines at appropriate points. The only issue I have is that the two pdf viewers I've ...
0
votes
2answers
45 views

multiple aligns and line breaking

I am trying to have multiple alignment in my equation in addition to line breaking. Here is a mwe illustrating my problem: \documentclass[10pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath, ...
5
votes
1answer
85 views

Section break that displays content iff it occurs in middle of a page

I'm trying to create a section break that will display a separator when it occurs in the middle of a page, but display nothing if it lies at the top or bottom of a page, where there's nothing to be ...
1
vote
0answers
79 views

How to respect 80-character limit per line of text in source code

Suppose I have a long line of italicized text in a report or other document. If it is more than 80 characters long, I may want to move everything after the 79th column position to the next line in ...
7
votes
2answers
278 views

How come the tilde ~ sometimes does not behave like non-breaking space?

This is again one of the behaviors that are quite difficult to catch in a reconstructible (and simple) example, so one has to resort to animations. Basically, the issue is this: the tilde (~) is ...
2
votes
1answer
83 views

Text is not fitting the column

I want my texts to continue in the next line instead of continuing in the other column. How can I manage this? My code is : ![enter image description here][1] ...
2
votes
1answer
50 views

Manually break biblatex entry like date or number

I am running Biblatex with Biber and TexnicCenter with Miktex. How do I manually break the date or put it on the next line if it is at the end of an entry (ISO 8601, has to be broken or on a new ...
5
votes
4answers
148 views

Remove space in Emails

In a paper I need to remove spaces between two emails of an author with two affiliations. The code is below: \documentclass[10pt,twocolumn,letterpaper]{article} \begin{document} \title{Title} Author ...
6
votes
3answers
84 views

bigdelim and text with multiple lines

I have a table with a common label for multiple lines. Using bigdelim I place brackets to give explanations. My explanation has too much text for one line, so I would like it to break over multiple ...