![如何使确认书与报告类中的其他部分具有相同的样式](https://linux22.com/image/341097/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%A1%AE%E8%AE%A4%E4%B9%A6%E4%B8%8E%E6%8A%A5%E5%91%8A%E7%B1%BB%E4%B8%AD%E7%9A%84%E5%85%B6%E4%BB%96%E9%83%A8%E5%88%86%E5%85%B7%E6%9C%89%E7%9B%B8%E5%90%8C%E7%9A%84%E6%A0%B7%E5%BC%8F.png)
现在我正在写一篇论文,想添加致谢,基本上我希望它看起来与目录中的其他章节标题相同,并且在该页面的顶部中心有“致谢”一词。
我的代码是:
\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage{caption}
\usepackage{amsmath}
\usepackage[Lenny]{fncychap}
%\usepackage[style]{fncychap}
%\linespread{1.6}
\linespread{1.3}
\usepackage[justification=centering]{caption}
\usepackage{float}
%\usepackage{subfigure}
%\usepackage{subcaption}
\usepackage{mathtools,array,booktabs}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert} % "absolute value" macro
\newcommand\FWHM{\mathrm{FWHM}}
\newcommand\FROG{\mathrm{FROG}}
%\ChNumVar{\fontsize{76}{80}\usefont{OT1}{pzc}{m}{n}\selectfont}
%\ChTitleVar{\raggedleft\Large\sffamily\bfseries}
\usepackage{graphicx}
\graphicspath{{image/}}
\usepackage[a4paper,width=150mm,top=40mm,bottom=45mm,bindingoffset=6mm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]{}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot[C]{\thepage}
\title{
{Simpler ultrashort pulse characterisation with a new type of frequency-resolved optical gating}\\
{\large Imperial College London}\\
\begin{figure}[h]
\centering
{\includegraphics[scale=.1]{University.png}}
\end{figure}
}
\author{Mingyang Zhang}
\date{20 September 2016}
\begin{document}
\maketitle
\tableofcontents
\listoffigures
\newpage
\listoftables
\newpage
\section*{Acknowledgement}
\addcontentsline{toc}{section}{Acknowledgement}
\chapter{Introduction}
\input{chapter/1.Introduction}
\chapter{Background}
\input{chapter/2.Background}
\chapter{Nonlinear Optics}
\input{chapter/3.NLO}
\chapter{Autocorrelation}
\input{chapter/4.Autocorrelation}
\chapter{Spectrometer}
\input{chapter/5.Spectrometer}
\chapter{Frequency-Resolved Optical Gating (FROG)}
\input{chapter/6.FROG}
\chapter{Experimental Device}
\input{chapter/7.Device}
\chapter{Data Analysis}
\input{chapter/8.Data}
\chapter{Performance}
\input{chapter/9.Performance}
\bibliographystyle{unsrt}
\bibliography{example}
\addcontentsline{toc}{section}{Reference}
\end{document}
答案1
使用章节条目。
\documentclass[12pt,twoside,demo]{report}
\usepackage[utf8]{inputenc}
\usepackage{caption}
\usepackage{amsmath}
\usepackage[Lenny]{fncychap}
%\usepackage[style]{fncychap}
%\linespread{1.6}
\linespread{1.3}
\usepackage[justification=centering]{caption}
\usepackage{float}
%\usepackage{subfigure}
%\usepackage{subcaption}
\usepackage{mathtools,array,booktabs}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert} % "absolute value" macro
\newcommand\FWHM{\mathrm{FWHM}}
\newcommand\FROG{\mathrm{FROG}}
%\ChNumVar{\fontsize{76}{80}\usefont{OT1}{pzc}{m}{n}\selectfont}
%\ChTitleVar{\raggedleft\Large\sffamily\bfseries}
\usepackage{graphicx}
\graphicspath{{image/}}
\usepackage[a4paper,width=150mm,top=40mm,bottom=45mm,bindingoffset=6mm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]{}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot[C]{\thepage}
\title{
{Simpler ultrashort pulse characterisation with a new type of frequency-resolved optical gating}\\
{\large Imperial College London}\\
% \begin{figure}[h]% NEVER use a figure environment on a titlepage
\centering
{\includegraphics[scale=.1]{University.png}}
% \end{figure}
}
\author{Mingyang Zhang}
\date{20 September 2016}
\begin{document}
\maketitle
\tableofcontents
\listoffigures
\listoftables
\chapter*{Acknowledgement}
\addcontentsline{toc}{chapter}{\numberline{}Acknowledgement}
\chapter{Introduction}
\chapter{Background}
\chapter{Nonlinear Optics}
\chapter{Autocorrelation}
\chapter{Spectrometer}
\chapter{Frequency-Resolved Optical Gating (FROG)}
\chapter{Experimental Device}
\chapter{Data Analysis}
\chapter{Performance}
\bibliographystyle{unsrt}
\bibliography{example}
%\addcontentsline{toc}{section}{Reference} Will give wrong result
\end{document}