GeneralTranslate the title of Algorithm list

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kotoko
Posts: 12
Joined: Sat Jan 09, 2010 8:33 pm

Translate the title of Algorithm list

Post by kotoko »

Hello!

I'm trying to translate the title of the index of the algorithm list.
I'm using the packages algorithmic and algorithm. When I try to do as instructed in algorithms package and do command

Code: Select all

\newcommand{\listalgorithmname}{Lista  de Algoritmos}
I get

Code: Select all

! LaTeX Error: Command \listalgorithmname already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.12 ...{\listalgorithmname}{Lista  de Algoritmos}
I have no idea how to get around this. Any idea? I attach a sample code to see the error.

Thanks for any input.
Attachments
algoritmos.tex
(2 KiB) Downloaded 401 times
Last edited by kotoko on Sun Jan 24, 2010 9:58 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Translate the title of Algorithm list

Post by localghost »

kotoko wrote:[...] I'm trying to translate the title of the index of the algorithm list.
I'm using the packages algorithmic and algorithm. When I try to do as instructed in algorithms package and do command

Code: Select all

\newcommand{\listalgorithmname}{Lista  de Algoritmos}
[...]
You have to read the algorithms manual more careful. It says explicitly that this is the default definition of this command. If you want another one, you have to redefine it.

Code: Select all

\renewcommand{\listalgorithmname}{Lista de Algoritmos}

Best regards
Thorsten
kotoko
Posts: 12
Joined: Sat Jan 09, 2010 8:33 pm

Re: Translate the title of Algorithm list

Post by kotoko »

I actually had tried to do redefine but I think I might have put it in the wrong place or something because it didn't work.

I tried it again and it work, thanks.
Post Reply