0

There seem to be several forms of Roman numerals (I'm not sure which is the most used, the most standardized).

\documentclass{article}
\makeatletter
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@} 
\begin{document} 
\Rmnum{2} 
\end{document} 

enter image description here

But I would like to express II in the following form. enter image description here

How to handle it?

6
  • How far do you need to go with those funny roman numerals? More precisely, are the numbers from 1 to 9 sufficient, or you might need 29 for example?
    – Daniel N
    Commented Dec 18, 2022 at 9:52
  • One more question: What is your text general font?
    – Daniel N
    Commented Dec 18, 2022 at 10:00
  • Thanks! Perhaps this question is repeated (tex.stackexchange.com/questions/528122/…) I just saw the link. I am using the standard font of tex.
    – licheng
    Commented Dec 18, 2022 at 10:14
  • So now the only thing I'm confused about is which of these two ways of writing is more formal.
    – licheng
    Commented Dec 18, 2022 at 10:20
  • Hi! Well, on that page, it is not exactly what you are asking for. In yyour question, the I is serif and V is not. My first question was pointing in this direction. It is really what you need? And if yes, till what roman number?
    – Daniel N
    Commented Dec 18, 2022 at 10:21

1 Answer 1

2

enter image description here

This is a minimal solution, as the text in the image indicates. To have a general command, some more work is needed---"general" meaning for numbers <= 35.

Remark. The command \rnum is there in case some development follows. Otherwise, one can simply write I instead of rnum{1} and so on.

The code

\documentclass[11pt, a4paper]{article}
% \usepackage{ifthen}

\newcommand{\rnum}[1]{\MakeUppercase{\romannumeral #1}}
\newcommand{\rnumsf}[1]{\MakeUppercase{\textsf{\romannumeral #1}}}

\begin{document}

\noindent
You can obtain something like this for particular cases (working each
case separately):
\rnum{1}\hspace{-.7pt}\rnum{1},
\rnum{1}\hspace{-.7pt}\rnum{1}\hspace{-1pt}\rnum{1},
\rnum{1}\rnumsf{5}.

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .