I want to change the numbering for a the fourth section in IEEEtran document from IV to IIII.
Is there a simple way to do it without setting a counter manually?
Thanks in advance!
I want to change the numbering for a the fourth section in IEEEtran document from IV to IIII.
Is there a simple way to do it without setting a counter manually?
Thanks in advance!
Done by:
\usepackage{xparse}
\ExplSyntaxOn
\NewDocumentCommand \myRomannumeral { m }
{
\tl_set:Nx \l_tmpa_tl { \int_to_Roman:n { #1 } }
\tl_replace_all:Nnn \l_tmpa_tl { IV } { IIII }
\tl_use:N \l_tmpa_tl
}
\ExplSyntaxOff
from Additive Roman Numeral 4(thanks to campa linking it!) and added this line:
\renewcommand\thesection{\myRomannumeral{\value{section}}}
\thesectionto\myRomannumeral{\Roman{section}}which fails as if I am calling\sectionin my documentmissing number, treated as zero,missing endcsname insertedandextra endcsnameoccure. – nicksheen Apr 09 '19 at 14:35