From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 macros/latex/contrib/nolbreaks/nolbreaks.tex | 54 ++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 macros/latex/contrib/nolbreaks/nolbreaks.tex

(limited to 'macros/latex/contrib/nolbreaks/nolbreaks.tex')

diff --git a/macros/latex/contrib/nolbreaks/nolbreaks.tex b/macros/latex/contrib/nolbreaks/nolbreaks.tex
new file mode 100644
index 0000000000..8eb7084f3d
--- /dev/null
+++ b/macros/latex/contrib/nolbreaks/nolbreaks.tex
@@ -0,0 +1,54 @@
+\documentclass[pagesize=auto, fontsize=14pt, 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.2, dated~2012/05/31.}}
+\author{Donald Arseneau}
+\date{2012/05/31}
+
+
+\begin{document}
+
+\maketitle
+
+Use \cmd{\nolbreaks}\marg{some text} to prevent line-breaks in 
+\meta{some text}. This has the advantage over \verb+\mbox{ }+ that 
+glue (rubber space) remains flexible, and can adjust to fit the margins.  
+It has the disadvantage of not working in all cases!  Most common 
+situations are handled (in particular, \cmd{\newline}, \cmd{\linebreak}, 
+and \cmd{\\} are disabled) but spaces hidden in macros or \verb+{ }+
+(braces) can still create break-points. 
+
+Large pieces of text with no breaks can cause problems with
+paragraph justification.   Using the alternate \cmd{\nolbreaks}\verb'*'
+allows a line before the unbreakable text to be cut short
+(like ragged-right). Giving the package option \opt{[ragged]}
+converts all \cmd{\nolbreaks} commands to \cmd{\nolbreaks*}.
+
+You should declare \cmd{\sloppy} or set a raised \cmd{\tolerance} in 
+your document when you have large non-breaking chunks.
+
+The command name \cmd{\nolbreaks} is long to type, so you should 
+probably declare a shorter alias name if you use it a lot, like
+   \  \verb'\newcommand\n{\nolbreaks}'.
+
+\end{document}
-- 
cgit v1.2.3

