Skip to content

Instantly share code, notes, and snippets.

@sacko87
Created Mar 22, 2017
Embed
What would you like to do?
% 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