Skip to content

Commit

Permalink
Fix clean on make script and improve option order in class file
Browse files Browse the repository at this point in the history
  • Loading branch information
re1 committed Apr 17, 2018
1 parent fbbc159 commit 59b9889
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
3 changes: 2 additions & 1 deletion make
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ def parse(args):
TMP[0].append("**/*.log")
if not args.minted: # add minted dir to temp dir list
TMP[1].append("**/*_minted-*")
res = [] # assume success
# choose a target or fall back to full compilation
if "clean" in target: # clean up files and directories listed in the TMP constant
res = clean()
clean()
elif "draft" in target: # run the tex command once
res = [tex(*arguments, command=command, file=file, verbose=verbose, out=out, skip=skip) for file in files]
elif "glo" in target: # compile glossary entries
Expand Down
36 changes: 18 additions & 18 deletions protocol.cls
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@
\DeclareOption{en}{\entrue}
\newif\iflandscape\landscapefalse % Landscape orientation
\DeclareOption{landscape}{\landscapetrue\PassOptionsToClass{landscape}{article}}
\newif\ifcolor\colortrue % No coloured links
\DeclareOption{nocolor}{\colorfalse}
\newif\iftitle\titletrue % No title page
\DeclareOption{notitle}{\titlefalse}
\newif\iftoc\toctrue % No table of contents
\DeclareOption{notoc}{\tocfalse}
\newif\iftable\tabletrue % No information table on page bottom
\DeclareOption{notable}{\tablefalse}
\newif\iflogos\logostrue % No logos
\DeclareOption{nologos}{\logosfalse}
\newif\iffonts\fontstrue % No additional fonts
\DeclareOption{nofonts}{\fontsfalse}
\newif\ifglo\glotrue % Do not except glossaries
\DeclareOption{noglo}{\glofalse}
\newif\ifbib\bibtrue % Do not except bibliography
\DeclareOption{nobib}{\bibfalse}
\newif\ifparskip\parskipfalse % Lineskip instead of indent after blank line
\DeclareOption{parskip}{\parskiptrue}
\newif\ifminted\mintedfalse % Minted for code listings
\DeclareOption{minted}{\mintedtrue}
\newif\ifnatbib\natbibfalse % NatBib as bibliography backend
\DeclareOption{natbib}{\bibtrue\natbibtrue}
\newif\ifbib\bibtrue % Do not except bibliography
\DeclareOption{nobib}{\bibfalse}
\newif\ifcolor\colortrue % No coloured links
\DeclareOption{nocolor}{\colorfalse}
\newif\iffonts\fontstrue % No additional fonts
\DeclareOption{nofonts}{\fontsfalse}
\newif\ifglo\glotrue % Do not except glossaries
\DeclareOption{noglo}{\glofalse}
\newif\iflogos\logostrue % No logos
\DeclareOption{nologos}{\logosfalse}
\newif\iftable\tabletrue % No information table on page bottom
\DeclareOption{notable}{\tablefalse}
\newif\iftitle\titletrue % No title page
\DeclareOption{notitle}{\titlefalse}
\newif\iftoc\toctrue % No table of contents
\DeclareOption{notoc}{\tocfalse}
\newif\ifparskip\parskipfalse % Skip a line instead of indenting after blank line
\DeclareOption{parskip}{\parskiptrue}
\newif\ifsans\sansfalse % Sans-serif fonts
\DeclareOption{sans}{\sanstrue}
% Pass options
Expand Down

0 comments on commit 59b9889

Please sign in to comment.