Skip to content

Instantly share code, notes, and snippets.

@sacko87
Created March 22, 2017 15:01
Show Gist options
  • Save sacko87/7db5d9e76ede0bff7b1a4aa52e0487f7 to your computer and use it in GitHub Desktop.
Save sacko87/7db5d9e76ede0bff7b1a4aa52e0487f7 to your computer and use it in GitHub Desktop.
% draft stuffs
\usepackage{lineno}
\usepackage{totcount}
\@ifpackageloaded{lineno}{}{\newcommand\linenumbers\relax}
\@ifpackageloaded{totcount}{
\newtotcounter{citnum}
\AtEveryBibitem{\stepcounter{citnum}}
\newcommand\refcount{\todo{This document contains \total{citnum}\ references.}}
}{
\newcommand\refcount\relax
}
\usepackage{ifdraft}
\ifdraft{
\@ifpackageloaded{tikz}{
% http://tex.stackexchange.com/a/82224/128303
\pgfkeys{/pgf/images/include external/.code=\includegraphics{#1}}
}{}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment