summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-04 23:44:04 +0000
committerKarl Berry <karl@freefriends.org>2009-09-04 23:44:04 +0000
commit2026ab37db2c2b58454fc8993493792bfffd5c82 (patch)
tree1f18eb65abcfc4b60f41cb15be2306a8c84284ea /Master
parent310f7a946b33be8457bad125cf2490b97e3e08e4 (diff)
vertbars.sty update (4sep09)
git-svn-id: svn://tug.org/texlive/trunk@15106 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/tex/latex/vertbars/vertbars.sty103
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/vertbars.tlpsrc0
4 files changed, 105 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/vertbars/vertbars.sty b/Master/texmf-dist/tex/latex/vertbars/vertbars.sty
new file mode 100644
index 00000000000..522cf9b0b81
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/vertbars/vertbars.sty
@@ -0,0 +1,103 @@
+% 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
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{vertbars}[2009/09/04 v1.0a vertical bars]
+
+\newcommand{\LNenv}{runninglinenumbers}
+\DeclareOption{switch}{%
+ \renewcommand{\LNenv}{runningpagewiselinenumbers}
+ \PassOptionsToPackage{\CurrentOption}{lineno}
+}
+
+\DeclareOption{switch*}{%
+ \renewcommand{\LNenv}{runningpagewiselinenumbers}
+ \PassOptionsToPackage{\CurrentOption}{lineno}
+}
+
+\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{lineno}}
+\ProcessOptions\relax
+\RequirePackage{lineno}
+
+%%% 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}%
+ \edef\x{\endgroup
+ \def\noexpand#1{\the\@temptokena \the\toks@}}%
+ \x
+}
+
+\newlength{\pwvbbl}
+\setlength{\pwvbbl}{\baselineskip} % it's useful to preserve \baselineskip
+\newlength{\barwidth} % width of bars
+\setlength{\barwidth}{0.4pt}
+\newlength{\barspace} % horizontal space between bars
+\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)
+%
+
+
+
+
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 1090c421683..0b21928f285 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -265,7 +265,7 @@ my @WorkingTLP = qw(
vancouver variations varindex varisize
varsfromjobname varwidth vaucanson-g
vector velthuis venn venturisadf verbatimbox verbatimcopy
- verse versions vertex
+ verse versions vertbars vertex
vhistory visualfaq vmargin vntex volumes vpe vwcol vxu
wadalab wallpaper warning warpcol williams wordlike wrapfig wsuipa
xargs xcolor xdoc xecjk xecolour xecyr xepersian
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 66befa919b4..40dcc2a63ff 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -601,6 +601,7 @@ depend vector
depend verbatimbox
depend verbatimcopy
depend versions
+depend vertbars
depend vhistory
depend vita
depend vmargin
diff --git a/Master/tlpkg/tlpsrc/vertbars.tlpsrc b/Master/tlpkg/tlpsrc/vertbars.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/vertbars.tlpsrc