我刚刚加入了这个极其有帮助的社区!
我正在使用 LaTeX 撰写论文,并且修改了章节的显示方式。我希望章节采用小写字母,但为了看起来美观,章节必须不带重音符号,在目录中也不带重音符号,但在目录中字体正常(无小写字母)。在标题等全大写形式中不存在此类问题。表格和图表列表也存在类似问题。我无法更改它们的名称以避免出现重音符号。
所以我的问题是:“当我用小型大写字母书写时,有什么方法可以强制 Times New Roman 显示重音符号?”
这是我的 MWE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Thesis Template %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,a4paper,twoside,titlepage]{book}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xgreek}
\setmainfont{Times New Roman}
\usepackage{lipsum}
\usepackage[hidelinks]{hyperref}
\usepackage{geometry,tabu}
\usepackage{titlesec}
%%%%%%%%%%%%%%%%Document Informatio%%%%%%%%%%%%%%%%%%%%%%%
\title{\textbf{\MakeUppercase{Τίτλος}}}
\author{Joe Doe}
\date{\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\contentsname}{Περιεχομενα} %I used it to remove the accents from toc
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\titleformat{\part}[display]
{\normalsize \bfseries \huge }%
{\normalsize \flushright %
\centering\MakeUppercase{\partname}\hspace{1ex}%
{\thepart}}%
{15 pt }%
{\centering\MakeUppercase{\expandafter{\bfseries\Huge}}}[\vspace{-45 pt}\titlerule]% %Unfortunately I can't force the part be in Caps
\titleformat{\chapter}[display]
{\normalsize \bfseries \Huge }%
{\flushright\normalsize %
\MakeUppercase{\chaptertitlename}\hspace{1ex}%
{\Huge\thechapter}}%
{15 pt \titlerule }%
{\scshape \Huge }[\vspace{15 pt}\titlerule]%
\titleformat{name=\chapter,numberless}[display]
{\normalsize \huge }%
{\flushright\normalsize}%
{15 pt }%
{\scshape\bfseries \Huge }[\titlerule]%
\titleformat{\section}[hang]
{\bfseries\normalsize }{\Large\thesection}{5pt}{\bfseries \Large}
\titleformat{\subsection}[hang]
{\bfseries\normalsize }{\Large\thesubsection}{5pt}{\bfseries \Large}
\titleformat{\subsubsection}[hang]
{\bfseries\normalsize }{\large\thesubsubsection}{5pt}{\bfseries \large}
\titleformat{\paragraph}[runin]{\scshape\normalsize\bfseries}{\theparagraph}{1em}{}
\titleformat{\subparagraph}[runin]
{\normalsize\bfseries}{\thesubparagraph}{1em}{}
\renewcommand{\thesubsection}{\thesection.\alph{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\roman{subsubsection}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\newpage
\thispagestyle{empty}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Καταλογος Πινακων} %I have written it without the accents but when I compile the code I get it with the accents
\listoftables
\newpage
\thispagestyle{empty}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Καταλογος Σχηματων} %same here
\listoffigures
\newpage
\thispagestyle{empty}
\mainmatter
\newgeometry{left=25mm,right=25mm,top=25mm,bottom=25mm}
\part{Θεωρία}
\chapter[Εισαγωγή]{Εισαγωγη} % I use that syntax in order to fix the problem but it works only in chapters, sections, etc.
\lipsum
\section{Ενότητα}
\lipsum
\subsection{Υποενότητα}
\lipsum[10]
\begin{table}[!h]
\centering
\label{pinaks1}
\caption{Πιναξ 111}
\begin{tabu}{X[j] X[l] X[c] X[r]}
\hline
Justified & Left & Center & Right \\
\hline \hline
& & & \\
\hline
\end{tabu}
\end{table}
\subsubsection{Ύπο-υποενότητα}
\lipsum[3]
\paragraph{Παράγραφος}
\lipsum[3]
\begin{figure}[h!]
\caption{Blah\ldots}
\end{figure}
\subparagraph{Υποπαράγραφος}
\lipsum
\backmatter
\appendix
\end{document}
我希望我对我的问题有足够的了解。
提前致谢!