Using the algorithm2e
package I am trying to write an algorithm on a document.
I wish to change the default font used on the \SetKwData
variables and I am trying to do that by using the \SetDataSty
function as shown below:
\SetAlFnt{\footnotesize}
\SetDataSty{\small\fontfamily{qcr}} % this line causes Extra \endcsname. errors
\SetKwInOut{Input}{Input}
\SetKwInOut{Output}{Output}
\begin{algorithm}[h]
\LinesNumbered
\SetKwData{AVG}{average\_val}
\Input{A tuple $(a,b)$}
\Output{A hashmap $m$}
\BlankLine
\AVG
\end{algorithm}
But I am getting Extra \endcsname.
errors on the compilation log. What am I doing wrong here?