Como posso alinhar os números romanos das peças dessa maneira? A alternativa é usar uma enumeração árabe. Eu não faria nenhuma alteração no sumário da tese clássica fora do alinhamento dos números romanos das partes.
\documentclass{scrreprt} % classe report di KOMA-Script;
\usepackage[%
pdfspacing,% % migliora il riempimento di riga
linedheaders,%
dottedtoc,%
parts% % da decommentare in un documento diviso in parti
]{classicthesis} % stile ClassicThesis
\hypersetup{hidelinks}
\begin{document}
\tableofcontents
\part{Test Part One}
\chapter{Test Chapter One}
\section{Test Section One One}
\section{Test Section One Two}
\part{Test Part Two}
\chapter{Test Chapter One}
\section{Test Section One One}
\section{Test Section One Two}
\part{Test Part Three}
\chapter{Test Chapter One}
\section{Test Section One One}
\section{Test Section One Two}
\end{document}
Responder1
Aqui está uma solução possível usando uma redefinição \Part
conforme definido em classicthesis.sty
:
\documentclass{scrreprt}
\usepackage[%
pdfspacing,%
linedheaders,%
dottedtoc,%
parts%
]{classicthesis}
\hypersetup{bookmarksnumbered,hidelinks}
\makeatletter
\setlength\cftpartnumwidth{1.5em}
\renewcommand\Part[2][]{%
\addtocontents{toc}{\setcounter{tocdepth}{-2}}
\ifpdf\pdfstringdefDisableCommands{\let\thepart\@gobbletwo}%
\oldpart[\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}]{#2}
\else\oldpart[\spacedlowsmallcaps{#1}]{#2}%
\fi%
\addtocontents{toc}{\setcounter{tocdepth}{2}}%
\addcontentsline{toc}{part}{\protect\numberline{%
\hspace*{4pt}\texorpdfstring{\llap{\thepart}}{}}\texorpdfstring{\noexpand\spacedlowsmallcaps{#1}}{#1}}
\ctparttext{\relax}%
}%
\makeatother
\begin{document}
\tableofcontents
\part{Test Part One}
\chapter{Test Chapter One}
\section{Test Section One One}
\section{Test Section One Two}
\part{Test Part Two}
\chapter{Test Chapter One}
\section{Test Section One One}
\section{Test Section One Two}
\part{Test Part Three}
\chapter{Test Chapter One}
\section{Test Section One One}
\section{Test Section One Two}
\end{document}
Responder2
Ao contrário de outros comandos seccionais, \part
não utiliza nenhum alinhamento de seu número no ToC. O alinhamento semelhante a outros comandos é possível ao usar \numberline
(o que requer a definição de um valor para \@tempdima
a 1.5em
partir do original 3em
).xpatch
fornece um meio de corrigir os dois comandos necessários para corrigir o comportamento do ToC: \l@part
e \@part
.
\documentclass{book}
\usepackage{xpatch}% http://ctan.org/pkg/xpatch
\makeatletter
\patchcmd{\l@part}{3em}{1.5em}{}{}% <cmd><search><replace><success><failure>
\xpatchcmd{\@part}{\thepart\hspace{1em}}{\protect\numberline{\ \llap{\thepart}}}{}{}% <cmd><search><replace><success><failure>
\makeatother
\begin{document}
\tableofcontents
\part{title}
\chapter{title}
\section{title}
\part{title}
\chapter{title}
\section{title}
\part{title}
\chapter{title}
\section{title}
\end{document}