Hi!
I'm writing a research report (based on the book template) and I am using the algorithm package. I want to number the algorithms using {chapter}{algorithm}, but I don't understand the Algorithm document I found on ctan. It says
"The numbering of algorithms can be influenced by providing the name of
the document component within which numbering should be recommenced.
The legal values for this option are: part, chapter, section, subsection,
subsubsection or nothing. The default value is nothing which causes algorithms
to be numbered sequentially throughout the document."
But I am new using LaTex and I don't know what and where to write it.
Also I am working in spanish and I like to have them inthe TOC but (obviously) when I generate the Algorithms List it comes in english. I found I need to use the \floatname but I don't know how to use it
Thanks a lot
Mariamar
General ⇒ help with numbering algorithms... please
NEW: TikZ book now 40% off at Amazon.com for a short time.
help with numbering algorithms... please
The easiest solution is to include this in the preamble of your document (after the \usepackage commands and before \begin{document}):
Code: Select all
\numberwithin{algorithm}{chapter}
\floatname{algorithm}{Algoritmo}
\renewcommand{\listalgorithmname}{Lista de Algoritmos}
1,1,2,3,5,8,13,21,34,55,89,144,233,...