2

When using algorithm environment:

\begin{algorithm}[!t]
  \caption{Title}
  \begin{algorithmic}[1]

    \Procedure{\textsc{Graph}}{$ \alpha, \beta $}    
    \State ...
    \EndProcedure
  \end{algorithmic}
\end{algorithm}

The name of the procedure \Procedure{\textsc{Graph}} always appears in capital letters even if I use \textsc{}. How can I force it to be in small caps?

  • 1
    Have you tried \Procedure{\mbox{\textsc{Graph}}}? – Mico Jul 18 '18 at 20:04
  • 1
    @Mico Thank you Mico. I just tried it but it didn't fix. BTW, I am using IEEE cls, does that matter? – Mike Jul 18 '18 at 20:10
6

The algpseudocode style has

\algnewcommand\textproc{\textsc}

Thus adding \textsc does nothing more. Just change this definition.

\documentclass{IEEEtran}
\usepackage{algorithm,algpseudocode}

\algrenewcommand\textproc{}

\begin{document}

\begin{algorithm}[!t]
  \caption{Title}
  \begin{algorithmic}[1]

    \Procedure{Graph}{$ \alpha, \beta $}
    \State ...
    \EndProcedure
  \end{algorithmic}
\end{algorithm}

\end{document}

enter image description here

  • question asks to force Graph to be in Small caps and you showed how to remove that? – David Carlisle Jul 18 '18 at 21:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.