diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-15 22:09:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-15 22:09:57 +0000 |
commit | 57b9b4f42d85b55de3e221002aadd58cc0986c2a (patch) | |
tree | 6694c04ec78e020b4e7541b3d1901ed31aae7bb3 /Master/texmf-dist/tex/latex/nwejm/nwejm.cbx | |
parent | e546ad01a2bf102f02e32ad5117a44644a3aea8b (diff) |
nwejm (15feb17)
git-svn-id: svn://tug.org/texlive/trunk@43233 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.cbx | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx b/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx new file mode 100644 index 00000000000..4008cb50241 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx @@ -0,0 +1,140 @@ +%% +%% This is file `nwejm.cbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nwejm.dtx (with options: `citestyle') +%% -------:| ----------------------------------------------------------------- +%% nwejm:| Class for the journal "North-Western European Journal of Mathematics" +%% Author:| Denis Bitouze +%% E-mail:| denis.bitouze@univ-littoral.fr +%% License:| Released under the LaTeX Project Public License v1.3c or later +%% See:| http://www.latex-project.org/lppl.txt +%% +\ProvidesFile{nwejm.cbx} +[2016/04/01 v 0.1 nwejm citation style (DB)] + +\RequireCitationStyle{authoryear} + +\ExecuteBibliographyOptions{giveninits,ibidtracker=constrict} + +\renewrobustcmd{\blx@mkbibfootnote}[2]{% + \iftoggle{blx@footnote}% + {\blx@warning{Nested notes}% + \addspace\mkbibparens{#2}}% + {\unspace% + \ifnum\blx@notetype=\tw@% + \expandafter\@firstoftwo% + \else% + \expandafter\@secondoftwo% + \fi% + {\csuse{blx@theendnote#1}{\protecting{\blxmkbibnote{end}{#2}}}}% + {% + \patchcmd\@makefnmark% + {\normalfont}% + {\normalfont\bfseries}% + {}{}% + \csuse{footnote#1}{\protecting{\blxmkbibnote{foot}{#2}}}% + }% + }% +} +\renewcommand*{\mkcitation}[1]{% + \patchcmd\@makefnmark% + {\normalfont}% + {\normalfont\bfseries}% + {}{}% + \footnote{#1}% +} +\newbibmacro*{cite:title}{% + \printtext[bibhyperref]{% + \printfield[citetitle]{labeltitle}}} +\providecommand*{\mkibid}[1]{#1} +\newbibmacro*{cite:ibid}{% + \printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}% +} +\newbibmacro*{nwejm:cite}{% + \iffieldundef{shorthand}{% + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% + {\usebibmacro{cite:ibid}}% + {% + \ifthenelse{% + \ifnameundef{labelname}% + }{% + \usebibmacro{cite:label}% + \setunit{\addcomma\space}% + }{% + \printnames{labelname}% + \ifthenelse{% + \iffieldundef{labelyear}% + }{% + }{% + \setunit{\addcomma\space}% + \usebibmacro{cite:labelyear+extrayear}% + \ifthenelse{% + \iffieldundef{labeltitle}% + }{% + }{% + \setunit{\addcomma\space}% + \usebibmacro{cite:title}% + }% + }% + }% + }% + }% + }{% + \usebibmacro{cite:shorthand}% + }% +} +\DeclareCiteCommand{\nwejmfootcite}[\mkbibfootnote] +{\usebibmacro{prenote}}% +{\usebibmacro{citeindex}% + \usebibmacro{nwejm:cite}} +{% + \ifcurrentbaselanguage{french}{% + \parindent=\parindentFFN% + \addtolength{\parindent}{\widthof{\dotFFN\kernFFN}}% + }{% + \parindent=\footnotemargin% + }% + \multicitedelim\newline\indent% +} +{\usebibmacro{postnote}}% +\DeclareMultiCiteCommand{\nwejmfootcites}[\mkbibfootnote]{\nwejmfootcite} +{\addsemicolon\space} +\DeclareAutoCiteCommand{nwejmfootcite}{\nwejmfootcite}{\nwejmfootcites} + +\DeclareCiteCommand{\textcite} + {\boolfalse{cbx:parens}} + {\usebibmacro{citeindex}% + \iffirstcitekey + {\setcounter{textcitetotal}{1}} + {\stepcounter{textcitetotal}% + \textcitedelim}% + \iffootnote{\usebibmacro{nwejm:cite}}{\usebibmacro{textcite}}} + {\ifbool{cbx:parens} + {\bibcloseparen\global\boolfalse{cbx:parens}} + {}} + {\usebibmacro{textcite:postnote}} + +\ExecuteBibliographyOptions{autocite=nwejmfootcite} +%% +%% Copyright (C) 2015, 2016, 2017 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 +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Denis Bitouze. +%% +%% This work consists of the file nwejm.dtx and a Makefile. +%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls. +%% Running "make inst" installs the files in the user's TeX tree. +%% Running "make install" installs the files in the local TeX tree. +%% +%% +%% End of file `nwejm.cbx'. |