diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/lastbib |
Initial commit
Diffstat (limited to 'macros/latex/contrib/lastbib')
-rw-r--r-- | macros/latex/contrib/lastbib/README | 10 | ||||
-rw-r--r-- | macros/latex/contrib/lastbib/lastbib.sty | 35 |
2 files changed, 45 insertions, 0 deletions
diff --git a/macros/latex/contrib/lastbib/README b/macros/latex/contrib/lastbib/README new file mode 100644 index 0000000000..3a9f4d32f6 --- /dev/null +++ b/macros/latex/contrib/lastbib/README @@ -0,0 +1,10 @@ +This package, lastbib, useful if you want to use your bibliographic references count. +It allows for things like |... \LastBib\ references in the work| to get `... 25 references in the work' +It was inspired by early version of package lastpage.sty +pastorm/ru-board fixed a bug with BiBTeX and href + +Enjoy! + +Berik I. Tuleuov, Karaganda, Kazakhstan. E-mail: berik_t at yahoo.com + + diff --git a/macros/latex/contrib/lastbib/lastbib.sty b/macros/latex/contrib/lastbib/lastbib.sty new file mode 100644 index 0000000000..8b36427af9 --- /dev/null +++ b/macros/latex/contrib/lastbib/lastbib.sty @@ -0,0 +1,35 @@ +%% +%% This is file `lastbib.sty', created by Berik I. Tuleuov, +%% Karaganda, Kazakhstan, on 27/10/1999. +%% modified 01/11/1999. +%% modified by pastorm/ru-board to fix some bugs 29/01/2010. +%% +%% And the usual copying conditions apply: If you change it, you take the blame; +%% if you pass it on, pass on all present condiditions; you +%% are not allowed to sell it. +%% +%% Allow for things like |... \LastBib\ references in the work| to +%% get `... 25 references in the work' + +\def\filename{lastbib} +\def\fileversion{v2.0} +\def\filedate{2012/07/17} +\def\docdate {2012/07/17} + +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{lastbib}[\filedate\space\fileversion\space +LaTeX2e package for refs to bibliographic references count by Berik I. Tuleuov] + +\def\LastBib{\ref{LastBib}}% +\@definecounter{enumv} +\def\bibitem{\stepcounter{enumv}\@ifnextchar[\@lbibitem\@bibitem} +\def\lastbib@putlabel{% +\immediate\write\@auxout{\string +\newlabel{LastBib}{{\theenumv}{}{}{}{}}}% +} +\def\endthebibliography{\def\@noitemerr{% +\@latex@warning{Empty `thebibliography' environment}}\lastbib@putlabel% +\endlist} +\endinput +%% +%% End of file `lastbib.sty'. |