General ⇒ help with numbering algorithms... please
help with numbering algorithms... please
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
help with numbering algorithms... please
Code: Select all
\numberwithin{algorithm}{chapter}
\floatname{algorithm}{Algoritmo}
\renewcommand{\listalgorithmname}{Lista de Algoritmos}