# [Tex/LaTex] Smaller font size of the algorithm description

algorithmsfontsize

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

The package I use is \usepackage{algorithmic}.

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}