]> hydra-www.ietfng.org Git - mcv-academic/commitdiff
Added options to turn off or on the cite all behavior
authoradin <adin@ic.unicamp.br>
Mon, 19 Sep 2016 18:49:02 +0000 (15:49 -0300)
committeradin <adin@ic.unicamp.br>
Mon, 19 Sep 2016 18:49:02 +0000 (15:49 -0300)
moderncvstyleacademic.sty

index d9a5a989ed69b658b625777c1ff072556e22384f..04b9c8017504da79f311cc84de8a26ef994d0d2b 100755 (executable)
@@ -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
 \boldname{}{}{}
 
 % We need to tell biblatex to check for all entries
-\nocite{*}
+\if@citeall
+  \nocite{*}
+\fi
 
 
 % Patch the bibliography