Under Ubuntu 15.04, I want to use algorithm2e
to write pseudo code, when I copied an example from the documentation, TeXStudio displays error indicating that the command \Fn
is undefined. I thought that the package might be outdated so I run an update over texlive-science
sudo apt-get install texlive-science
but it shows that texlive-science is already the newest version.
Is it not updated in Ubuntu repositories? If so, how can I update algorithm2e
to the lasted version?
Best Answer
You can find the required definition of
\Fn
in thealgorithm2e
documentation code. It's defined using\SetKwProg
.The generic algorithm is prefixed with the following definitions:
For other parts of the documentation, it redefined
\Fn
to display something else (depending on the output requirements).