Say I have the following code:
\begin{algorithm}
\KwData{my data}
\KwResult{my output}
my algorithm
\caption{my caption}
\end{algorithm}
It will produce something like this:
Algorithm 1: my caption
Data: my data
Result: my output
1 my algorithm
I want to rename 'Data' and 'Result' to something else.
How do I do that?
Thank you.
Best Answer
You can change the labels either globally (in the document preamble) or locally (in the
algorithm
environment) using\SetKwInput
.