For example:
Charles's sister Bona, married the eldest son of Philip VI of France, the future John II of France, in 1335.
How can I get Roman numerals?
For example:
Charles's sister Bona, married the eldest son of Philip VI of France, the future John II of France, in 1335.
How can I get Roman numerals?
Here's an example how you could use the TeX primitive (mentioned by Martin) for defining your own macro for conversion to big Roman numbers:
\documentclass{article}
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\begin{document}
Charles's sister Bona, married the eldest son of Philip \rom{6} of France,
the future John \rom{2} of France, in 1335.
Today is the year \rom{2011}.
\end{document}

It's done similar to the definition of the LaTeX macro \Roman.
\uppercase doesn't expand the argument, so it would not have an effect here. However, \MakeUppercase would do it.
– Stefan Kottwitz
Jul 19 '11 at 13:20
\expandafter: \uppercase\expandafter{\romannumeral<number>\relax}. Works fine in my quick tests.
– Martin Scharrer
Jul 19 '11 at 13:22
\edef, and see why \uppercase is not going to work. (I think the actual application was in \csname, but the same idea applies.)
– Joseph Wright
Jul 19 '11 at 13:51
\edef context. My bad.
– Martin Scharrer
Jul 19 '11 at 13:52
\Roman as \def\@Roman#1{\uppercase\expandafter{\romannumeral#1}}, it would be OK for \label and \ref, but one could not do manipulations to the obtained strings, which instead can be done with the result from the slower routine.
– egreg
Jul 19 '11 at 14:03
\Romannumeral? Did D.E.Knuth not like uppercase roman numerals?
– Martin Scharrer
Jul 19 '11 at 14:05
\uppercase\expandafter{\romannumeral<number>} works well; the main use of \romannumeral is, I think, in \csname (think to \@enumctr), so an uppercase version is unimportant.
– egreg
Jul 19 '11 at 14:59
\rom{6} render as XXV (and was there ever a Philip XXV of France)?
– raphink
Jul 19 '11 at 15:40
The \romannumeral kernel primitive is your friend:
\newcommand{\RNum}[1]{\uppercase\expandafter{\romannumeral #1\relax}}
Charles's sister Bona, married the eldest son of Philip \RNum{4} of France, the future John \RNum{2} of France, in 1335.
biblatex offers the macros \RN and \Rn for upper- resp. lowercase roman numerals, plus \RNfont and \Rnfont for formatting those numerals.
\documentclass{article}
\usepackage{biblatex}
\renewcommand*{\Rnfont}{\scshape}
% The following is only included to prevent BibTeX/biber errors!
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Philip~\RN{6} (or, if you prefer, Philip~\Rn{6})~\dots
\end{document}
You can convert a number to a lowercase roman numeral using the TeX primitive \romannumeral<number>\relaxor in uppercase using \uppercase\expandafter{\romannumeral<number>\relax}. Counter values can be printed in as Roman numerals using \roman{<counter>} (lowercase) and \Roman{<counter>} (uppercase).
However for simple Roman numerals in text I would simple write it as you already did.
Simply write
Charles's sister Bona, married the eldest son of Philip VI of France, the future John II of France, in 1335.
If you want to enter roman numbers within your text,please follow these instructions.
in the first step you have to install the package of "romannum".
in this step you have to use this package in your text,therefore type this:
\usepackage{romannum}
Now you can write roman numbers in your text in lowercase or uppercase by this command.
\romannum{1} for Lowercase roman numbers or\Romannum{1} for Uppercase roman numbers.For example suppose that we want to write this sentence.
ten million people died between WWI and WWII.
We write in Latex:
ten million people died between WW\Romannum{1} and WW\Romannum{2}.
Also, the package changes the page numbering, so to keep it arabic you need to add this line in the preamble:
\AtBeginDocument{\pagenumbering{arabic}}
romannum package modifies the typesetting of such generated numbers so that they are printed as roman numerals."
– Ruben
Feb 11 '18 at 18:39