Saturday, March 21, 2009


If you try to use line numbers with the LaTeX algorithmic package and also hyperref, you are in trouble.  You get lots of annoying warnings about symbols being defined twice.  The solution is found here.
You need to include a little latex package called algorithmic-fix.sty, provided by the author of hyperref.  The content is:

  [2008/02/27 v0.1 Fixes algorithmic for hyperref (]
% 1. Replace the two wrong \refstepcounter's with \stepcounter's
% 2. Define a unique \theHALC@line
% That's all

No comments:

Post a Comment