如何在節和小節上加上羅馬編號?

如何在節和小節上加上羅馬編號?

我正在使用 IEEE 模板撰寫論文,在章節和小節前面添加數字時遇到了麻煩。我嘗試使用 renewcommand 但它不起作用。這是我目前的程式碼

\documentclass{IEEEcsmag}

\usepackage[colorlinks,urlcolor=blue,linkcolor=blue,citecolor=blue]{hyperref}

\usepackage{upmath}


\jvol{XX}
\jnum{XX}
\paper{8}
\jmonth{May/June}
\jname{IT Professional}
\pubyear{2019}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}

\setcounter{secnumdepth}{0}
% Add Reference style
\usepackage[
backend=bibtex,
style=ieee,
sorting=ynt
]{biblatex}

% Add Reference source 
\addbibresource{ref.bib}

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

\begin{document}

這是 upmath.sty 和 IEEECSmag.cls 的鏈接文件。這部分是我直接從模板中獲取的,我沒有更改它。

我想在每個部分和小節上使用羅馬風格編號。謝謝

相關內容