10

This is my code

\begin{algorithm}  
\caption{Funkcija ACO}  
\label{alg:aco}  
\begin{algorithmic}  
    \STATE{do something}  
\end{algorithmic}  
\end{algorithm} 

it produces a caption like this enter image description here

I want to translate the word "Algorithm" to my language.. how can I do this?

6

You have to modify \ALG@name in order to get the appropriate translation:

enter image description here

\documentclass[11pt]{article}
\usepackage{algorithm}% http://ctan.org/pkg/algorithms
\usepackage{algorithmic}% http://ctan.org/pkg/algorithms
\makeatletter
\renewcommand{\ALG@name}{AlGoRiThM}
\renewcommand{\listalgorithmname}{List of \ALG@name s}
\makeatother
\begin{document}
\listofalgorithms
\begin{algorithm}
\caption{Funkcija ACO}
\label{alg:aco}  
\begin{algorithmic} 
  \STATE{do something}  
\end{algorithmic}  
\end{algorithm} 
\end{document}

You may also consider using the more advanced algorithmicx bundle.

1
  • that's it, tnx. i will use the algorithmicx too.
    – Alan
    Jun 16 '12 at 13:52
1

Use \floatname command in the algorithm package. For renaming the algorithm caption.

\floatname{algorithm}{Algorithmus}
1
  • Instead of posting this as a question, rather provide the code that shows how to use \floatname.
    – Werner
    Feb 23 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.