From 355c88ab8518e03ef77a4e27700863977315c7d0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 7 Mar 2010 17:04:42 +0000 Subject: hypernat doc update (6mar10) git-svn-id: svn://tug.org/texlive/trunk@17358 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/hypernat/hypernat.pdf | Bin 0 -> 192450 bytes Master/texmf-dist/doc/latex/hypernat/hypernat.tex | 64 +++++++++++ Master/texmf-dist/tex/latex/hypernat/hypernat.sty | 127 ++++++++++++++++++++++ Master/texmf-dist/tex/latex/ltxmisc/hypernat.sty | 127 ---------------------- Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/hypernat.tlpsrc | 0 7 files changed, 193 insertions(+), 128 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/hypernat/hypernat.pdf create mode 100644 Master/texmf-dist/doc/latex/hypernat/hypernat.tex create mode 100644 Master/texmf-dist/tex/latex/hypernat/hypernat.sty delete mode 100644 Master/texmf-dist/tex/latex/ltxmisc/hypernat.sty create mode 100644 Master/tlpkg/tlpsrc/hypernat.tlpsrc (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/hypernat/hypernat.pdf b/Master/texmf-dist/doc/latex/hypernat/hypernat.pdf new file mode 100644 index 00000000000..03980f637b3 Binary files /dev/null and b/Master/texmf-dist/doc/latex/hypernat/hypernat.pdf differ diff --git a/Master/texmf-dist/doc/latex/hypernat/hypernat.tex b/Master/texmf-dist/doc/latex/hypernat/hypernat.tex new file mode 100644 index 00000000000..8c016d91e3c --- /dev/null +++ b/Master/texmf-dist/doc/latex/hypernat/hypernat.tex @@ -0,0 +1,64 @@ +\documentclass[DIV=8, parskip=half, pagesize=auto]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{xspace} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage[utf8]{inputenc} +\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}} + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{hypernat} package\thanks{This manual corresponds to \pkg{hypernat}~v1.0b, dated~2001/07/09.}} +\author{Jens Berger} +\date{2001/07/09} + + +\begin{document} + +\maketitle + +\noindent +This packages makes the \pkg{hyperref} package and the \pkg{natbib} package +with options `\opt{numbers}' and `\opt{sort\&compress}' work together. This +means, that the citations (e.g \texttt{[3,2,1]}) will be compressed to +\texttt{[1-3]}, where the `\texttt{1}' and the `\texttt{3}' are (color-)linked to the +bibliography. + +The changes I made here are suggested (in August 2000) for the +next \pkg{natbib} release. + +This package will disappear from CTAN, when \pkg{natbib} will do +the job by himself. + +Load this package after \pkg{natbib} and \pkg{hyperref}! + +Please make sure that you are using at least \pkg{natbib}~v7.0! + + +\minisec{Changes} + +\begin{labeling}[\hspace{\labelsep}\textendash]{v1.0b\enskip 2001/07/09} +\item[v1.0b\enskip 2001/07/09] anchor for all citations in the list + added to make \opt{backref} options working (bug reported by Günter + Keusen) + +\item[v1.0a\enskip 2001/01/22] \cmd{\noexpand} for some + \cmd{\hyper@natlinkend} added (bug reported by Frank Meißen), + \pkg{hypernat.sty} is working now for `\texttt{dvips} $\to$ + \texttt{ps2pdf}' or `\texttt{dvips} $\to$ Distiller' +\end{labeling} + + + +\end{document} diff --git a/Master/texmf-dist/tex/latex/hypernat/hypernat.sty b/Master/texmf-dist/tex/latex/hypernat/hypernat.sty new file mode 100644 index 00000000000..d40bcb090a9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/hypernat/hypernat.sty @@ -0,0 +1,127 @@ +%% hypernat.sty v1.0b (C) 2001 Jens Berger +%% +%% This packages makes the hyperref package and the natbib package +%% with options `numbers' and `sort&compress' work together. This +%% means, that the citations (e.g [3,2,1]) will be compressed to +%% [1-3], where the `1' and the `3' are (color-)linked to the +%% bibliography. +%% +%% The changes I made here are suggested (in August 2000) for the +%% next natbib release. +%% +%% This package will disappear from CTAN, when natbib will do +%% the job by himself. +%% +%% Load this package after natbib and hyperref! +%% +%% Please make sure that you are using at least natbib v7.0! +%% +%% Changes +%% +%% v1.0b 2001/07/09 anchor for all citations in the list added +%% to make backref options working (bug reported by Günter Keusen) +%% v1.0a 2001/01/22 \noexpand for some \hyper@natlinkend added +%% (bug reported by Frank Meißen), hypernat.sty +%% is working now for `dvips --> ps2pdf' or `dvips -> Distiller' +%% +\ProvidesPackage{hypernat}[2001/07/09 v1.0b hyperref and natbib compatibility (jb)] +\AtBeginDocument{\def\NAT@sort{2}} +\def\NAT@citexnum[#1][#2]#3{% + \NAT@sort@cites{#3}% + \let\@citea\@empty + \@cite{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty + \@for\@citeb:=\NAT@cite@list\do + {\edef\@citeb{\expandafter\@firstofone\@citeb}% + \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi + \@ifundefined{b@\@citeb\@extra@b@citeb}{% + {\reset@font\bfseries?} + \NAT@citeundefined\PackageWarning{natbib}% + {Citation `\@citeb' on page \thepage \space undefined}}% + {\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm + \NAT@parse{\@citeb}% + \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% + \let\NAT@name=\NAT@all@names + \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% + \fi + \ifNAT@full\let\NAT@nm\NAT@all@names\else + \let\NAT@nm\NAT@name\fi + \ifNAT@swa + \ifnum\NAT@ctype>1\relax\@citea + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \ifnum\NAT@ctype=2\relax\NAT@test{\NAT@ctype}% + \else\NAT@alias + \fi\hyper@natlinkend\else + \ifnum\NAT@sort>1 + \begingroup\catcode`\_=8 + \ifcat _\ifnum\z@<0\NAT@num _\else A\fi + \global\let\NAT@nm=\NAT@num \else \gdef\NAT@nm{-2}\fi + \ifcat _\ifnum\z@<0\NAT@last@num _\else A\fi + \global\@tempcnta=\NAT@last@num \global\advance\@tempcnta by\@ne + \else \global\@tempcnta\m@ne\fi + \endgroup +% v0.1b anchor added to make backref's working, watch for errors! + \ifnum\NAT@nm=\@tempcnta + \ifHy@backref\hyper@natlinkstart{\@citeb\@extra@b@citeb}\hyper@natlinkend\fi + \ifx\NAT@last@yr\relax +% \edef\NAT@last@yr{\@citea \mbox{\noexpand\citenumfont{\NAT@num}}}% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \edef\NAT@last@yr{\@citea \mbox{\noexpand% + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \noexpand\citenumfont{\NAT@num}% + \noexpand\hyper@natlinkend}% + }% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \else +% \edef\NAT@last@yr{--\penalty\@m\mbox{\noexpand\citenumfont{\NAT@num}}}% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \edef\NAT@last@yr{--\penalty\@m\mbox{\noexpand% + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \noexpand\citenumfont{\NAT@num}% + \noexpand\hyper@natlinkend}% + }% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \fi + \else +% \NAT@last@yr \@citea \mbox{\citenumfont{\NAT@num}}% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \NAT@last@yr \@citea \mbox{% + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \citenumfont{\NAT@num}% + \hyper@natlinkend}% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \let\NAT@last@yr\relax + \fi + \else + \@citea \mbox{\hyper@natlinkstart{\@citeb\@extra@b@citeb}% + {\citenumfont{\NAT@num}}\hyper@natlinkend}% + \fi + \fi + \def\@citea{\NAT@sep\penalty\@m\NAT@space}% + \else + \ifcase\NAT@ctype\relax + \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\penalty\@m\NAT@space\else + \@citea \NAT@test{1}\ \NAT@@open + \if*#1*\else#1\ \fi\fi \NAT@mbox{% + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + {\citenumfont{\NAT@num}}\hyper@natlinkend}% + \def\@citea{\NAT@@close\NAT@sep\penalty\@m\ }% + \or\@citea + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \NAT@test{\NAT@ctype}\hyper@natlinkend + \def\@citea{\NAT@sep\penalty\@m\ }% + \or\@citea + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \NAT@test{\NAT@ctype}\hyper@natlinkend + \def\@citea{\NAT@sep\penalty\@m\ }% + \or\@citea + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \NAT@alias\hyper@natlinkend + \def\@citea{\NAT@sep\penalty\@m\ }% + \fi + \fi + }}% + \ifnum\NAT@sort>1\relax\NAT@last@yr\fi + \ifNAT@swa\else\ifnum\NAT@ctype=0\if*#2*\else + \NAT@cmt#2\fi \NAT@@close\fi\fi}{#1}{#2}% +} +\endinput diff --git a/Master/texmf-dist/tex/latex/ltxmisc/hypernat.sty b/Master/texmf-dist/tex/latex/ltxmisc/hypernat.sty deleted file mode 100644 index d40bcb090a9..00000000000 --- a/Master/texmf-dist/tex/latex/ltxmisc/hypernat.sty +++ /dev/null @@ -1,127 +0,0 @@ -%% hypernat.sty v1.0b (C) 2001 Jens Berger -%% -%% This packages makes the hyperref package and the natbib package -%% with options `numbers' and `sort&compress' work together. This -%% means, that the citations (e.g [3,2,1]) will be compressed to -%% [1-3], where the `1' and the `3' are (color-)linked to the -%% bibliography. -%% -%% The changes I made here are suggested (in August 2000) for the -%% next natbib release. -%% -%% This package will disappear from CTAN, when natbib will do -%% the job by himself. -%% -%% Load this package after natbib and hyperref! -%% -%% Please make sure that you are using at least natbib v7.0! -%% -%% Changes -%% -%% v1.0b 2001/07/09 anchor for all citations in the list added -%% to make backref options working (bug reported by Günter Keusen) -%% v1.0a 2001/01/22 \noexpand for some \hyper@natlinkend added -%% (bug reported by Frank Meißen), hypernat.sty -%% is working now for `dvips --> ps2pdf' or `dvips -> Distiller' -%% -\ProvidesPackage{hypernat}[2001/07/09 v1.0b hyperref and natbib compatibility (jb)] -\AtBeginDocument{\def\NAT@sort{2}} -\def\NAT@citexnum[#1][#2]#3{% - \NAT@sort@cites{#3}% - \let\@citea\@empty - \@cite{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty - \@for\@citeb:=\NAT@cite@list\do - {\edef\@citeb{\expandafter\@firstofone\@citeb}% - \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi - \@ifundefined{b@\@citeb\@extra@b@citeb}{% - {\reset@font\bfseries?} - \NAT@citeundefined\PackageWarning{natbib}% - {Citation `\@citeb' on page \thepage \space undefined}}% - {\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm - \NAT@parse{\@citeb}% - \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% - \let\NAT@name=\NAT@all@names - \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% - \fi - \ifNAT@full\let\NAT@nm\NAT@all@names\else - \let\NAT@nm\NAT@name\fi - \ifNAT@swa - \ifnum\NAT@ctype>1\relax\@citea - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - \ifnum\NAT@ctype=2\relax\NAT@test{\NAT@ctype}% - \else\NAT@alias - \fi\hyper@natlinkend\else - \ifnum\NAT@sort>1 - \begingroup\catcode`\_=8 - \ifcat _\ifnum\z@<0\NAT@num _\else A\fi - \global\let\NAT@nm=\NAT@num \else \gdef\NAT@nm{-2}\fi - \ifcat _\ifnum\z@<0\NAT@last@num _\else A\fi - \global\@tempcnta=\NAT@last@num \global\advance\@tempcnta by\@ne - \else \global\@tempcnta\m@ne\fi - \endgroup -% v0.1b anchor added to make backref's working, watch for errors! - \ifnum\NAT@nm=\@tempcnta - \ifHy@backref\hyper@natlinkstart{\@citeb\@extra@b@citeb}\hyper@natlinkend\fi - \ifx\NAT@last@yr\relax -% \edef\NAT@last@yr{\@citea \mbox{\noexpand\citenumfont{\NAT@num}}}% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \edef\NAT@last@yr{\@citea \mbox{\noexpand% - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - \noexpand\citenumfont{\NAT@num}% - \noexpand\hyper@natlinkend}% - }% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \else -% \edef\NAT@last@yr{--\penalty\@m\mbox{\noexpand\citenumfont{\NAT@num}}}% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \edef\NAT@last@yr{--\penalty\@m\mbox{\noexpand% - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - \noexpand\citenumfont{\NAT@num}% - \noexpand\hyper@natlinkend}% - }% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \fi - \else -% \NAT@last@yr \@citea \mbox{\citenumfont{\NAT@num}}% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \NAT@last@yr \@citea \mbox{% - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - \citenumfont{\NAT@num}% - \hyper@natlinkend}% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \let\NAT@last@yr\relax - \fi - \else - \@citea \mbox{\hyper@natlinkstart{\@citeb\@extra@b@citeb}% - {\citenumfont{\NAT@num}}\hyper@natlinkend}% - \fi - \fi - \def\@citea{\NAT@sep\penalty\@m\NAT@space}% - \else - \ifcase\NAT@ctype\relax - \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\penalty\@m\NAT@space\else - \@citea \NAT@test{1}\ \NAT@@open - \if*#1*\else#1\ \fi\fi \NAT@mbox{% - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - {\citenumfont{\NAT@num}}\hyper@natlinkend}% - \def\@citea{\NAT@@close\NAT@sep\penalty\@m\ }% - \or\@citea - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - \NAT@test{\NAT@ctype}\hyper@natlinkend - \def\@citea{\NAT@sep\penalty\@m\ }% - \or\@citea - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - \NAT@test{\NAT@ctype}\hyper@natlinkend - \def\@citea{\NAT@sep\penalty\@m\ }% - \or\@citea - \hyper@natlinkstart{\@citeb\@extra@b@citeb}% - \NAT@alias\hyper@natlinkend - \def\@citea{\NAT@sep\penalty\@m\ }% - \fi - \fi - }}% - \ifnum\NAT@sort>1\relax\NAT@last@yr\fi - \ifNAT@swa\else\ifnum\NAT@ctype=0\if*#2*\else - \NAT@cmt#2\fi \NAT@@close\fi\fi}{#1}{#2}% -} -\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 9e6fe4189b4..0d6749253f8 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -147,7 +147,7 @@ my @TLP_working = qw( harvard harvardkyoto harvmac hc hep hepnames hepparticles hepthesis hepunits here hhtensor histogr hitec hrlatex hvfloat hvindex - hypdvips hyper hyperref hyperxmp hyph-utf8 hyphen-base + hypdvips hyper hypernat hyperref hyperxmp hyph-utf8 hyphen-base hyphenat hyphenex hyplain ibygrk icsv idxlayout IEEEconf IEEEtran ifmtarg ifplatform ifxetex ijmart ijqc imac image-gallery impatient impatient-fr import imtekda diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index c9c5537ee8b..77be5f7ee03 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -276,6 +276,7 @@ depend hpsdiss depend hvindex depend hypdvips depend hyper +depend hypernat depend hyperref-docsrc depend hyperxmp depend hyphenat diff --git a/Master/tlpkg/tlpsrc/hypernat.tlpsrc b/Master/tlpkg/tlpsrc/hypernat.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3