Small LaTeX hacks

During my PhD, I found the following two problems:

  1. I was using the pseudocode.sty package and wanted a list of algorithms
  2. I wanted a list of logical labels like the one latex lablst creates, but lablst was choking on \usepackage[spanish]{babel}
I therefore patched (my knowledge of latex internals is very small, so the patch is not nice) pseudocode.sty. Use

\newcommand{\listalgorithmname}{List of Algorithms}
\cleardoublepage
\addcontentsline{toc}{chapter}{\listalgorithmname}
\listof{Algorithm}{\listalgorithmname}

to insert the list of algorithms in your latex file

The long term solution to lablst is to make it ask explicitly for babel and its parameters. However, since I only used one language, I simply patched lablst to always include it. It took me a few months to understand what was happening, and my searchs found nothing about babel/lablst interaction. I hope you find this page useful.

Patch for pseudocode.sty to allow lists of algorithms
Patch for lablst to make it work with inputenc

Valid XHTML 1.1

Rubén García's Web Page