Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer
    
that's it, tnx. i will use the algorithmicx too. –  Alan Jun 16 '12 at 13:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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