summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-18 21:15:59 +0000
committerKarl Berry <karl@freefriends.org>2019-03-18 21:15:59 +0000
commitfdcf5fd90a27314abf7b130fd1e7a7bba0a3fa6a (patch)
treeb2711f87e663fe265d02234dc9ddd249248d82bd /Master/texmf-dist/tex/latex/nwejm/nwejm.cbx
parentdcb548e4ca7fc878c5f6d741fddc8b53dc52af38 (diff)
nwejm (18mar19)
git-svn-id: svn://tug.org/texlive/trunk@50447 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nwejm/nwejm.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/nwejm/nwejm.cbx55
1 files changed, 41 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx b/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx
index bcedf42dbeb..431ce78aa79 100644
--- a/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx
+++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx
@@ -15,7 +15,7 @@
\ProvidesFile{nwejm.cbx}
[2016/04/01 v 0.1 nwejm citation style (DB)]
-\RequireCitationStyle{authoryear}
+\RequireCitationStyle{authoryear-comp}
\ExecuteBibliographyOptions{giveninits,ibidtracker=constrict,pagetracker=page}
@@ -101,24 +101,51 @@
}
{\usebibmacro{postnote}}%
\DeclareMultiCiteCommand{\nwejmfootcites}[\mkbibfootnote]{\nwejmfootcite}
-{\addsemicolon\space}
+{%
+ \ifcurrentbaselanguage{french}{%
+ \parindent=\parindentFFN%
+ \addtolength{\parindent}{\widthof{\dotFFN\kernFFN}}%
+ }{%
+ \parindent=\footnotemargin%
+ }%
+ \multicitedelim\newline\indent%
+}
\DeclareAutoCiteCommand{nwejmfootcite}{\nwejmfootcite}{\nwejmfootcites}
-\DeclareCiteCommand{\textcite}
- {\boolfalse{cbx:parens}}
- {\usebibmacro{citeindex}%
- \iffirstcitekey
- {\setcounter{textcitetotal}{1}}
+\DeclareCiteCommand{\textcite}[\cbx@textcite@init\cbx@textcite]
+ {\gdef\cbx@savedkeys{}%
+ \citetrackerfalse%
+ \pagetrackerfalse%
+ \DeferNextCitekeyHook%
+ \usebibmacro{cite:init}}
+ {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}
+ {\protected@xappto\cbx@savedcites{()(\thefield{multipostnote})}%
+ \global\clearfield{multipostnote}}
+ {}%
+ \xappto\cbx@savedkeys{\thefield{entrykey},}%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {}
{\stepcounter{textcitetotal}%
- \textcitedelim}%
- \iffootnote{\usebibmacro{nwejm:cite}}{\printtext[bibhyperref]{\usebibmacro{textcite}}}}
- {\ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}}
- {\usebibmacro{textcite:postnote}}
+ \savefield{namehash}{\cbx@lasthash}}}
+ {}
+ {\protected@xappto\cbx@savedcites{%
+ [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}
+
+ % \DeclareCiteCommand{\textcite}
+ % {\boolfalse{cbx:parens}}
+ % {\usebibmacro{citeindex}%
+ % \iffirstcitekey
+ % {\setcounter{textcitetotal}{1}}
+ % {\stepcounter{textcitetotal}%
+ % \textcitedelim}%
+ % \iffootnote{\usebibmacro{nwejm:cite}}{\printtext[bibhyperref]{\usebibmacro{textcite}}}}
+ % {\ifbool{cbx:parens}
+ % {\bibcloseparen\global\boolfalse{cbx:parens}}
+ % {}}
+ % {\usebibmacro{textcite:postnote}}
\ExecuteBibliographyOptions{autocite=nwejmfootcite}
%%
-%% Copyright (C) 2015-2018 by Denis Bitouze <denis.bitouze@univ-littoral.fr>
+%% Copyright (C) 2015-2019 by Denis Bitouze <denis.bitouze@univ-littoral.fr>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License (LPPL), either