summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/langsci/langsci-unified.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/xetex/latex/langsci/langsci-unified.cbx')
-rw-r--r--macros/xetex/latex/langsci/langsci-unified.cbx42
1 files changed, 34 insertions, 8 deletions
diff --git a/macros/xetex/latex/langsci/langsci-unified.cbx b/macros/xetex/latex/langsci/langsci-unified.cbx
index bc3334ab9b..d944237795 100644
--- a/macros/xetex/latex/langsci/langsci-unified.cbx
+++ b/macros/xetex/latex/langsci/langsci-unified.cbx
@@ -1,8 +1,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% File: langscibook.cls
-%% Author: Language Science Press (http://langsci-press.org)
-%% Date: 2019-03-06 13:12 UTC
-%% Purpose: An implementation of the Unified Style Sheet for Linguistics bibliographies (https://www.linguisticsociety.org/resource/unified-style-sheet).
-%% This work is based on the styles provided by Semantics \& Pragmatics
+%% Author: Language Science Press (http://langsci-press.org)
+%% Date: 2020-03-17 13:12 UTC
+%% Purpose: An implementation of the Unified Style Sheet for Linguistics bibliographies (https://www.linguisticsociety.org/resource/unified-style-sheet).
+%% This work is based on the styles provided by Semantics \& Pragmatics
%% Language: LaTeX
%% Copyright 2017- Language Science Press
%% Licence: This work may be distributed and/or modified under the
@@ -294,6 +294,34 @@
{}
{\usebibmacro{textcite:postnote}}
+% "This volume" citation commands
+\DeclareCiteCommand{\citetv}
+ {\usebibmacro{prenote}}
+ {\ifciteindex
+ {\indexnames{labelname}}
+ {}%
+ \printtext[bibhyperref]{\printnames{labelname}\addspace\printfield{year}}}
+ {\multicitedelim}
+ {\printtext[bibhyperref]{\usebibmacro{postnote}\addspace[this volume]}}
+
+\DeclareCiteCommand{\textcitetv}
+ {\usebibmacro{prenote}}
+ {\ifciteindex
+ {\indexnames{labelname}}
+ {}%
+ \printtext[bibhyperref]{\printnames{labelname}\addspace\bibopenparen\printfield{year}}}
+ {\multicitedelim}
+ {\printtext[bibhyperref]{\usebibmacro{postnote}\addspace[this volume]\bibcloseparen}}
+
+\DeclareCiteCommand{\parencitetv}
+ {\usebibmacro{prenote}}
+ {\ifciteindex
+ {\indexnames{labelname}}
+ {}%
+ \printtext[bibhyperref]{\bibopenparen\printnames{labelname}\addspace\printfield{year}}}
+ {\multicitedelim}
+ {\printtext[bibhyperref]{\usebibmacro{postnote}\addspace[this volume]\bibcloseparen}}
+
\DeclareMultiCiteCommand{\cites}{\cite}{\setunit{\multicitedelim}}
\DeclareMultiCiteCommand{\parencites}[\mkbibparens]{\parencite}{\setunit{\multicitedelim}}
\DeclareMultiCiteCommand{\footcites}[\mkbibfootnote]{\footcite}{\setunit{\multicitedelim}}
@@ -306,6 +334,8 @@
\let\citealt\cite
\let\citet\textcite
+\let\citep\parencite
+\let\citepv\parencitetv
\let\Citet\Textcite
\newcommand{\pgcitep}[2]{(\cite{#1}:~#2)}
\newcommand{\pgcitealt}[2]{\cite{#1}:~#2}
@@ -315,7 +345,6 @@
\newcommand{\seccitep}[2]{(\cite{#1}:~$\S$#2)}
\newcommand{\seccitet}[2]{\citeauthor{#1} (\citeyear{#1}:~$\S$#2)}
\newcommand{\secposscitet}[2]{\citeauthor{#1}'s (\citeyear{#1}:~$\S$#2)}
-\let\citep\parencite
\renewcommand*{\postnotedelim}{\addcolon\space}
\DeclareFieldFormat{postnote}{#1}
@@ -378,6 +407,3 @@
% \renewcommand{\nameyeardelim}{ }%
\endinput
-
-
-