summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/citeall
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-04-28 22:07:36 +0000
committerKarl Berry <karl@freefriends.org>2015-04-28 22:07:36 +0000
commitab2fea2516cb42cf436ea44c685042a07fc183ee (patch)
tree10801edbd8b7290b99ce2ece5bcf731ef594525b /Master/texmf-dist/tex/latex/citeall
parentcd6f96916d58ef657b1ddff9bb6b5ed266abdb38 (diff)
citeall (28apr15)
git-svn-id: svn://tug.org/texlive/trunk@37103 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/citeall')
-rw-r--r--Master/texmf-dist/tex/latex/citeall/citeall.sty90
1 files changed, 47 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/citeall/citeall.sty b/Master/texmf-dist/tex/latex/citeall/citeall.sty
index e547b097b1e..fa949c920d5 100644
--- a/Master/texmf-dist/tex/latex/citeall/citeall.sty
+++ b/Master/texmf-dist/tex/latex/citeall/citeall.sty
@@ -5,11 +5,12 @@
%% www.troubleshooting-tex.de
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
+%% $UFDate: 2015-04-28 13:27:07 +0200 -- Commit: f04431e -- master$
%% ---------------------------------------------------------------
\RequirePackage{expl3,xparse}
-\ProvidesExplPackage {citeall} {2015/02/27} {1.1}
+\ProvidesExplPackage {citeall} {2015/04/28} {1.2}
{a package to test biblatex-cite commands}
\@ifpackageloaded{biblatex}{}{%
@@ -25,13 +26,13 @@
\DeclareBibliographyCategory{citeall}
% commands to hold arguments and temporary values
-\clist_new:N \l_UF_citecommands_clist
-\tl_new:N \l_UF_temp_citefunction_tl
-\tl_new:N \l_UF_temp_entrykey_tl
-\int_new:N \l_UF_temp_listitem_int
-\int_new:N \l_UF_temp_listlength_int
-\int_new:N \l_UF_entrynum_int
-\int_new:N \l_UF_cur_entrynum_int
+\clist_new:N \l_UFca_citecommands_clist
+\tl_new:N \l_UFca_temp_citefunction_tl
+\tl_new:N \l_UFca_temp_entrykey_tl
+\int_new:N \l_UFca_temp_listitem_int
+\int_new:N \l_UFca_temp_listlength_int
+\int_new:N \l_UFca_entrynum_int
+\int_new:N \l_UFca_cur_entrynum_int
% formatting commands
\NewDocumentCommand\citeallgroupseparator{}{\par}
@@ -40,47 +41,50 @@
\NewDocumentCommand\citealldefaultcite {}{\cite}
%init suitable definitions for the fields in the bbl
-\cs_new:Nn \_UF_init_bblfields:
- {\newcommand\true [2][]{}
- \newcommand\field[3][]{}
- \newcommand\name [5][]{}
- \newcommand\strng[2]{}%
- \renewenvironment{refsection}[1]{}{}
- \newenvironment{sortlist}[2]{}{}
- \renewcommand\verb{\@ifnextchar\bgroup{\@gobble}{\my@verb}}
- \def\my@verb##1\endverb{}
- \renewcommand\list[4][]{}
- \newcommand\inset[1]{}
- \newcommand\keyw[1]{}
- \newcommand\set[1]{}
- \newcommand\warn[1]{}
+\cs_new:Nn \_UFca_init_bblfields:
+ {\newcommand\true [2][]{\ignorespaces}
+ \newcommand\field[3][]{\ignorespaces}
+ \newcommand\name [5][]{\ignorespaces}
+ \newcommand\strng[2]{\ignorespaces}%
+ \renewenvironment{refsection}[1]{}{\ignorespaces}
+ \newenvironment{sortlist}[2]{}{\ignorespaces}
+ %\renewcommand\verb{\@ifnextchar\bgroup{\@gobble}{\my@verb}}
+ \def\verb##1\endverb{\ignorespaces}
+ \renewcommand\list[4][]{\ignorespaces}
+ \newcommand\inset[1]{\ignorespaces}
+ \newcommand\keyw[1]{\ignorespaces}
+ \newcommand\set[1]{\ignorespaces}
+ \newcommand\warn[1]{\ignorespaces}
+ \renewcommand\inset[1]{\addtocategory{citeall}{##1}\ignorespaces}
+ \newcommand\range[2]{\ignorespaces} %for biblatex-dev
}
+
% init the entry environment
%#1=number of entries to process, if 0: process all
-\cs_new:Nn \_UF_init_bblentryenv:n
- {\int_set:Nn \l_UF_entrynum_int {#1}
- \int_zero:N \l_UF_cur_entrynum_int
+\cs_new:Nn \_UFca_init_bblentryenv:n
+ {\int_set:Nn \l_UFca_entrynum_int {#1}
+ \int_zero:N \l_UFca_cur_entrynum_int
\NewDocumentEnvironment{entry} {m m m}
- {\int_incr:N \l_UF_cur_entrynum_int
- \tl_set:Nn \l_UF_temp_entrykey_tl {##1}
- \int_zero:N \l_UF_temp_listitem_int
- \int_set:Nn \l_UF_temp_listlength_int
- {\clist_count:N\l_UF_citecommands_clist}
+ {\int_incr:N \l_UFca_cur_entrynum_int
+ \tl_set:Nn \l_UFca_temp_entrykey_tl {##1}
+ \int_zero:N \l_UFca_temp_listitem_int
+ \int_set:Nn \l_UFca_temp_listlength_int
+ {\clist_count:N\l_UFca_citecommands_clist}
\bool_if:nT
{
- \int_compare_p:n { \l_UF_entrynum_int = 0 }
+ \int_compare_p:n { \l_UFca_entrynum_int = 0 }
||
- \int_compare_p:n { \l_UF_cur_entrynum_int <= \l_UF_entrynum_int}
+ \int_compare_p:n { \l_UFca_cur_entrynum_int <= \l_UFca_entrynum_int}
}
{\addtocategory{citeall}{##1}
- \clist_map_inline:Nn \l_UF_citecommands_clist
+ \clist_map_variable:NNn \l_UFca_citecommands_clist \l_UFca_temp_citefunction_tl
{
- \int_incr:N \l_UF_temp_listitem_int
- \tl_set:Nn \l_UF_temp_citefunction_tl {####1}
- \l_UF_temp_citefunction_tl {\l_UF_temp_entrykey_tl}
+ \int_incr:N \l_UFca_temp_listitem_int
+ %\tl_set:Nn \l_UFca_temp_citefunction_tl {####1}
+ \l_UFca_temp_citefunction_tl {\l_UFca_temp_entrykey_tl}
\int_compare:nNnTF
- {\l_UF_temp_listitem_int}<{\l_UF_temp_listlength_int}
+ {\l_UFca_temp_listitem_int}<{\l_UFca_temp_listlength_int}
{\citeallseparator}{\citeallfinentry}
}
\citeallgroupseparator
@@ -94,16 +98,16 @@
\NewDocumentCommand\citeall { O{\citealldefaultcite} o}
{\nocite{*} %cite all entries
- \clist_set:Nn\l_UF_citecommands_clist{#1}
- \clist_if_empty:NT\l_UF_citecommands_clist
+ \clist_set:Nn\l_UFca_citecommands_clist{#1}
+ \clist_if_empty:NT\l_UFca_citecommands_clist
{
- \clist_put_right:Nn\l_UF_citecommands_clist{\citealldefaultcite}
+ \clist_put_right:Nn\l_UFca_citecommands_clist{\citealldefaultcite}
}
\group_begin:
\IfNoValueTF{#2}
- {\_UF_init_bblentryenv:n{0}}
- {\_UF_init_bblentryenv:n{#2}}
- \_UF_init_bblfields:
+ {\_UFca_init_bblentryenv:n{0}}
+ {\_UFca_init_bblentryenv:n{#2}}
+ \_UFca_init_bblfields:
\file_if_exist:nT
{\jobname.bbl}
{\file_input:n{\jobname.bbl}}%