10/22/2012

! LaTeX Error: File `algorithm2e.sty' not found.

During yet another LaTeX project on my MacBook, I added some algorithms to my paper. After checking a couple of examples online, and discussing with a colleage I decided to go with algorithm2e over others such as algorithm, algorithmic, algorithmicx, program and pseudocode[1].

However I got the following error "! LaTeX Error: File `algorithm2e.sty' not found." Since I am using macport, to resolve this I needed to install the texlive-science package by executing sudo port install texlive-science, and all was good again.

References:

  1. http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode

1 comment:

  1. I had the same problem in a CentOS machine, and simply downloaded the style file from "http://www.ctan.org/tex-archive/macros/latex/contrib/algorithm2e/tex" and placed it in the same directory as my tex file and it compiled without issues.

    ReplyDelete