{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.
10
votes
1answer
204 views
How to highlight arabic texts with allowing line breaks?
I would like to highlight some texts. For Latin texts the \hl command of the soul package works well, but not for Arabic texts.
(\hl{SOME ARABIC TEXT} has only a small line as output in the pdf ...
4
votes
0answers
146 views
Is there a way to avoid short lines?
Is there a universal setting to tell TeX that the last line of a paragraph can not have just one word? For instance, instead of this:
This is a sample paragraph and there is one word
here.
you ...
4
votes
0answers
152 views
Myanmar (Burmese) line breaking with XeLaTeX
I am having trouble getting Myanmar text to break at the end of lines properly.
The previous question How do I wrap text that doesn't use SPACE character to segment word would appear to solve my ...
3
votes
0answers
81 views
Overfull \hbox caused by em-dash
There is one problem that currently seems insolvable to me. I am typesetting a book in Russian language and I noticed that, in some cases, an overfull box appears which cannot be solved via manual ...
3
votes
0answers
89 views
Automatically prevent line-break at hyphen of specific words (e.g. “dual-self”)
Usually questions about hyphenation and line-breaks are concerned about how to allow hyphenation when a word already contains a hyphen. That's not what I'm after:
I would like to prevent the word ...
3
votes
0answers
113 views
Sudden “Overfull \hbox” warning messages
(Apologies if this is a duplicate; I didn't see my question among the many overfull \hbox questions already asked.)
My TeX file had been typsetting without any problems for a few days, when suddenly ...
3
votes
0answers
104 views
About autoindent and postbreak in the package listings
I am using the package listings to show my Matlab code. The code was pre-typed in a file and everything will be loaded from the file and a .tex file will be generated automatically to show the code ...
2
votes
0answers
43 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
0answers
126 views
Enforce a line-break inside \lstinline
I use \lstinline{foo} from the listings package to set pieces of code in regular text. To get automatic line-breaks I use the following options:
\lstset{
breaklines=true,
breakatwhitespace=true,
...
1
vote
0answers
72 views
Avoiding newline in latex report
I am writing one auto report in which I need to have some breakline and vertical spacing. I use newline but sometimes it is in horizontal mode. So I have to use \leavevmode before it.
\leavevmode
...
1
vote
0answers
60 views
list: overfull error
I'm getting error:
Overfull \hbox (11.66551pt too wide) in paragraph
Code:
\documentclass{article}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{url} % typeset URL's reasonably
...
1
vote
0answers
105 views
Table column fixed width does not fire
I have the springer svjour3 template and the user guide says that for tables the usual Latex 2e commands are used.
Now, I would like to produce a table that goes over the whole page (the error is the ...
1
vote
0answers
111 views
Glossaries package and hyphenated (dashed) acronym fail to break across lines
With respect to using the glossaries package, if I have an acronym with a long hyphenated word, it often result in sentences that runs into margins. For example:
...
1
vote
0answers
73 views
Preventing line break at the start of a long name in `\lstinline`
This question has developed from How to deal with very long lstinline-phrases like long class names?.
That question is about line breaking inside a \lstinline phrase. I have provided an answer which ...
0
votes
0answers
59 views
Latex not showing properly citations
I use the following latex command for citation at latex.
\subsection{Subsection Example 1}
some tex ~\cite{maccormack2003managing} some text
and I get the following result.
As you can see the ...
0
votes
0answers
55 views
Manual Line Breaks not Counted by Log
I have been adding manual line breaks to paragraphs in my document using the \linebreak command because I have been suffering badly from overfull horizontal boxes. However when I compile my document ...
