I have a tex file created by someone else which redefines commands of the algorithmic package to translate them to the Portuguese language. For example:
\renewcommand{\algorithmicwhile}{\textbf{enquanto}}
Is used to replace the word while by enquanto, which is the translation of while to Portuguese.
However, I am getting errors when I invoke \renewcommand for the following lines:
\renewcommand{\algorithmicand}{\textbf{e}}
\renewcommand{\algorithmicor}{\textbf{ou}}
\renewcommand{\algorithmicto}{\textbf{até}}
Here's the error for the first line:
! LaTeX Error: \algorithmicand undefined.
Do I get this error because \algorithmicand, \algorithmicor, and \algorithmicto are not included the algorithmic package? Is it ok for me to use the \newcommand instead of \renewcommand in this case?
