-
Notifications
You must be signed in to change notification settings - Fork 1
Description
This is to signal that the TeX Live mechanism to automagically install missing packages fails in the case of algorithms feature as for the komatufte vignette.
Here is the error from the log file:
...
LaTeX Warning: Reference `alg:algorithm' on page 2 undefined on input line 527.
! LaTeX Error: Environment algorithm undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.529 \begin{algorithm}
...
I am on a MS Windows machine and all missing fonts/styles got installed but algorithmicx.
I suppose this is due to the fact that line 340 in the komatufte.tex template (\usepackage[noend]{algpseudocode})
% Algorithms
\IfFileExists{algpseudocode.sty}{%
\usepackage[noend]{algpseudocode}
...will trigger TeX Live to search for algpseudocode.sty in CTAN and fail to discover it.
Once I manually installed algorithmicx, everything worked.
The following change makes the automatic installation and pdf production work magically again (tested by removing algorithmicx + failing PDF without the change + adding the change + success):
% Algorithms
\usepackage{algorithmicx}
\IfFileExists{algpseudocode.sty}{%
\usepackage[noend]{algpseudocode}
...I am not sure this is a valid implementation...but it can make life easier for potential users...
HTH