| 1 |
|
| 2 |
\makeatletter |
| 3 |
\documentclass{ltxdoc} |
| 4 |
|
| 5 |
\usepackage[it,medium]{titlesec} |
| 6 |
|
| 7 |
\usepackage{array,bigfoot,vertbars} |
| 8 |
\usepackage[svgnames]{xcolor} |
| 9 |
\usepackage[colorlinks,linktocpage]{hyperref} |
| 10 |
|
| 11 |
\usepackage{geometry} |
| 12 |
\geometry{b5paper} |
| 13 |
|
| 14 |
\DeclareRobustCommand\pkg{\textsf} |
| 15 |
\def\pkgopt#1{\texttt{[#1]}} |
| 16 |
|
| 17 |
|
| 18 |
\usepackage[T1]{fontenc} |
| 19 |
\usepackage{microtype} |
| 20 |
\usepackage{lmodern} |
| 21 |
\usepackage[sc,osf]{mathpazo} |
| 22 |
\linespread{1.1} |
| 23 |
\frenchspacing |
| 24 |
|
| 25 |
\GetFileInfo{vertbars.sty} |
| 26 |
\begin{document} |
| 27 |
|
| 28 |
\title{The \pkg{vertbars} package} |
| 29 |
\author{% |
| 30 |
Author: Peter Wilson, Herries Press\\ |
| 31 |
Maintainer: Will Robertson\\ |
| 32 |
\url{http://github.com/wspr/herries-press}% |
| 33 |
} |
| 34 |
\date{\fileversion \qquad \filedate} |
| 35 |
|
| 36 |
\maketitle |
| 37 |
|
| 38 |
\section{Documentation} |
| 39 |
|
| 40 |
Because this package uses \textsf{lineno} as a driver, |
| 41 |
please read the documentation of that package first to |
| 42 |
understand the mechanisms used here. |
| 43 |
|
| 44 |
The \textsf{vertbars} package takes the same options as the \textsf{lineno} package. |
| 45 |
In particular, the switch and switch* options control which side of the page any bars will be printed. |
| 46 |
The package automatically calls the lineno package, so you just need to write: |
| 47 |
\begin{verbatim} |
| 48 |
\usepackage[...]{vertbars} |
| 49 |
\end{verbatim} |
| 50 |
|
| 51 |
The package provides the \texttt{vertbar} environment, which is equivalent to the linenumbers environment except that a vertical bar replaces the line number. |
| 52 |
Text paragraphs within a vertbar environment will be marked with a vertical bar in the margin. |
| 53 |
Nested environments generate multiple marginal bars. |
| 54 |
|
| 55 |
The width of the bars is controlled by the value of \cmd\barwidth, which is initialised to \verb|0.4pt|, and can be changed via \cmd\setlength. |
| 56 |
|
| 57 |
The horizontal separation between adjacent bars is controlled by the value of \cmd\barspace, which is initialised to \verb|0.5\linenumbersep|, and can be changed via \cmd\setlength. |
| 58 |
(\cmd\linenumbersep is a command from the lineno package that controls the spacing between line numbers and the text body). |
| 59 |
|
| 60 |
Note: Bars can only be applied to complete paragraphs. |
| 61 |
For bars between arbitrary points, use the \textsf{changebar} package. |
| 62 |
Any limitations of the \textsf{lineno} package apply equally to the \textsf{vertbars} package. |
| 63 |
|
| 64 |
\section*{Change History} |
| 65 |
|
| 66 |
\begin{itemize} |
| 67 |
\item[v1.0c] 2018-12-12 Add \cs{par} before and after the \texttt{vertbar} environment to avoid confusing/unwanted behaviour with paragraphs |
| 68 |
\item[v1.0b] 2010/11/27 Fix behaviour with \texttt{switch} option |
| 69 |
\item[v1.0a] 2009/09/04 New maintainer (Will Robertson) |
| 70 |
\end{itemize} |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
\section*{Licence and copyright} |
| 75 |
|
| 76 |
This work may be modified and/or distributed under the terms and |
| 77 |
conditions of the \LaTeX\ Project Public License\footnote{\url{http://www.latex-project.org/lppl.txt}}, version~1.3c or later (your choice). |
| 78 |
The current maintainer of this work is Will Robertson. |
| 79 |
|
| 80 |
\bigskip |
| 81 |
\noindent |
| 82 |
Copyright Peter Wilson, 2000 \\ |
| 83 |
Copyright Will Robertson, 2010-2018 \\ |
| 84 |
|
| 85 |
{\addtocontents{toc}{\protect\end{varwidth}\protect\hfill}} |
| 86 |
{\addtocontents{toc}{\protect\begin{varwidth}[t]{\protect\tocwidthB\protect\linewidth}}} |
| 87 |
\clearpage |
| 88 |
\parindent=0pt |
| 89 |
|
| 90 |
|
| 91 |
{\addtocontents{toc}{\protect\end{varwidth}}} |
| 92 |
|
| 93 |
\end{document} |