{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
3answers
185 views

Custom line breaking

I have a long line, which could be a url but is not always a url so I cant use url/burl package. I want to specify where to break (at '&'), and how to do it. Long line: ...
1
vote
0answers
86 views

why changing page margins using geometry package causes bad math inline break?

I had no idea that changing page margin size can cause problems with line break with in-line math. I have this MWE that shows one problem. I like to make the page margins smaller, so I can fit more ...
0
votes
1answer
62 views

How to justify a very long ciphertext and corresponding plaintext in Latex? [duplicate]

I have a very long ciphertext and corresponding plaintext both are of 680 alphabets without space to print in a latex document. I have not found any way to make justify it in internet. Any Ideas ...
10
votes
1answer
167 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...
5
votes
1answer
147 views

Linebreaks after bib items for Bibstyle (using BibLaTeX)

I am currently suffering of a strange bibstyle problem with line breaks. There is a missing space between bib items in the bibliography, which is generated using BibLaTeX. Even though I am using ...
0
votes
2answers
172 views

continuing equation under the equal sign [duplicate]

how to continued the equation under the equal sign? I want to do it like this
6
votes
2answers
179 views

Preventing hyphenation of specific short, repeated, hyphenated words

I'm writing a document where I frequently refer to some experimental cases which are called things like "M-1" and "P-2". It's always a single number, a hyphen, and a single number. In several places, ...
1
vote
1answer
57 views

Preventing space instead of linebreaks

How to prevent space at a line break? a b c produces: a b c I want abc.
1
vote
1answer
1k views

Automatic forced line breaks in latex table

Im making a table where the last column contains a URL which may be quite large, so I want to make automatic line breaks in this column. If I use p{3in} in the table, some of the URL are seen as one ...
4
votes
2answers
162 views

Lines overrun margins

I use custom 1 inch margins for most of my homework but for some reason LyX likes to ignore the margins sometimes, for example: I don't know why it keeps doing this it happens in a lot of my ...
4
votes
3answers
252 views

Automatic line-breaks in tables?

I'm writing a short tabular CV that I have to add to my thesis. I thought a quick way would be to use a table for that purpose: \begin{tabular}{ll} 2009-present & very long text 1, very ...
5
votes
1answer
95 views

Is it true that it is impossible to insert manual line breaks in URLs that are part of a biblatex reference?

After having looked through quite a number of questions about inserting line breaks within URLs, I'm still wondering about a specific case: manual insertion of line breaks in a URL in biblatex. So the ...
9
votes
2answers
139 views

How to rigidly chop long lines in plain TeX

I am using plain TeX and want to typeset an appendix that contains several hundred URLs. When a URL goes past the right margin, I would like TeX to stop printing (i.e. not carry into the margin, not ...
12
votes
2answers
390 views

Nonbreaking dash that allows hyphenation

The babel package provides useful dash variants, e.g. "~ for a non-breaking dash that forbids hyphenation in the parts, and "= for a breaking dash that allows hyphenation in the parts. However, ...
3
votes
1answer
246 views

Should I use \\ to end a line or a paragraph? [duplicate]

I am somewhat confused as to how to approach the following issue. In my thesis is have a lot of text and want to group this is using line breaks and paragraphs. Up to now I have been using \\ to ...
0
votes
1answer
26 views

How to prevent aligned equations to shift when adding a non-aligned line break?

I have an equation in the aligned environment to align the equal signs together. However, the last equation is too long, and I want to break it up. When I insert a linebreak, all the equations above ...
8
votes
3answers
252 views

“Fill in the missing words” needs line breaking before a \phantom{word}, and a list of removed words

Apologies for the very long title. I'm writing a "fill in the missing words" document. I have made a makro \fjern{} ("remove" in Norwegian) which underlines the argument and places it in a phantom ...
5
votes
3answers
141 views

How do I break a line without breaking a column?

I would like to have a forced line break without having a break in a column, similar to how the //* gives a line break while preventing the page from breaking. Specifically, I would like to be able to ...
1
vote
0answers
64 views

\relpenalty=1000 problem [closed]

I was trying use \relpenalty to fix a formula which was breaking and I tried to use \relpenalty=1000: turns out now my layout got crazy and most of my images are now at the end of the chapters, in the ...
0
votes
0answers
134 views

Detect a newline after dollar $ sign

I would like to be able to use \ifnextchar to check if the next character is a new line character. The reason is that I would like to redefine the $ sign to behave differently if it is followed by a ...
2
votes
1answer
62 views

TeX4ht - prevent line breaking in HTML?

By default, TeX4ht breaks long lines of text in the input into shorter lines in the output HTML file. Is there any way to suppress these extra line breaks? (Note that I am trying to avoid extra line ...
1
vote
1answer
110 views

Split line if too long

I am sure that this has been answered here many times, but I can't find a duplicate. My question is what to do with lines that are "too long", i.e. that overflow into the margin. I think the problem ...
3
votes
1answer
87 views

I want to have pbox have line breaks where the margin falls

I am using \pbox to have line breaks in a table, but cannot seem to figure out how to have it break at the "natural" location where the margin begins. Here is my code: \documentclass{article} % ...
1
vote
1answer
80 views

What is the proper way to ensure/avoid non-break with item and subitem?

This is a rather basic question, but I wanted to know what the proper bracketing is or options to protect page breaks between items in 'itemize'. That is, items can be broken across pages but not ...
3
votes
1answer
199 views

Hyphenation when using \verb command

I'm having a problem using \verb command. Usually when I want some verbatim font in the current line (not in a new paragraph) I use the \verb command, not the verbatim environment. So, when I use ...
15
votes
1answer
198 views

Expand abbreviation automatically at beginning of line

According to an tradition in Spanish typesetting (Martinez de Sousa, MELE4), the abbreviation etc. should be fully expanded to etcétera when it appears at the beginning of the line (Spanish page in ...
3
votes
2answers
78 views

Why linebreaks break the line height within certain environments with size-changing macros?

Why linebreaks break the line height within certain environments with size-changing macros? I'm trying to understand what's the difference between these three approaches: \newenvironment between {} ...
2
votes
2answers
247 views

paralist package: \setdefaultleftmargin{0em}… doesn't properly align wrapped lines

I am using the paralist package to create very compact lists (for a poster). I'd like to use \setdefaultleftmargin{0em}{2em}{}{}{}{} to set the indentation of itemized lists to zero. This works ...
4
votes
1answer
92 views

Keeping first and last rows of a pgfplotstable with longtable on a page

I am using pgfplotstable along with longtable. Everything works good, but sometimes a single row can be on one page, which is kind of ugly. How can i keep the first 3 and last 3 rows of the table on ...
5
votes
2answers
134 views

Preventing \mbox or \fbox from exiting the page

I am trying to do something like this: \documentclass[a4paper]{article} \usepackage[top=0mm, bottom=0mm, left=0mm, right=0mm]{geometry} \begin{document} \noindent \fbox{\hskip1cm Some text ...
2
votes
0answers
80 views

break line at comma inside listings [closed]

I'm trying to do some listings environments, but I'm encountering problems. The ideal output is this: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,⤦ ⤷ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
5
votes
3answers
2k views

How to center table caption that includes a newline

My table caption spans more than on line so I added a \newline to split the caption at an appropriate position. Now, the two lines are left aligned. How do I center the two lines of the caption? ...
2
votes
1answer
337 views

How to remove the extra blank line in algorithm2e

I want to add a right aligned comment in LaTeX after \For command, but it adds an undesired blank line. Please help me. CODE: \For(\tcp*[r]{Incremental calculation of edges}){$i \gets 1$ ...
3
votes
1answer
73 views

Weird new line using \cmpd from chemnum in long headingtitles

I have a problem using \cmpd in a heading, that is too long. For some weird reason, the compound number gets put on a new line, even though there is no need. I already have a workaround using ~, but ...
1
vote
1answer
228 views

Text wrapping in a minibox?

For a class I'm given access to a LaTeX version of the homework so that it's easier to fill out. We're given boxes we're suppose to answer the questions in similar to: \begin{picture}(420,570)(0,0) ...
5
votes
1answer
102 views

Break between words when line becomes too full

This example: \font\standard="Arial Unicode MS" at 10pt \standard \newlanguage\nohyphens \language=\nohyphens \hsize = 150mm \parindent = 0pt \vbox{ \setbox2=\hbox{\hskip12pt‣\hskip3dd} ...
8
votes
1answer
172 views

Break line only if it's too long, but breaking won't create a new page

I'm the author of the contracard package/class for typesetting calling cards for traditional dances. Currently, if you typeset a particularly long figure on a calling card it wraps like this (look at ...
9
votes
1answer
254 views

How to use less space for ~

In a paper, I need to use the abbreviated form of Figure as in "see Fig. 2". To avoid line breaks between Fig. and the number itself, I place a ~ in between. However in that case, the inserted space ...
1
vote
1answer
764 views

Add a percentage error using siunitx package

I have a problem with the siunitx package. What I would like to do is the following. I have a number which for instance equals 145 and has the units mm. However, there is also an error expressed in ...
7
votes
2answers
1k views

Linebreak of words in math mode

I have some texts in math mode which does not break during justifications. For example, $A_xB_yC_z$ and $D_xE_yC_z$ The above two 'words' if at the end of a line, do not break and disrupts ...
1
vote
1answer
161 views

Resizing and line breaking for individual matrix entries

To make things easy, I have put up a pic here, I do not understand how I can reduce the size of the long entries in the matrix (the diagonal entries primarily) and also introduce line breaks so as ...
4
votes
1answer
107 views

Please help me fix a problem of tabbing

I typed a paragraph in tabbing environment. I use \= to place tab, and \> to move to tab position. It's alright with short line. But with long line, it out of line width. I don't know how can fix ...
0
votes
0answers
111 views

Long math expression in the middle of text exceeds the width page [duplicate]

I have a long math expression in the text, and it exceeds the width page. How can I fix it in middle of text? $x \in \left(10\%, 15\%, 20\%, 30\%, 40\%, 50\%, 60\%, 70\%, 80\%, 90\%\right)$
3
votes
0answers
30 views

Deleting new line when beginning new theorem in a list [duplicate]

I am using the package amsthm to type my assignments and I have encountered the following problem. Here's the code I use: \newtheorem{claim}{Claim} : : \begin{enumerate} \item \begin{claim} ...
1
vote
1answer
41 views

Prevent line break at one specific spot

I have \myDefineTerm{longFunctionName}($\pi$).... and want to tell LaTeX not to break the line just before the open bracket. Is there something like ~ that pretent a line break, but does not cause ...
2
votes
2answers
56 views

\item that starts with a number doesn't work with style=nextline

I've got a list of items and use style=nextline. Problem is, when a list-item starts with a number, the nextline doesn't work: \begin{example}[style=nextline] \item[3D] Doesn't line-break before ...
2
votes
1answer
279 views

Title in subfloat without line-break

My code is like this, but the title of subfigure is with line-break, which looks very ugly? How can I solve it? \begin{figure}[!ht] \centering \subfloat[Subgraph]{ \label{fig:subg} ...
1
vote
1answer
482 views

\medskip doesn't seem to work

I've just begun using TeXShop but seem to have come across a problem - I have a centered section that uses a \medskip right after a newline. Like so: \begin{center} Some text \\ Some subheading \#1\\ ...
3
votes
1answer
105 views

Overlong line even with suggestions for hyphenation

I have a paragraph which starts with \documentclass[a4paper,11pt,twoside]{book} \setlength{\textwidth}{14.6cm} \hyphenation{MnTPPCl CoTPP} \begin{document} We studied surface doping with the ...
1
vote
0answers
82 views

How to set word wrap for enumerate items in booklet?

The code below is based on the code from booklet manual Chapter 2. I used the enumerate environment. The problem is that words are stretching out of the paper. It won't break line automatically: I ...