The procedure environment requires the caption to be in a very restricted form: "Name()". However, I would like to add more details like: "my awesome procedure $A = (para1, para2)$". How would I do that?
Actually, this caption is possible in the algorithm environment, alternatively, how to change the label, e.g. Algorithm 1, of the environment into "procedure".
Best Answer
If you just want to change
Algorithm
toProcedure
, you can do the following:The name of the algorithm is stored in
\algorithmcfname
, which you can redefine to suit your needs. You can also use\SetAlgorithmName{#1}{#2}{#3}
where#1
denotes the name associated with the List of Algorithms#2
denotes the name associated with thealgorithm
environment#3
denotes the name associated withhyperref
's\autoref
nameAssuming that you want to remove the numbering of the Procedure, you also want it removed from the List of Algorithms, and therefore not have any counter associated with it. The following redefinition of
\@caption
within a newalgoproc
environment does that: