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.
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 MunnFeb 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 HlavacekFeb 26 '11 at 14:29
@ Alan I use the \usepackage{algorithmic} – Fan ZhangFeb 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}