Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage[linesnumbered]{algorithm2e}
- \usepackage{hyperref}
- \renewcommand{\algorithmautorefname}{Algorithm}
- \renewcommand{\AlgoLineautorefname}{Line}
- \begin{document}
- See \autoref{alg:myalg}, specifically \autoref{algl:y}.
- \begin{algorithm}
- \caption{An algorithm}\label{alg:myalg}
- Do X\;
- Do Y\nllabel{algl:y}\;
- $x = y + z$\;
- \end{algorithm}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement