I want to typeset real Roman numerals (both uppercase and lowercase) in LaTeX text. I've checked out a previous thread but found no satisfactory solution. (In fact, several solutions mentioned in that thread doesn't work for me. I don't know why.)
I personally use the straightforward approach of
\newcounter{counter}
\newcommand{\upperRomannumeral}[1]{\setcounter{counter}{#1}\Roman{counter}}
\newcommand{\lowerromannumeral}[1]{\setcounter{counter}{#1}\roman{counter}}
but it is still not satisfactory. Is there any better way to perform the task?






\setcounterand avoid the spurious spaces within the macro. – Werner Jan 13 at 5:27