我正在撰写博士论文,我想为每一章制作一个两页的封面,类似于这问题,但我无法让他们的例子发挥作用。(我正在使用报告类)
我脑子里想的是类似附图的东西,但一旦我知道如何添加额外的封面页,我就可以随意摆弄背景和布局,因此在这个阶段设计并不是特别重要,只需在左侧添加额外的页面即可。到目前为止,我只能添加一个封面章节页,例如这问题。我花了一整天的时间尝试各种方法,但都没有成功,因此我非常感激任何建议!
这是我到目前为止尝试过的方法,但按照 David Carslisle 的建议后,我得到了一个额外的空白页:
\documentclass[12pt, twoside, openright]{report}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{hyperref}
\setlength{\parindent}{0pt} % remove indent on new paragraph line
%%%%%% labels "thumbs" for each chapter: https://tex.stackexchange.com/questions/119880/show-current-chapter-number-on-each-page-margin
\usepackage[height={1.5cm},distance={10mm},topthumbmargin={auto},bottomthumbmargin={auto}]{thumbs}
%%%%%% add a blank page
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
%\addtocounter{page}%
\newpage}
%%%%%% https://tex.stackexchange.com/questions/664274/how-do-i-make-it-so-that-every-chapter-starts-at-an-odd-numbered-page-preceded
\def\cleartoeven{\clearpage\if@twoside \ifodd\c@page
\thispagestyle{plain}\hbox{}\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
%%%%%% https://tex.stackexchange.com/questions/89761/chapters-title-page-before-every-chapter-and-every-chapter-with-its-title
\usepackage{titlesec}
\titleclass{\chapter}{page}
\assignpagestyle{\chapter}{empty}
\titleformat{\chapter}
[display]
{\centering\huge\bfseries}
{\chaptername\ \thechapter}
{0pt}
{\Large}
[\clearpage]
\title{title}
\author{author}
\date{ \today}
\begin{document}
\pagenumbering{arabic}
\maketitle
\tableofcontents
\cleartoeven %for the left page
\chapter{Introduction} % for the chapter page on the right
\clearpage %for rest of chapter
\addthumb{Chapter \thechapter}{\Large{\thechapter}}{white}{gray}
\lipsum[]
\end{document}
答案1
没有 titlesec 我认为你想要
\documentclass[12pt, twoside, openright]{report}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{hyperref}
\setlength{\parindent}{0pt} % remove indent on new paragraph line
%%%%%% labels "thumbs" for each chapter: https://tex.stackexchange.com/questions/119880/show-current-chapter-number-on-each-page-margin
\usepackage[height={1.5cm},distance={10mm},topthumbmargin={auto},bottomthumbmargin={auto}]{thumbs}
%%%%%% add a blank page
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
%\addtocounter{page}%
\newpage}
%%%%%% https://tex.stackexchange.com/questions/664274/how-do-i-make-it-so-that-every-chapter-starts-at-an-odd-numbered-page-preceded
\def\cleartoeven{\clearpage\if@twoside \ifodd\c@page
\thispagestyle{plain}\hbox{}\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
%%%%%% https://tex.stackexchange.com/questions/89761/chapters-title-page-before-every-chapter-and-every-chapter-with-its-title
\iffalse
\usepackage{titlesec}
\titleclass{\chapter}{page}
\assignpagestyle{\chapter}{empty}
\titleformat{\chapter}
[display]
{\centering\huge\bfseries}
{\chaptername\ \thechapter}
{0pt}
{\Large}
\fi
\title{title}
\author{author}
\date{ \today}
\begin{document}
\pagenumbering{arabic}
\maketitle
\tableofcontents
\cleartoeven %for the left page
stuff here on left
\chapter{Introduction} % for the chapter page on the right
\addthumb{Chapter \thechapter}{\Large{\thechapter}}{white}{gray}
\clearpage
\lipsum[]
\end{document}
有了它,我不确定:它插入了\cleardoublepage
某个地方,但我现在不明白为什么。