# Smaller font size of the algorithm description?

\small or other tag seems can not change the font size of the line number.

The package I use is \usepackage{algorithmic}.

-
Hi, welcome to tex.SX. So that people can better understand your question, it's helpful to add a minimal example that illustrates your problem. What package are you loading to display the algorithms? – Alan Munn Feb 26 '11 at 11:13
I agree with Alan, there are several different packages that can be used to describe an algorithm, without knowing which one you are using, there really isn't much anybody can do to help you. – Jan Hlavacek Feb 26 '11 at 14:29
@ Alan I use the \usepackage{algorithmic} – Fan Zhang Feb 27 '11 at 5:51

Use \algsetup{linenosize=\small}. See p. 12 of the documentation of the algorithms bundle for details.

\documentclass{article}

\usepackage{algorithmic}
\algsetup{linenosize=\small}

\begin{document}

\begin{algorithmic}[1]
\IF{some condition is true}
\STATE do some processing
\ELSE
\STATE do the default actions
\ENDIF
\end{algorithmic}

\end{document}

-
it only changes the size of the number of line but not the global font, how can i change the font size??? – flow Jun 29 '11 at 15:14
@gpu_drug: \usepackage{etoolbox}\AtBeginEnvironment{algorithmic}{\small}  – lockstep Jun 29 '11 at 15:25
This did't work for me. The solution from tex.stackexchange.com/questions/16059/… works. – Alejandro Jul 13 '11 at 22:53