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

learn more… | top users | synonyms (1)

7
votes
3answers
228 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
97 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
55 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
12 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
90 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
110 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
302 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
88 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
54 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
153 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
91 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 ...
2
votes
1answer
42 views

Listing package showing newline after the last line of code

I haven't been able to suppress this newline only with configuration. In the listings documentation it is said that the showlines option if set to false won't let the newline appears, but that is not ...
8
votes
2answers
80 views

How do I separate items within a line so that the separator automatically does not appear at either end, and items are not line-broken?

In my CV, I have lists that look like this: wizardry \tdot fluid dynamics \tdot applied bear wrangling \tdot calculus \tdot [...] where \tdot is a \textperiodcentered character along with some ...
1
vote
0answers
48 views

Text moving outside of justification margins

Apologies if the title is incorrect, but I'm not entirely sure how to describe the issue I am having. Please see the image below for clarification. The text should be justified, but in random spots of ...
2
votes
2answers
183 views

Why graphics do not respect the end of line?

I see this all the time, inline graphics (in this case tikz picture) do not obey line breaks and flow like a word. In this example document, there are no forces new lines and the picture sticks out ...
5
votes
4answers
184 views

Word stacking in math mode

I have this wordy equation and don't have much room in my two-column article style. I want to stack small expressions with a "partial line break", so as to save room. I figured it out, but it isn't ...
4
votes
1answer
125 views

very bad underfull hbox

I would like to include a progress bar in my presentation and, when in draft mode, a page number below the progress bar. I have the code to do this, and it looks great, but I get one instance of this ...
5
votes
1answer
98 views

How can I prevent TeX hyphenating one occurrence of a word (locally)?

I'm currently typesetting a test using the exam class and the test consists of some True or False statements. Some statements span a couple of lines, but some could fit in a single line, except for ...
2
votes
2answers
68 views

How to break line of subscript under min?

$$ \min_{c^{(1)}, c^{(2)}, \cdots, c^{(m)}; \\ \mu_1, \mu_2, \cdots, \mu_K} \frac{1}{m} \sum_{i=1}^m \left\lVert \vec{x}^{(i)} - \mu_{c^{(i)}} \right\rVert $$ The \\ does not seem to do the trick? ...
5
votes
2answers
67 views

How to keep a short word together with the rest of the sentence?

I'm writing an article. In a certain paragraph, the last sentence is spread over two lines. The second line is just a short word ('in') and that's a bit ugly. Is there an easy way to keep it together ...
5
votes
2answers
181 views

Changing the rules of line breaks

I used pgfplotstable to read the data from a file. The columns have fixed widths. The third column contains usual text and the lines are broken nicely. The second column contains mathematical ...
1
vote
0answers
27 views

line exceeds margin in cover letter [duplicate]

I used newlfm to create a cover letter. However after I made some pieces of text bold, italics and underlined, some lines exceeded the margin. I then used \sloppy. Still, there is one line that juts ...
1
vote
1answer
51 views

make a title for a poster

It will be very helpful if someone kindly help me fixing the title of the code below: \documentclass[a0,portrait]{a0poster} \usepackage{tikz} ...
3
votes
1answer
37 views

Text hypenation inside array-typed environment

I'm trying to write a cases or array environment, inside display mode, with some long line of text. The thing is I can't achieve a linebreak. I know for certain that array won't allow this. I also ...
2
votes
2answers
177 views

How can I make my title wrap in a tikzposter [duplicate]

I'm making a poster using the tikzposter document class, it's working nicely except that my title is too long and I can't make it wrap, I've tried \\, \protect, \newline and \par. \\ and \par throw ...
2
votes
1answer
72 views

Table with a single column using text-wrapping

I have a table with 3 columns. The first two just have cells with 1 or 2 short values which I do not want to wrap and I want to be the minimum allowed size. The 3rd column has a lot more text, and ...
3
votes
1answer
493 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 ...
5
votes
1answer
97 views

Why might \\* (“line break here, but no page break”) not work, and how can one fix this?

One is often taught that "\\ causes a line break which is not a paragraph break" and "the variant \\* additionally prevents a page break". (I hereby acknowledge user egreg's admonition that "\\* ...
0
votes
1answer
43 views

How to make tabbed newlines

I need to make my text look like this for a homework assignment, how can I achieve that? (Sorry if the title or tags don't fit, I don't even know how this is called)
7
votes
2answers
226 views

Breakable fill-in blanks

What is a good way to create blank space (preferably, underlined -- it is to be filled in by hand when document is printed) that takes up all the remaining space on a line. The blank space may appear ...
13
votes
2answers
400 views

Breakable period

LaTeX will not insert a line break before or after a period . I understand why you'd want to avoid line break before a period, since you'd otherwise get stranded periods at the end of sentences. I ...
2
votes
1answer
93 views

Using Sagetex on cloud.sagemath.com, is it possible to make Sageblock code wrap automatically?

Creating a LaTeX document on the Sage Math Cloud. Whenever I use a sageblock, I end up with endless typesetting warnings because the notes and code inside the sageblock does not automatically wrap ...
5
votes
1answer
283 views

Latex Table - \smallskip breaks vertical lines

I am creating a table, in which I want to separate groups of lines, using \smallskip. However, at the very left of the table there is a \multirow cell, whose vertical lines are now broken. Is there a ...
2
votes
0answers
24 views

Curly brackets with long content cross the margin [duplicate]

I wonder if there is a way to break a line when it is too long with a curly bracket crossing the margin. Thanks. \documentclass[12pt]{article} \begin{document} blablabla blablabla blablabla blablabla ...
3
votes
1answer
95 views

How to prevent globally and strictly Overfull by relaxing Underfull or justification?

To suppress overflows, on one extreme, we have ragged layouts which suppress justification : \usepackage{ragged2e} % ...
4
votes
1answer
45 views

How can I change the low, med, high penalty settings for \linebreak? Or perhaps there's better way of breaking lines?

This question really belongs as a comment to Applications of various strength of \linebreak command but unfortunately my reputation is so low that I'm not allowed to comment. ...
0
votes
1answer
69 views

How to paste a line break into the find box

This is a very, very simple question, but I can't seem to find an answer anywhere. I pasted a document from Word into TeXnicCenter. The tabs copied over nicely, and I can paste those into the find ...
6
votes
2answers
121 views

What to do with both “underfull \hbox” and “overfull \hbox” in the same line?

I've recently read through my \jobname.log files to spot errors in typography. I came across this: Overfull \hbox (6.8925pt too wide) in paragraph at lines 650--651 [][]\T1/cmtt/m/n/10 ...
3
votes
2answers
56 views

Reducing spaces

I have a paragraph in itemize. The paragraph is a long one as as a result it moves to a new line. However, I want to reduce the interline space. I have used \baselineskip but it is making the text ...
1
vote
2answers
39 views

LaTeX doesn't break lines with capitalized words to the end properly

I have a text like: Lorem ipsum dolor sit amet, consetetur BRANDNAME sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero ...
4
votes
1answer
107 views

What, in the custom class I use, prevents line breaking in listings?

I have found how to wrap code inside lstlisting block. When my document has article class, everything works as expected. However, when I change the document's class to one I need in my work, lines do ...
3
votes
2answers
47 views

How to run \IfSubStr on a macro parameter that may contain a newline

I have a macro where parameters may contain newlines but when one does, everything seems to break. How can I prevent this problem? I also want \IfSubStr to look for a match anywhere in the ...
2
votes
1answer
45 views

Line breaking of URLs at “-”

I have a URL in my bibliography which line-breaks in an unpleasant way. The URL breaks as follows: http://www.mathworks.se/help/matlab/matlab_oop/(break) implementing-operators-for-your-class.html I ...
4
votes
3answers
82 views

How can I put the vertical line using multicolumn?

How can I fix the vertical lines? \begin{landscape} \begin{table}[htbp] \caption{Cronograma de Actividades} \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} \hline ...
6
votes
2answers
155 views

Using \\ to Start New Line [duplicate]

When I was initially learning to use LaTeX, the professor who taught me the basics instructed me to use \\ as a way to end a previous line and start a new line of text. However, many of the veteran ...
4
votes
0answers
51 views

Why `\\` is wrong here? [duplicate]

The following codes return errors \documentclass{article} \begin{document} cd\\ [asd] \end{document} But this one will work \documentclass{article} \begin{document} cd [asd] \end{document}
0
votes
0answers
69 views

Overfull in option of thm when using “showkey” usepackage

I have a problem when using the showkeys uspackage, I get overfull in the option of the thm statement. and when I remove the showkeys it breaks automatically. I do not know the error might comes from ...
0
votes
1answer
35 views

Reduce the number of lines of a paragraph [duplicate]

How can I tell Latex that I want my paragraph with n less lines? I saw a question some days ago, but after twenty minutes of heavy searching (I think), I found nothing. There is a “penalty” or ...
3
votes
2answers
74 views

How to remove unnecessary space in flalign* environment

This is the first time I've ever used TeX and I'm super confused as to why this is happening. When I used the flalign* environment within the enumerate environment, it leaves line break after the item ...