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

learn more… | top users | synonyms (1)

5
votes
0answers
177 views

Is it possible to allow linebreaks in the ISBN number of (auto-generated) bibliography files?

I hope it's not a duplicate but I was not able to find a solution. I generate my *.bib file using Citavi. The problem is, that if the ISBN number is near the end of the line it generates overfull ...
4
votes
0answers
86 views

Dealing with slightly overfull \hbox's

Generally, how do you deal with lines that are slightly overhung, when microtypography is already enabled, and there's no way of hyphenating the hanging word and no desire to put it on the next line, ...
4
votes
0answers
152 views

Text highlighting that works with CMYK xcolor mode?

I looked at Cool Text Highlighting in LaTeX, and as my MWE (below) demonstrates: ... the first part, highlighted with soul's \hl, fails when [cmyk]{xcolor} is used. The accepted answer in the link ...
4
votes
0answers
396 views

How to line-break cites correctly (hanging-over problem)?

while using Bibtex, I experienced an frustrating issue with line-breaks on cites in my block text. I have chosen to use the following bibtex implementation: \bibliographystyle{plain} \bibliography{...
3
votes
0answers
48 views

Detecting a line break

A command inside a word will make it non-hyphenatable for latex, giving an ugly overfull \hbox, see the first line of sample output. In the following example: \documentclass{article} \usepackage{...
3
votes
0answers
60 views

Need linebreak when \fbox exceeds the text area

Need to align a "fbox", when exceeds the text area. MWE: \documentclass{article} \begin{document} Blah \fbox{Text within box in horizontal line} Blah ... Blah \fbox{Text within box in horizontal ...
3
votes
0answers
54 views

Automatic line breaking for English

I have c. 80 pages of English text that naturally contains (in)definite articles. The text is block-aligned. The problem is that the article sometimes remains in the end of line and the noun starts on ...
3
votes
0answers
91 views

linebreaking of name-year citation style in arxiv version

I was trying to submit a manuscript to the arXiv using the imsart package: see here. I am using the name-year citation style, and it works well in my own tex compiler. However the version that the ...
2
votes
0answers
16 views

Citation Breaking Across Lines

I have a citation that is being split across 2 lines. Specifically, I have "author last name" at the end of the first line and "(Year)" at the start of the second line. I want both pieces to be on ...
2
votes
0answers
37 views

Formatting Code around Line Breaks

I am typing up a sentence which contains code, and \verb's ignorance of line breaks is annoying me. This code is very short, and it does not make sense to give it its own line, but I also do not think ...
2
votes
0answers
37 views

Marking line wraps

I have the following MWE to typeset two text paragraphs with the first line outdented. \documentclass{minimal} \usepackage{lipsum} \begin{document} \parindent=-1em \lipsum[1-2] \end{document} How ...
2
votes
0answers
45 views

Put together 2 lines with their respective format

In the first picture I highlighted 2 texts in different lines, "text 1" and "text 2". I want both on the same line just separated by "-" symbol. And I want each text with their respective format. How ...
2
votes
0answers
24 views

parskip (or line spacing) for conversations

I post the example here to illustrate what i want. \documentclass{article} \setlength\parindent{0pt} \usepackage{blindtext} \begin{document} \section*{default} \setlength{\parskip}{10pt} This is the ...
2
votes
0answers
43 views

Width of the table

i have a problem with the the width of a table,this is the code: \begin{table} \centering \begin{tabular}{|cl|c|c|} \hline & \emph{\textbf{OWL ...
2
votes
0answers
73 views

Place \mbox around elements in a list

I am trying to achieve essentially the same effect as asked for in this question, except that I want to redefine \item to achieve the result automatically. Specifically, I am trying to use an inline ...
2
votes
0answers
33 views

Enforce automatic breaking of long lines and and indent broken lines

I have many tex documents like that below which I want to translate with pdflatex. The files are the output of a vim-plugin which generates formatted output from vim's internal syntax highlighting. ...
2
votes
0answers
34 views

Widow numbers and \cite seprated from the previous words

I did search for this (even asked for help in meta), but found nothing. Sometimes I need to use tilde ~ to keep things looking good in situations I fell LaTeX should do it automatically. Examples: ...
2
votes
0answers
75 views

How to avoid orphan line between two figures?

I have a annoying line between two fingers, I would like to avoid this: I have tried to change the paragraph location before the second figure, but even though I still have an orphan line at the ...
2
votes
0answers
59 views

Resolving troubles with line breaking in paragraph

I am working on a larger project with text I cannot alter at all, so I obviously run into various troubles with overfull and underfull hboxes &c. Therefore I've created the following macro (using ...
2
votes
0answers
48 views

Line break with supertabular won't work

So, I have a really long list of symbols that I decided to create with supertabular. I'd like the table to split as it goes over to the second column, so I used {multicols}{2} but I found out that it ...
2
votes
0answers
62 views

sagetex with breqn ? break line sagetex equations

When using sagetex, it often produces very long equations that are not visible anymore because they go over the page width. How to fix that? I could work around it by loading the .sagetex.sage into ...
2
votes
0answers
241 views

R-code linebreaks AND themes in knitr

hpesoj626 provides two great minimal working examples for how to get R-code linebreaks AND code highlighting in knitr. I was wondering if it was possible to use Yihui's knitr themes within either of ...
2
votes
0answers
62 views

Best way on “how to prevent overfull boxes with parameters”

I need to prevent overfull boxes, so that there is never a line larger than \hsize. Is there a way to do this with parameters alone without setting \emergencystretch to a large value? The problem is: ...
2
votes
0answers
697 views

mdframed - eliminating newline and top/bottom space /margins

I'm totally new to (La)TeX, but trying to learn to become more independent. So I'm writing a document which includes periodical revisions that need to be marked in a specific way (a thick black ...
1
vote
0answers
25 views

line breaking has no effect in doublespace

I am trying to break a doublespace content without any success. \documentclass{article} \usepackage{amsmath, amssymb, graphics, setspace} \begin{document} \begin{doublespace} \noindent \(\left\{\...
1
vote
0answers
50 views

Removing carriage returns in LaTex file

I have huge list of references in \bibtex format that I need to alphabetize. Unfortunately, the original list included carriage returns to wrap the individual entries and keep them compact in the .tex ...
1
vote
0answers
32 views

newline just before \cite

Is there anyway to insert a newline just before \cite command i tried with \\ and \newline but i could not compile my document i got errors just where i inserted the \\ and \newline here is my latex ...
1
vote
0answers
16 views

Preserve linebreaks in command argument

I'm using the pdfpcnotes.sty style from https://github.com/cebe/pdfpc-latex-notes and I'm currently trying to make it preserve newlines, i.e. if I write \pnote{ * Foo * Bar } I want this to ...
1
vote
0answers
21 views

How do I minimize tabulary width, contingent on minimizing height or lines per row?

I frequently find that I want to make a table with final column (typically out of 3-5) that will automatically break over multiple lines. So I use \begin{tabulary}{\linewidth}{llL} [...] \end{...
1
vote
0answers
41 views

spaces in references in pdf view

I am using book document when I view my work on pdf, some of references looks like this with spaces. how to avoid them? Can I change "bibliography" to "references"?
1
vote
0answers
17 views

Nonbreakable space for bibliography

Why do we need to use a nonbreakable space ~ for the bibliography ? For example, in the book "More math into LaTeX" by G. Gr├Ątzer, on pp. 47, the following snippet of code is given: \bibitem{eM57a} ...
1
vote
0answers
49 views

Problem in combination of longtable and stepcounter{rowcount}

I am making a longtable consisting of 3 columns: linenumber of the text in the table, column with a short abbreviation and a column with possible a lot of text. Since the third column contains a lot ...
1
vote
0answers
41 views

colorbox highlighting: overfull hbox

For a current LaTeX-Document, I've done some highlighting using colorboxes around specific words or formulas. This works quite well, although, of course, the colorbox doesn't do line breaks when it is ...
1
vote
0answers
34 views

Automatic linebreaks for equations in tabular environment?

I have so far tested the breqn's dmath environment example here but it does not work with tabular in rotating's sidewaystable, resulting into \cr errors in wrong place. So How can you automatically ...
1
vote
0answers
75 views

Automatic line break in writing pseudo-code using algorithm package

I am going to write a pseudo-code using the algorithm package. Everything is fine, however, I am not able to automatically break lines and you see what happens in the picture below: I am wondering ...
1
vote
0answers
54 views

How to make the fully justified code at line-breaks?

I have a problem for using algorithm2e package. I am writing a algorithm just like \begin{algorithm} \caption{RM-MEDA} \label{alg1} Initial a population $Pop(0)$ and compute the $F$ ...
1
vote
0answers
50 views

Multiline latex equation

I have latex equations within \[ ... \] commands. Some of them doesn't fit page width and they have newline command \\ inside. I tried to surround these equations with gather* environment which works ...
1
vote
0answers
95 views

combination of \underset{} and \ul{} prevents linebreak

Here is the MWE. I am sorry for not putting it earlier. \documentclass [11pt,letterpaper,twoside,openright]{book} \usepackage{amsmath} \usepackage{soul} \begin{document} This is the example to ...
1
vote
0answers
50 views

Formatting latex code in lyx

I have been using lyx and have run into text formatting issues when using math inline formulas. For example, the code bellow: is converted to: How can I make the formula fit the numbered list?
1
vote
0answers
140 views

Small Line Inserted into Sharelatex

I'm trying to figure out how to insert a small straight and horizontal line segment into a Sharelatex text file. Any ideas?
1
vote
0answers
132 views

Automatic line-breaks in a long display-mode equation

I have a long sequence of equalities and inequalities in a display-mode formula. Currently, this formula is longer than the page width. Is there a way to tell LyX to automatically break the formula ...
1
vote
0answers
458 views

\newline not working with longtable?

This table comes from SAS output. The \newline is not working correctly. E.g. "Percent trimmed in tail" ought to be Percent Trimmed In tail but it is showing up as Percent Trimmed In Tail Here ...
1
vote
0answers
36 views

line-breaking across all document/objects automatically?

I find myself manually fixing long variable names between $$ and \texttt{} and other objects (there are plenty of those in my document since . Those fixes don't hold well after text changes, and ...
1
vote
0answers
96 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 ...
1
vote
0answers
378 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 ...
1
vote
0answers
264 views

Spacing between single line paragraph with lettrine

I'm having the following problem with lettrines and paragraph with a single line : \lettrine[lines=2, loversize=0.15, findent=1em, nindent=0em ]{1}{}% First step. \lettrine[lines=2, loversize=0.15, ...
1
vote
0answers
109 views

How to force a newline after subsection?

I am trying to force a newline after subsection. How can i do that? I am using conference documentclass. Instead of 1. Subsection: This is a boy i want 1. Subsection This is a boy
0
votes
0answers
24 views

Latex table of figures invades margins sometimes

I have some problems with my list of figures. some figures invade the margins and other not. I don't seem to understand why sometimes it works fine and others not. the command i used is: \...
0
votes
0answers
45 views

How to breakafter?

I want to break after whitespace or symbol in my http code example. I am using minted with my Xelatex. How my preamble looks like: \newminted{json}{breaklines,frame=bottomline,rulecolor=\color{...
0
votes
0answers
12 views

Line break within brackets in Bibtex

When I use Bibtex, I want everything within a bracket to appear in the same line. So, for example, in the attached Bibtex, I want the phrase "Phys. Rev. A" to appear in the same line. You can try and ...