Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am having some trouble getting a LaTeX document to compile. I would like to use the package algorithm2e. I am working on a machine running Ubuntu. I tried using Texmaker and Gummi (LaTeX editors) and got same errors on both:

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

Type X to quit or  to proceed,
or enter new name. (Default extension: sty)

Also I have texlive distribution. When I did this on my windows machine (with MiKTeX) it worked like a charm. Suggestions?

\documentclass[12pt]{article}
\usepackage{algorithm2e}

\begin{document}

\end{document}        
share|improve this question
    
algorithm2e was the first one I heard of (recommended by professor) –  Benjamin Feb 28 '12 at 22:01
    
@KonradRudolph: Superior how, exactly? Just curious. –  Dervin Thunk Feb 29 '12 at 2:40
    
@Dervin (1) Markup: I don’t particularly like the curly braces,; I hate the \;, it renders the markup unreadable. Also, why is there \lIf etc? The many abbreviations in macro names, too, make readability worse. And all these comments to control indent, newlines, etc. don’t have a place – it feels way more “low-level” than algorithmicx. (2) Typesetting: I never liked the Cormen pseudocode typesetting, which this package is emulating. The lines connecting block delimiters are nice, but noisy. (3) Configurability: Look at my linked example to see how extensively I configure my pseudocode. –  Konrad Rudolph Feb 29 '12 at 8:06
    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Feb 29 '12 at 19:51
add comment

migrated from stackoverflow.com Feb 29 '12 at 18:50

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 10 down vote accepted

You probably have not installed the full TeX Live but only a decent selection of it. To get the package you are after you can either

  • install the full distribution, or
  • just install the package texlive-science which contains algorithm2e (the same package also contains algorithmicx).

To install the latter you can issue the following in a terminal:

sudo apt-get install texlive-science
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.