6

Can you help me to rename the title of \listofalgorithms (which is 'List of Algorithms') to another text? I don't know how to do that.

2 Answers 2

7

Update \listalgorithmcfname:

enter image description here

\documentclass{article}

\usepackage{algorithm2e}

\renewcommand{\listalgorithmcfname}{List of Algorithmus}

\begin{document}

\listofalgorithms

\begin{algorithm}
  \caption{An algorithm.}
\end{algorithm}

\end{document}
3
  • What if I want to list it in contents as section rather than chapter? Commented Jan 6 at 8:07
  • @lRadha: Are you using a class that contains \chapters? Then it should default to setting the LoA as a chapter. Commented Jan 6 at 17:08
  • Thanks @Werner, but I found the solution: \usepackage[section]{tocbibind} Commented Jan 8 at 2:41
0

Another option is to use the provided command \SetAlgorithmName, which takes 3 arguments: the new name of algorithms, the name to be used with \autoref, and the name to be used in the list of algorithms.

\documentclass{article}

\usepackage{algorithm2e}

\SetAlgorithmName{Algorithmus}{Al.}{List of Algorithmi}

\begin{document}

\listofalgorithms

\begin{algorithm}
  \caption{An algorithm.}
\end{algorithm}

\end{document}

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.