blob: d23623ce9fe8a96f50a0a6a783ddaecf079726dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
\documentclass[pagesize=auto, fontsize=14pt, DIV=10, parskip=half]{scrartcl}
\usepackage{fixltx2e}
\usepackage{etex}
\usepackage{xspace}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{microtype}
\usepackage{hyperref}
\newcommand*{\pkg}[1]{\textsf{#1}}
\newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
\makeatletter
\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
\makeatother
\newcommand*{\opt}[1]{\texttt{#1}}
\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}
\addtokomafont{title}{\rmfamily}
\title{The \pkg{nolbreaks} package\thanks{This manual corresponds to \pkg{nolbreaks}~v1.0, dated~2002/09/19.}}
\author{Donald Arseneau}
\date{2002/09/19}
\begin{document}
\maketitle
Use \cmd{\nolbreaks}\marg{some text} to prevent linebreaks in \meta{some text}.
This has the advantage over \verb+\mbox{}+ that glue (rubber space)
remains flexible. It has the disadvantage of not working in
all cases! Most common cases are handled here (\cmd{\linebreak} is
disabled, for example) but spaces hidden in macros or \verb+{ }+
can still create break-points.
Large pieces of text with no breaks can cause problems with
paragraph justification. Giving the package option \opt{[ragged]}
allows a line before the unbreakable text to be cut short.
You should declare \cmd{\sloppy} in your document.
\end{document}
|