Roman numerals for only specific sections

numberingoverleafroman

I try to only number specific sections of my paper using Roman numerals. Basically, I attempt to have my main body numbered in Arabic numbers and the list of tables, figures as well as the appendix in Roman numerals.

With the following command I get the whole document in Roman numbers:

\documentclass[a4paper,12pt]{article}

\renewcommand{\thesection}{\Roman{section}} 
\renewcommand{\thesubsection}{\thesection.\Roman{subsection}}

\begin{document}

\listoftables

\listoffigures

\section{Main Body}

\section*{Appendix}

\end{document}

Thank you very much!

Best Answer

I am still a bit confused as to what you want regarding the Appendix. Why not call it as \section{Appendix} instead of \section*{Appendix}?

Use the tocloft package to change the LoF and Lot titles.

% Romanprob.tex  SE 615700

\documentclass[a4paper,12pt]{article}

\renewcommand{\thesection}{\Roman{section}} 
\renewcommand{\thesubsection}{\thesection.\Roman{subsection}}

%% change the LoF and LoT titles to \section style
\usepackage{tocloft}
\makeatletter
%%%%\renewcommand{\@cftmaketoctitle}{\section{\contentsname}}
\renewcommand{\@cftmakeloftitle}{\section{\listfigurename}}
\renewcommand{\@cftmakelottitle}{\section{\listtablename}}
\makeatother

\begin{document}

%%%%\tableofcontents

\listoftables

\listoffigures

\section{Main Body}

\section*{Appendix}  %% unnumbered Appendix
\section{Appendix}   %% numbered Appendix

\end{document}

enter image description here

Related Question