From b5e93d39ef62e40fbe44efe0a3749738419b899c Mon Sep 17 00:00:00 2001 From: adin Date: Mon, 19 Sep 2016 15:49:02 -0300 Subject: [PATCH] Added options to turn off or on the cite all behavior --- moderncvstyleacademic.sty | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.50.1