I would like to have my parts numbered like this:
I, II, IIIa, IIIb, ... , IV, ...
I have written some code which works fine. But when using hyperref, I get this warning:
destination with the same identifier (name{part.1}) has been already used, duplicate ignored, because I reset the counter to zero for the sub-numbering.
Question
Is there any way to achieve the same result, but without reseting the part counter (and without producing hyperref-warnings)?
Code
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\pagebreak
\part{First}
\part{Second}
% change part numbering to ROMAN alph
\newcommand{\thelastpart}{\arabic{part}}%store old number
\edef\thelastpartexp{\thelastpart}
\addtocounter{part}{1}
\edef\themainpart{\thepart}
\setcounter{part}{0}%set subcounter
\renewcommand{\thepart}{\themainpart\alph{part}}
\part{Third a}
\part{Third b}
% reset part numbering
\setcounter{part}{\thelastpartexp}%restore counter
\addtocounter{part}{1}
\renewcommand{\thepart}{\Roman{part}}
\part{Fourth}
\end{document}


\subpartcommand to do this for you, and potentially not including it in the toc (or is the TOC a necessary feature?) – Sean Allred Apr 17 '13 at 13:30