Advertisement
Guest User

Untitled

a guest
Jan 15th, 2020
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2.  
  3. \usepackage[linesnumbered]{algorithm2e}
  4. \usepackage{hyperref}
  5.  
  6. \renewcommand{\algorithmautorefname}{Algorithm}
  7. \renewcommand{\AlgoLineautorefname}{Line}
  8.  
  9. \begin{document}  
  10.  
  11. See \autoref{alg:myalg}, specifically \autoref{algl:y}.
  12.  
  13. \begin{algorithm}
  14.  \caption{An algorithm}\label{alg:myalg}
  15.  Do X\;
  16.  Do Y\nllabel{algl:y}\;
  17.  $x = y + z$\;
  18. \end{algorithm}
  19.  
  20. \end{document}
Advertisement
RAW Paste Data Copied
Advertisement