How to input roman numerals

marvin2jh's picture

I would like to input roman numerals not as numbering and, \enumerate. I utilized all the toolbars, but I cannot find.
Please help me out.

tomprice's picture

The attached file

The attached file demonstrates one way to do this. Notice that I had to add a few lines to the preamble.

marvin2jh's picture

Thank you. But after I added

Thank you. But after I added three lines (the belows), I didn't work.

\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother

marvin2jh's picture

Thank you. But after I added

Thank you. But after I added three lines (the belows), I didn't work.

\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother

tomprice's picture

Did you examine the body of

Did you examine the body of the tex file I posted? Does this file work on your system?

Works for me using the posted

Works for me using the posted sample document.  I didn't know about \romannumber, it isn't in the index for The LaTeX Companion.  So, thanks for posting this solution.  My reply would have been, "just enter the roman characters as text".

tomprice's picture

George, I thought about

George, I thought about entering the characters but I wondered about the spacing.

marvin2jh's picture

How can I input a roman

How can I input a roman number as a text? I didn't find it.

And I am not sure why the code doesn't work.

My preamble is the below and I used \Rmnum{1}. in the text. But it doesn't work.
Please help me out.

\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\geometry{left=1in,right=1in,top=1in,bottom=1in}
\input{tcilatex}

Works for me.  I started with

Works for me.  I started with the Blank Standard LaTeX Article shell, replaced the preamble with what you have above, added the geometry package, and compile with I as the typeset results for \Rmnum{1}.

Post an entire document.  Are you getting LaTeX errors during the compile, or only incorrect results for \Rmnum?

marvin2jh's picture

Just incorrect results came

Just incorrect results came out. \Rmnum{1}. didn't turn to roman number and it just came out.
I emailed my tex file to you. Thank you.

In the document you sent, you

In the document you sent, you just typed "/Rmnum{1}" as text in the body of the document.  So, that's exactly how it will appear in the typeset results.  You want to enter "\Rmnum{1}" in a TeX field, probably encapsulated with an appropriate Name to identify the contents of the TeX field.  Select Insert, Typeset Object, TeX Field and then in the body of the TeX Field enter "\Rmnum{1}", without the quotes and notice the backslash, click the Encpsulated check box and replace the current "TeX field" contents of the Name field with something appropriate, maybe "Roman 1".