From: adin Date: Mon, 19 Sep 2016 18:49:02 +0000 (-0300) Subject: Added options to turn off or on the cite all behavior X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=b5e93d39ef62e40fbe44efe0a3749738419b899c;p=mcv-academic Added options to turn off or on the cite all behavior --- diff --git a/moderncvstyleacademic.sty b/moderncvstyleacademic.sty index d9a5a98..04b9c80 100755 --- a/moderncvstyleacademic.sty +++ b/moderncvstyleacademic.sty @@ -7,11 +7,17 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{moderncvstyleacademic}[2016/08/28 v1.0.0 modern curriculum vitae and letter style scheme: academic] +\newif\if@citeall +\@citealltrue + % head section alignment options: "left" (default) or "right" \@initializecommand{\moderncvstyleheadoptions}{} \DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}} \DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}} +\DeclareOption{citeall}{\@citealltrue} +\DeclareOption{nocite}{\@citeallfalse} + \DeclareOption*{}% avoid choking on unknown options \ExecuteOptions{left} \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package @@ -264,7 +270,9 @@ \boldname{}{}{} % We need to tell biblatex to check for all entries -\nocite{*} +\if@citeall + \nocite{*} +\fi % Patch the bibliography