章节标题中的西班牙语口音显示不正确

章节标题中的西班牙语口音显示不正确

我使用的是 Taylor and Francis 的 Alon 图书模板。我用西班牙语撰写文本。在正文中使用\usepackage[utf8]{inputenc}和表示西班牙语口音没有任何问题\usepackage[spanish]{babel}

但是,章节标题没有正确显示西班牙语口音:

在此处输入图片描述

代码如下:

    \documentclass[Alon1, singlecolor,ChapterTOCs, twoside, final, 12pt, openright, letterpaper, titlepage]{Alon}
\usepackage{fixltx2e,fix-cm}

\usepackage{todonotes}

\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}

\usepackage{fancyhdr}% fancyhdr related command; details in its documentation

\usepackage{graphicx}
\usepackage{graphics}
\usepackage{subfigure}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage[object=vectorian]{pgfornament}

\usepackage[letterpaper,
top=0.5in,
left=1in,
right=1.2in,
bottom=1.2in, footskip=1.25cm]{geometry}

\usepackage{xstring}
\renewcommand{\chaptermark}[1]{\markboth{\chtocnamefont \thechapter.\ \protect\StrLeft{#1}{65}...}{}}

\frenchspacing
\tolerance=5000

\makeindex

\title{Título}
\author{Autores}

\begin{document}

\frontmatter

\halftitle
\maketitle%This is a placeholder titlepage, it will not be final.

\cleardoublepage
\setcounter{page}{7} %previous pages reserved for frontmatter to be added later

% Solo pone en la tabla de contenidos los titulos de los capitulos
\setcounter{tocdepth}{0}
\setcounter{secnumdepth}{0}

\tableofcontents

\mainmatter

\include{chapters/chapter1/ch2}

\backmatter

\end{document}

ch2.tex 的代码:

\chapterauthor{Fernández, Alexander}{}

\chapter{Innovación para la transformación}
    
    \section{Introducción}

    \chapterinitial{E}{N} este prólogo no me adentraré en los contenidos que el libro propone. Los lectores podrán evaluarlos y encontrar en ellos elementos de interés. Más bien deseo aprovechar la oportunidad para enfatizar algunos cambios que se han producido en la dinámica del desarrollo local en el país desde 2018 a la fecha.

    \begin{center}
        \pgfornament[height=.3\baselineskip]{88}
    \end{center}

相关内容