我使用的是经典论文模板,在我的文档中,我添加了标题页,并在每章开头添加了一张图。我想在标题页上添加页码,这样整个文档就有连续的编号。
我已经尝试过1和2但没有成功。请注意,在我的 MWE 中,我有两种页码类型(罗马和阿拉伯),它们分别用于目录和主文档。
我已添加一个 MWE,它显示页码从第 1 章开始,而不是按照要求从“章节标题”页开始。
任何建议都将非常感谢!
\documentclass[12pt,a4paper,headinclude=true,footinclude]{report}% or book for the standard book class
\usepackage[T1]{fontenc}
\usepackage[dottedtoc]{classicthesis}
\usepackage{color}
\usepackage{graphicx, epstopdf}
\usepackage{gensymb}
\usepackage{times}
\usepackage{adjustbox}
\usepackage[british]{babel}
\usepackage{csquotes}
\usepackage[backend=bibtex, citestyle=ieee, bibstyle=ieee]{biblatex}
\usepackage[section]{placeins}%Allows you to permanently fix figures.
\usepackage{titleps}%fancy page borders?
\usepackage[left=4.0cm, right=4cm, top=3.5cm, bottom=3.5cm]{geometry}
\captionsetup{format=plain, font={small,it}, labelfont=bf}
\usepackage{microtype}
\usepackage{wallpaper}
\usepackage{setspace}
\usepackage{lipsum}
\setcounter{secnumdepth}{3}
\sloppy%Makes sure that none of the text exceeds text width. Useful if have long chemical words.
\DeclareUnicodeCharacter{2212}{-}
\doublespacing
\begin{document}
\pagenumbering{roman}
\tableofcontents
\addcontentsline{toc}{section}{List of figures}
\listoffigures
\newpage
\pagenumbering{arabic}
%CHAPTER_1
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\begin{titlepage} % Suppresses displaying the page number on the title page and the subsequent page counts as page 1
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for horizontal lines, change thickness here
\center % Centre everything on the page
%------------------------------------------------
% Headings
%------------------------------------------------
\vspace*{4cm}
\textsc{\huge Chapter title}\\[1.5cm] % Main heading such as the name of your university/college
\vfill\vfill
\includegraphics[width=0.9\textwidth]{Example_figure}\\[2cm] % Include a graphic/logo - this will require the graphicx package
\vfill\vfill\vfill % Position the date 3/4 down the remaining page
%----------------------------------------------------------------------------------------
\vfill % Push the date up 1/4 of the remaining page
\end{titlepage}
\chapter{Introduction}
\section{General}
\section{Aims}
\section{Scope}
\end{document}
答案1
一些观察结果:
如果你从此处下载完整的 CTAN 课程论文包压缩文件
您将找到有关如何设置良好论文的完整示例。特别是,建议将所有配置放在文件中classicthesis-config.tex
,然后加载它\documentclass {...}
以保持一切整洁。
如果你想在前面添加一个数字每个章节,不要使用 titlepage
,环境来设计你的论文的标题页,即论文的第一页。只需添加你想要的文本和图像。(我选择在图表后面的下一页(甚至)留一个空白页。)
书籍类型类别的所有章节都必须从奇数页开始,因此,如果第一个图在第 1 页,则该章节将在第 3 页,依此类推。
请注意,目录中列出的页面将链接到章节页面,而不是图表。
用于\setcounter{page}{<number>}
设置下一页的页码。
\documentclass[12pt,a4paper,headinclude=true,footinclude]{book}% or book for the standard book class
%%%%********************************************************************
%%%% Note: Make all your adjustments in here
%%%%*******************************************************
%%%\input{classicthesis-config}
\usepackage[dottedtoc]{classicthesis}
\usepackage{graphicx}
\begin{document}
\frontmatter % roman numbering
\tableofcontents
\listoffigures
\addcontentsline{toc}{section}{List of figures}
\mainmatter % arabic numbering
%%**************************************** changed <<<<<
\cleardoublepage
\thispagestyle{plain} % or \thispagestyle{empty}
%\setcounter{page}{5} % use it to set the page number of the figure
%CHAPTER_1
\begin{center}
\vspace*{4cm}
\textsc{\huge Chapter title 1} %
\vfill
\includegraphics[width=0.9\textwidth]{example-image-a} % Include a graphic/logo
\vfill %
\end{center}
\clearpage\null\thispagestyle{empty} %blank page
\chapter{Introduction}
\section{General}
\section{Aims}
\section{Scope}
%CHAPTER_2
\cleardoublepage
\thispagestyle{plain} % or \pagestyle{empty}
\begin{center}
\vspace*{4cm}
\textsc{\huge Chapter title 2}%
\vfill
\includegraphics[width=0.9\textwidth]{example-image-b} % Include a graphic/logo
\vfill %
\end{center}
\clearpage\null\thispagestyle{empty}%blank page
\chapter{Method}
%%****************************
\end{document}