
Usando o código a seguir, o nome da função foo é impresso como \textsc{foo}
.
\usepackage{algorithmic}
\begin{document}
\begin{frame}
\begin{algorithmic}[1]
\Function{foo}{$a$}
\EndFunction
\end{algorithmic}
\end{frame}
Como posso mudar isso \texttt{foo}
para todos \Function
e \Call
comandos?
Responder1
O pacote necessário é algpseudocode
, não algorithmic
.
\documentclass{article}
\usepackage{algpseudocode}
\algrenewcommand\textproc{\texttt}
\begin{document}
\begin{algorithmic}[1]
\Function{foo}{$a$}
\EndFunction
\end{algorithmic}
\end{document}