classicthesis 中的部分不显示大写罗马数字

classicthesis 中的部分不显示大写罗马数字

可能这是一个非常简单的问题:我正在使用 编写文档classicthesis。我用 命令将其分成几部分\part。因此它有“第一部分”、“第二部分”等。但是 PDF 中显示的这些部分的链接却显示“第一部分”……“第三部分”。我该如何将这些数字大写?在此处输入图片描述

\documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper
                footinclude=true,cleardoublepage=empty,abstractoff, % <--- obsolete, remove (todo)
                BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,%
                ngerman,american,%
                ]{scrreprt}

%\usepackage{classicthesis-preamble}
\input{classicthesis-config}
\begin{document}
\selectlanguage{american} 
\pagenumbering{roman}
\pagestyle{plain}
\pagenumbering{arabic}
\part{Title zero}\label{part:z}
In \autoref{part:b} we will analyze ...
\part{Title one}\label{part:a}
As in \autoref{part:a}, this part \textit{blah blah}
\part{Title two}\label{part:b} 
\part{Title three}\label{part:c} 
\end{document}

我被要求提供classicthesis-config.tex

\PassOptionsToPackage{eulerchapternumbers,listings,drafting,%
                 pdfspacing,%floatperchapter,%linedheaders,%
                 subfig,beramono,eulermath,parts}{classicthesis}                                        

\usepackage{ifthen}
\newboolean{enable-backrefs} % enable backrefs in the bibliography
\setboolean{enable-backrefs}{false} % true false

\newcommand{\myTitle}{A Classic Thesis Style\xspace}
\newcommand{\mySubtitle}{An Homage to The Elements of Typographic Style\xspace}
\newcommand{\myDegree}{Doktor-Ingenieur (Dr.-Ing.)\xspace}
\newcommand{\myName}{Andr\'e Miede\xspace}
\newcommand{\myProf}{Put name here\xspace}
\newcommand{\myOtherProf}{Put name here\xspace}
\newcommand{\mySupervisor}{Put name here\xspace}
\newcommand{\myFaculty}{Put data here\xspace}
\newcommand{\myDepartment}{Put data here\xspace}
\newcommand{\myUni}{Put data here\xspace}
\newcommand{\myLocation}{Darmstadt\xspace}
\newcommand{\myTime}{August 2012\xspace}
\newcommand{\myVersion}{version 4.1\xspace}

\newcounter{dummy} % necessary for correct hyperlinks (to index, bib, etc.)
\newlength{\abcd} % for ab..z string length calculation
\providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
\newcommand{\ie}{i.\,e.}
\newcommand{\Ie}{I.\,e.}
\newcommand{\eg}{e.\,g.}
\newcommand{\Eg}{E.\,g.} 
\PassOptionsToPackage{latin9}{inputenc} % latin9 (ISO-8859-9) = latin1+"Euro sign"
 \usepackage{inputenc}              

\usepackage{babel}                  

\PassOptionsToPackage{square,numbers}{natbib}
 \usepackage{natbib}                

\PassOptionsToPackage{fleqn}{amsmath}       
 \usepackage{amsmath}
\PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
    \usepackage{fontenc}     
\usepackage{textcomp} % fix warning with missing font shapes
\usepackage{scrhack} % fix warnings when using KOMA with listings package          
\usepackage{xspace} % to get the spacing after macros right  
\usepackage{mparhack} % get marginpar right
\usepackage{fixltx2e} % fixes some LaTeX stuff 
\PassOptionsToPackage{printonlyused,smaller}{acronym}
    \usepackage{acronym} % nice macros for handling all acronyms in the thesis

\renewcommand{\bflabel}[1]{{#1}\hfill} % fix the list of acronyms


\usepackage{tabularx} % better tables
    \setlength{\extrarowheight}{3pt} % increase table row height
\newcommand{\tableheadline}[1]{\multicolumn{1}{c}{\spacedlowsmallcaps{#1}}}
\newcommand{\myfloatalign}{\centering} % to be used with each float for alignment
\usepackage{caption}
\captionsetup{format=hang,font=small}
\usepackage{subfig}  

\usepackage{listings} 
%\lstset{emph={trueIndex,root},emphstyle=\color{BlueViolet}}%\underbar} % for special keywords
\lstset{language=[LaTeX]Tex,%C++,
    keywordstyle=\color{RoyalBlue},%\bfseries,
    basicstyle=\small\ttfamily,
    %identifierstyle=\color{NavyBlue},
    commentstyle=\color{Green}\ttfamily,
    stringstyle=\rmfamily,
    numbers=none,%left,%
    numberstyle=\scriptsize,%\tiny
    stepnumber=5,
    numbersep=8pt,
    showstringspaces=false,
    breaklines=true,
    frameround=ftff,
    frame=single,
    belowcaptionskip=.75\baselineskip
    %frame=L
} 

\PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}
    \usepackage{hyperref}  % backref linktocpage pagebackref
\pdfcompresslevel=9
\pdfadjustspacing=1 
\PassOptionsToPackage{pdftex}{graphicx}
    \usepackage{graphicx} 
\newcommand{\backrefnotcitedstring}{\relax}%(Not cited.)
\newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}
\newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}
\ifthenelse{\boolean{enable-backrefs}}%
{%
        \PassOptionsToPackage{hyperpageref}{backref}
        \usepackage{backref} % to be loaded after hyperref package 
           \renewcommand{\backreftwosep}{ and~} % separate 2 pages
           \renewcommand{\backreflastsep}{, and~} % separate last of longer list
           \renewcommand*{\backref}[1]{}  % disable standard
           \renewcommand*{\backrefalt}[4]{% detailed backref
              \ifcase #1 %
                 \backrefnotcitedstring%
              \or%
                 \backrefcitedsinglestring{#2}%
              \else%
                 \backrefcitedmultistring{#2}%
              \fi}%
}{\relax}    
\hypersetup{%
    %draft, % = no hyperlinking at all (useful in b/w printouts)
    colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV,%
    % uncomment the following line if you want to have black links (e.g., for printing)
    %colorlinks=false, linktocpage=false, pdfborder={0 0 0}, pdfstartpage=3, pdfstartview=FitV,% 
    breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%
    plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
    hypertexnames=true, pdfhighlight=/O,%nesting=true,%frenchlinks,%
    urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen, %pagecolor=RoyalBlue,%
    %urlcolor=Black, linkcolor=Black, citecolor=Black, %pagecolor=Black,%
    pdftitle={\myTitle},%
    pdfauthor={\textcopyright\ \myName, \myUni, \myFaculty},%
    pdfsubject={},%
    pdfkeywords={},%
    pdfcreator={pdfLaTeX},%
    pdfproducer={LaTeX with hyperref and classicthesis}%
}   

\makeatletter
\@ifpackageloaded{babel}%
    {%
       \addto\extrasamerican{%
                    \renewcommand*{\figureautorefname}{Figure}%
                    \renewcommand*{\tableautorefname}{Table}%
                    \renewcommand*{\partautorefname}{Part}%
                    \renewcommand*{\chapterautorefname}{Chapter}%
                    \renewcommand*{\sectionautorefname}{Section}%
                    \renewcommand*{\subsectionautorefname}{Section}%
                    \renewcommand*{\subsubsectionautorefname}{Section}%     
                }%
       \addto\extrasngerman{% 
                    \renewcommand*{\paragraphautorefname}{Absatz}%
                    \renewcommand*{\subparagraphautorefname}{Unterabsatz}%
                    \renewcommand*{\footnoteautorefname}{Fu\"snote}%
                    \renewcommand*{\FancyVerbLineautorefname}{Zeile}%
                    \renewcommand*{\theoremautorefname}{Theorem}%
                    \renewcommand*{\appendixautorefname}{Anhang}%
                    \renewcommand*{\equationautorefname}{Gleichung}%        
                    \renewcommand*{\itemautorefname}{Punkt}%
                }%  
            % Fix to getting autorefs for subfigures right (thanks to Belinda Vogt for changing the definition)
            \providecommand{\subfigureautorefname}{\figureautorefname}%             
    }{\relax}
\makeatother

\usepackage{classicthesis} 

答案1

问题是(文件将此选项传递给)问题parts的选项classicthesisclassicthesis-config.texclassicthesis

\renewcommand{\thepart}{\roman{part}}

要覆盖此问题并能够使用大写罗马数字,请添加到序言中

\AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}}

相关内容