diff options
author | Norbert Preining <norbert@preining.info> | 2020-03-19 03:01:18 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-03-19 03:01:18 +0000 |
commit | c8b8ea37fe9cd71b53223dff23f291b2f158fc0f (patch) | |
tree | 4b91fec7c54c33edfbd023be9ccbdac673504483 /macros/xetex/latex/langsci/langsci-unified.cbx | |
parent | 701be49cc7a592cc192c0f28e45a763a4c745282 (diff) |
CTAN sync 202003190301
Diffstat (limited to 'macros/xetex/latex/langsci/langsci-unified.cbx')
-rw-r--r-- | macros/xetex/latex/langsci/langsci-unified.cbx | 42 |
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 - - - |