Skip to content

Instantly share code, notes, and snippets.

@cgranade
Created July 15, 2015 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgranade/dc7bca3d990412b8543e to your computer and use it in GitHub Desktop.
Save cgranade/dc7bca3d990412b8543e to your computer and use it in GitHub Desktop.
Defeating {revtex4-1} and @control with the power of unforgivable hacks.
\documentclass[aps,pra,twocolumn,superscriptaddress,nofootinbib]{revtex4-1}
%=============================================================================
% BEGIN UNFORGIVABLE HACKS
%=============================================================================
\makeatletter
\def\@bibdataout@aps{%
\immediate\write\@bibdataout{%
@CONTROL{%
apsrev41Control,author="08",editor="1",pages="0",title="0",year="1"%
}%
}%
\if@filesw
\immediate\write\@auxout{\string\citation{apsrev41Control}}%
\fi
}%
\makeatother % Phew.
%=============================================================================
% END UNFORGIVABLE HACKS
%=============================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment