diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pagerange/pagerange-guide.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pagerange/pagerange-guide.tex | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pagerange/pagerange-guide.tex b/Master/texmf-dist/doc/latex/pagerange/pagerange-guide.tex new file mode 100644 index 00000000000..866709ca404 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pagerange/pagerange-guide.tex @@ -0,0 +1,109 @@ +\documentclass[10pt,a4paper]{article} +\usepackage{lipsum} +\usepackage{shortvrb} +\usepackage{fancyvrb} +\usepackage{parskip} +\usepackage{paralist} +\usepackage[acceptempty,hyperlink]{pagerange} +\usepackage{hyperref} +\hypersetup{colorlinks=true,linkcolor=red,pdfpagemode=UseThumbs, + implicit=true,breaklinks=true,citecolor=purple,pdfview=FitH, + pdfstartview=FitH} +\begin{document} +\MakeShortVerb{\+} +\title{The {\tt pagerange} Package} +\author{Ahmed Musa\\[.5ex]University of Central Lancashire\\ + Preston, United Kingdom\\[1ex]\url{a.musa@rocketmail.com} +} +\maketitle + +\section{Introduction} +This package emerged from my desire to resolve page ranges in the +draftmark+ package, but it may be useful to other \LaTeX{} enthusiasts. + +There is additional user guide in the comments within the package. + +\section{Examples} + +\pagerange{123-456} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{12345-67890} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{123-4567} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{600-601} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{-34} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\bigskip\noindent +Hyperlinking of last page: +\pagerange{1-} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{-} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\bigskip\noindent +No hyperlinking of last page: +\pagerangeoptions{hyperlink=false} +\pagerange{1-} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{-} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{123-234} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerange{} % This logs a warning message or issues fatal error. +\par\medskip\noindent +Page~\pagestart\space to\space\pageend + +%\pagerange{123-456-789} % Uncomment this line to get fatal error. + +%\pagerange{34-12} % Uncomment this line to get fatal error. + +\par\medskip + +\pagerangeoptions{tie=*} +\pagerange{123*234} +\par\noindent +Pages~\pagestart\space to\space\pageend + +\pagerangeoptions{tie=T} +\pagerange{1234T1235} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\pagerangeoptions{tie=X} +\pagerange{2034X2135} +\par\medskip\noindent +Pages~\pagestart\space to\space\pageend + +\section{To-do} + +\begin{compactenum}[a)] +\item To provide for calls such as in {\tt\string\pagerange\{\string\pageref\{page:label\}-200\}}. +\item Documentation. +\end{compactenum} + +\par\bigskip +\centerline{\rule{.5\hsize}{.4pt}} +\bigskip +\lipsum[1-4] + +\end{document}
\ No newline at end of file |