我使用花哨的章节。但是,它写的是“chapitre”而不是“chapter”(参见最后一行代码),我不明白为什么。你能帮助我吗?谢谢
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{fullpage}
\usepackage{eso-pic}
\usepackage{geometry}
\usepackage[english]{babel}
\usepackage[Glenn]{fncychap}
% Font style definition
% Interline setting
\renewcommand{\baselinestretch}{1.5}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\blap}[1]{\vbox to 0pt{#1\vss}}
\newcommand\AtUpperLeftCorner[3]{%
\put(\LenToUnit{#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{#3}}%
}
\newcommand\AtTopCenterPage[2]{%
\put(\LenToUnit{.5\paperwidth},\LenToUnit{\dimexpr\paperheight-#1}){\blap{\hbox to 0pt{\hss#2\hss}}}%
}
\newcommand\AtUpperRightCorner[3]{%
\put(\LenToUnit{\dimexpr\paperwidth-#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{\llap{#3}}}%
}
\title{\huge{Development and characterization of a gradient structured material elaborated by direct deposition additive manufacturing}}
\author{\textsc{Corongiu} Chiara}
\date{\today}
\makeatletter
\geometry{hmargin=2cm,vmargin=3cm}
\begin{document}
\begin{titlepage}
\AddToShipoutPicture{
\AtUpperLeftCorner{1.5cm}{1.8cm}{\includegraphics[scale=0.7]{pgarde/uliege.jpg}}
% \AtTopCenterPage{1.5cm}{1cm}{\includegraphics[width=4cm]{pgarde/mms_logo.png}}
\AtUpperRightCorner{1.5cm}{0.6cm}{\includegraphics[scale=0.5]{pgarde/Sonaca2.png}}
}
\begin{center}
\vspace*{5cm}
\HRule
\vspace{0.3cm}
\textsc{\textbf{\@title}}
\vspace{0.3cm}
\HRule
\vspace*{0.5cm}
\LARGE{\textit{Master thesis submitted in partial fulfillment of the requirements\\
for the degree of Master in Aerospace Engineering by\\ \vspace{0.2cm}} \@author}\\
\end{center}
\vfill
\begin{center}
\large{University of Liège - Faculty of Applied Sciences\\
Academic year 2019-2020}
\end{center}
% \begin{center}
% \makebox[\textwidth]{\includegraphics[width=\paperwidth]{data/footer.jpg}}
% \end{center}
\end{titlepage}
\ClearShipoutPicture
\newpage
\pagenumbering{roman}
\setcounter{page}{1}
\english
\chapter*{Abstract}
\newpage
\chapter*{Acknowledgments}
\newpage
\tableofcontents
\listoffigures
\listoftables
\newpage
\pagenumbering{arabic}
\setcounter{page}{1}
\chapter*{Introduction}
\chapter{Powder characterisation}
\end{document}
答案1
您的文档无法编译,因为它包含未知命令(\english
),并且使用了我们无法访问的图像。
无论如何,更换
\usepackage[english]{babel}
和
\usepackage[french]{babel}
您将得到“Chapitre”而不是“Chapter”。
如果您想用英语编写整个文档,但仍希望使用“Chapitre”而不是“Chapter”,那么请保留
\usepackage[english]{babel}
行并添加
\addto\captionsenglish{%
\renewcommand{\chaptername}%
{Chapitre}%
}
到你的文档的序言中。