summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gcite
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-07-06 00:20:06 +0000
committerKarl Berry <karl@freefriends.org>2009-07-06 00:20:06 +0000
commit87e6276d9f4bbcdef5324384737356208621356a (patch)
tree39471c0e3c2031f03c4fd72b86bbacf7739d177f /Master/texmf-dist/tex/latex/gcite
parent113e17a8d8e8ae3b7af7140e4ab17590631c4ced (diff)
gcite update (4jul09)
git-svn-id: svn://tug.org/texlive/trunk@14138 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gcite')
-rw-r--r--Master/texmf-dist/tex/latex/gcite/gcite.sty17
1 files changed, 7 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/gcite/gcite.sty b/Master/texmf-dist/tex/latex/gcite/gcite.sty
index 35b4ad85426..a810e35490d 100644
--- a/Master/texmf-dist/tex/latex/gcite/gcite.sty
+++ b/Master/texmf-dist/tex/latex/gcite/gcite.sty
@@ -7,7 +7,7 @@
%% gcite.dtx (with options: `gcite.sty,package')
%%
%% gcite.dtx
-%% Copyright 2007 Matthew Tylee Atkinson and Iain Phillips
+%% Copyright 2009 Matthew Tylee Atkinson and Iain Phillips
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{gcite}
+\ProvidesPackage{gcite}[2009/07/03 1.0.1]
\RequirePackage{biblatex}
\newif\ifgcite@normalcite
\gcite@normalcitefalse
@@ -53,22 +53,19 @@
\def\gcite@foot@presep{---}
\def\gcite@foot@postsep{}
\def\gcite@one#1{\citeauthor{#1}, \citetitle{#1}, \citeyear{#1}}
-\def\gcite@core#1{%
+\def\gcite@core#1#2{%
\newif\ifgcite@nfirst
\gcite@nfirstfalse%
\@for\@c:=#1\do{%
\ifgcite@nfirst{\gcite@itemsep}\else\gcite@nfirsttrue\fi%
- \gcite@one\@c} \origcite{#1}}
+ \gcite@one\@c}~\origcite[#2]{#1}}
\ifgcite@normalcite%
- \renewcommand{\cite}[1]{%
- ~\origcite{#1}%
- }
\else%
- \renewcommand{\cite}[1]{%
+ \renewcommand{\cite}[2][]{%
\ifnum\interlinepenalty=\interfootnotelinepenalty%
- \gcite@foot@presep\gcite@core{#1}\gcite@foot@postsep%
+ \gcite@foot@presep\gcite@core{#2}{#1}\gcite@foot@postsep%
\else%
- \footnote{\gcite@core{#1}}%
+\unskip\footnote{\gcite@core{#2}{#1}}%
\fi%
}
\fi