From 424ade50e036f3d865a1283f25173efa4e90bd37 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 28 Nov 2010 23:49:38 +0000
Subject: vertbars 1.0b (28nov10)

git-svn-id: svn://tug.org/texlive/trunk@20589 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/vertbars/vertbars.sty | 92 ++++++-----------------
 1 file changed, 22 insertions(+), 70 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/vertbars/vertbars.sty')

diff --git a/Master/texmf-dist/tex/latex/vertbars/vertbars.sty b/Master/texmf-dist/tex/latex/vertbars/vertbars.sty
index 522cf9b0b81..bb988addbf3 100644
--- a/Master/texmf-dist/tex/latex/vertbars/vertbars.sty
+++ b/Master/texmf-dist/tex/latex/vertbars/vertbars.sty
@@ -1,26 +1,9 @@
-% vertbars.sty  The VERTical BARS package
-%               An extension to the lineno package
-%               to put vertical rules at left (right)
-%               of lines instead of numbers
-%
-% This package requires the lineno package
-%
-% Author: Peter Wilson, Herries Press
-% Maintainer: Will Robertson (will dot robertson at latex-project dot org)
-% Copyright Peter R Wilson 2000
-%
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either
-% version 1.3c of this license or (at your option) any 
-% later version: <http://www.latex-project.org/lppl.txt>
-%
-% This work has the LPPL maintenance status "maintained".
-% The Current Maintainer of this work is Will Robertson.
-%
-% Instructions are at the end of this file, after \endinput
-
+%% LaTeX2e file `vertbars.sty'
+%% generated by the `filecontents' environment
+%% from source `vertbars' on 2010/11/27.
+%%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{vertbars}[2009/09/04 v1.0a vertical bars]
+\ProvidesPackage{vertbars}[2010/11/27 v1.0b vertical bars in the margin]
 
 \newcommand{\LNenv}{runninglinenumbers}
 \DeclareOption{switch}{%
@@ -37,7 +20,7 @@
 \ProcessOptions\relax
 \RequirePackage{lineno}
 
-%%% code to add stuff at start and end of a pre-existing zero argument macro
+% Code to add stuff at start and end of a pre-existing zero argument macro:
 \newcommand{\addtodef}[3]{\begingroup
   \@temptokena{#2}%
   \toks@\expandafter{#1#3}%
@@ -46,58 +29,27 @@
   \x
 }
 
+% It's useful to preserve \cmd\baselineskip:
 \newlength{\pwvbbl}
-\setlength{\pwvbbl}{\baselineskip}  % it's useful to preserve \baselineskip
-\newlength{\barwidth}         % width of bars
+\setlength{\pwvbbl}{\baselineskip}
+
+% Width of bars:
+\newlength{\barwidth}
 \setlength{\barwidth}{0.4pt}
-\newlength{\barspace}         % horizontal space between bars
+
+% Horizontal space between bars:
+\newlength{\barspace}
 \setlength{\barspace}{0.5\linenumbersep}
 
 \newcommand{\addtomakeLNL}{{\rule[-0.25\pwvbbl]{\barwidth}{1.1\pwvbbl}\hskip\barspace\relax}}
 \newcommand{\pwvbLNL}{}
-\newenvironment{vertbar}{\begin{\LNenv}%
-  \addtodef{\pwvbLNL}{}{\addtomakeLNL}%
-  \let\LineNumber\pwvbLNL%
-  }{\end{\LNenv}}
-
-\endinput
-
-% Instructions:
-%
-%    Read the documentation for the lineno package.
-%
-%    The vertbars package takes the same options as the lineno package.
-% In particular, the switch and switch* options control which side
-% of the page any bars will be printed. The package automatically
-% calls the lineno package, so you just need:
-% \usepackage[...]{vertbars}
-%
-%    The package provides one environment, namely the vertbar environment.
-% The vertbar environment is equivalent to the linenumbers environment
-% except that a vertical bar replaces the line number. Text paragraphs 
-% within a vertbar environment will be marked with a vertical bar in 
-% the margin. Nested environments generate multiple marginal bars.
-%
-%    The width of the bars is controlled by the value of \barwidth, which 
-% is initialised to 0.4pt, and can be changed via \setlength.
-%
-%    The horizontal seperation between adjacent bars is controlled by
-% the value of \barspace, which is initialised to 0.5\linenumbersep, and can
-% be changed via \setlength. (\linenumbersep is a command from the
-% lineno package that controls the spacing between line numbers and the
-% text body).
-%
-% NOTE: Bars can only be applied to complete paragraphs. For bars 
-% between arbitrary points, use the changebar package. Any limitations
-% of the lineno package apply equally to the vertbars package.
-%
-% Peter W.
-%
-% CHANGE HISTORY
-%
-% v1.0a (2009/09/04) - New maintainer (Will Robertson)
-%
-
-
 
+\newenvironment{vertbar}{%
+  \pagewiselinenumbers % <= added v1.0b
+  \begin{\LNenv}%
+    \addtodef{\pwvbLNL}{}{\addtomakeLNL}%
+    \let\LineNumber\pwvbLNL
+}{%
+  \end{\LNenv}%
+}
 
-- 
cgit v1.2.3

