断开的标题页?

断开的标题页?

我正在尝试找到一种方法,在每一章开始前都放置一个整页的“标题”类型的页面。但是,章节名称也会出现在章节的第一页上。每章前的完整标题页上的标题文本会有所不同,我不希望标题页影响章节页码或类似的东西。下面是我想要实现的一个示例。只是一个简单的页面,带有两行或三行标题(取决于章节名称)。

左边的图片就是我要找的。我已经设置好了每章的第一页。这两张都是右页。请原谅这个模型图片,我没有在它们之间添加空白页。

需要明确的是,这个标题页是右页,没有页码。所以空白页 << >> 标题页,空白页 << >> 章节开始...

在此处输入图片描述

% UNIVERSAL SETTINGS
\documentclass[statementpaper,10pt,twoside,onecolumn,openright,extrafontsizes]{memoir} % set page properties
\usepackage[utf8x]{inputenc} % set displayable characters
\usepackage[T1]{fontenc}
\usepackage[osf]{Alegreya,AlegreyaSans} % set font face
\usepackage{canoniclayout} % canonical margins, breaks page number?
\usepackage{subfiles} % to pull chapter files in from other sub files
\usepackage{lipsum}

% INDEX SETTINGS
% run "makeindex index_name.idx -s style.ist" in terminal to generate each correct index files before typesetting
\makeindex[genesis]
\makeindex[exodus]
\makeindex[leviticus]

% TABLE OF CONTENTS SETTINGS
\renewcommand{\cftchapterdotsep}{\cftdotsep}% Chapters should use dots in TOC
%\usepackage{patchcmd} % set width
%\makeatletter % set width
%\patchcommand\@starttoc{\begin{quote}}{\end{quote}} % set width
%\makeatother % set width

% CHAPTER SETTINGS
\renewcommand*{\printchaptername}{\centering}
\renewcommand*{\printchapternonum}{\centering}

% PAGE HEADER SETTINGS
\nouppercaseheads % prevent all uppercase header titles
\makeatletter % put chapter title on both pages
\createmark{chapter}{both}{shownumber}{\@chapapp\ }{. \ } % put chapter title on both pages
\makeatother % put chapter title on both pages

% PARAPGRAPH SETTINGS
\usepackage{ragged2e} % indent paragraphs using ragged right
\setlength{\RaggedRightParindent}{\parindent} % indent paragraphs with ragged right
\raggedbottom % avoid paragraph spacing issues but allow bottom ragged lines
\usepackage{lettrine} % for drop caps and awesome chapter beginnings
\linespread{1.2} % line-height

\renewcommand{\chapternumberline}[1]{}% Gobble chapter number in ToC
\renewcommand{\cftchapterdotsep}{\cftdotsep}% Chapter dots in ToC

% TITLE PAGE FORMATTING
% creates the title page and printed title text
\newlength\drop
\newcommand*{\titleMain}{%
\thispagestyle{empty}
\begingroup% Gentle Madness
\drop = 0.1\textheight
\vspace*{\baselineskip}
\vfill
\hbox{%
%\hspace*{0.2\textwidth}%
%\rule{1pt}{\dimexpr\textheight-28pt\relax}%
%\hspace*{0.05\textwidth}%
\parbox[b]{1.0\textwidth}{
\vbox{%
\vspace{\drop}
\centering{\noindent\HUGE\bfseries Holy Bible}\\[2\baselineskip]
{\Large King James Version}\\[.37\baselineskip]
{\Large\itshape Authorized Edition}
\vspace{0.5\textheight}
%{\noindent The Publisher}\\[\baselineskip]
}% end of vbox
}% end of parbox
}% end of hbox
\vfill
\null
\endgroup}

% BEGIN THE DOCUMENT
\begin{document}
\titleMain % print title page created in preamble
\cleardoublepage % blank page after title and TOC page

% TABLE OF CONTENTS
\begin{center} % center the TOC title text
\tableofcontents* % print table of contents page
\end{center}
\thispagestyle{empty} % hide page number header on TOC page

% BEGIN MAIN CONTENT MATTER
\cleardoublepage % restart page numbers

\RaggedRight % apply ragged right paragraph format
\pagenumbering{arabic} % change page numbering to numbers

\subfile{tex/genesis} % print text from chapter files
\subfile{tex/exodus}
\subfile{tex/leviticus}


% BEGING BACK CONTENT MATTER
\backmatter

\addcontentsline{toc}{chapter}{\textit {Index of Chapters}} % for consolidating index in TOC
{\def\addcontentsline#1#2#3{} % for consolidating index in TOC

 % INDEX
\clearpage
% \renewcommand{\preindexhook}{}
% \twocolindex
\renewcommand{\indexname}{Genesis}
\printindex[genesis]
\renewcommand{\indexname}{Exodus}
\printindex[exodus]
\renewcommand{\indexname}{Leviticus}
\printindex[leviticus]

\end{document}
% END OF DOCUMENT

和子文件。

\begin{document}

\addcontentsline{toc}{chapter}{Genesis} % manually adds TOC entry if you hide title on first page of chapter
\markboth{Genesis}{Genesis} % Correct headers after manually setting TOC
\chapter*{Genesis} % add asterisk after "chapter" and remove "Gensis" from brackets to hide chapter title on first page of chapter

\index[genesis]{Chapter 1}\lettrine[lines=3]{N}{}ow these \lipsum
\index[genesis]{Chapter 2} \lipsum
\index[genesis]{Chapter 3} \lipsum

\end{document}

答案1

我修改了你的代码,以便每一个章节前面有标题页。格式化由新命令完成\tpchapter。您应该更改环境中的块center——在当前状态下,它相当粗略,只是一种丑陋的概念验证。:-)

我还包含了包hyperref(尚未设置选项),因此\phantomsection可以使用。我猜将其插入\phantomsection到章节的标题页上是有意义的,但您可以将其移动到带有 的行之前\chapter*{#2}

这是代码(就像 StefanH 在他的回答中所做的那样,我删除了一章并将示例文本从子文件移到主文档中,因此文档可以轻松编译):

% UNIVERSAL SETTINGS
\documentclass[statementpaper,10pt,twoside,onecolumn,openright,extrafontsizes]{memoir} % set page properties
\RequirePackage[l2tabu, orthodox]{nag}
\usepackage[utf8x]{inputenc} % set displayable characters
\usepackage[T1]{fontenc}
\usepackage[osf]{Alegreya,AlegreyaSans} % set font face
\usepackage{canoniclayout} % canonical margins, breaks page number?
\usepackage{lipsum}
\usepackage{hyperref}      % provides \phantomsection

% INDEX SETTINGS
% run "makeindex index_name.idx -s style.ist" in terminal to generate each correct index files before typesetting
\makeindex[genesis]
\makeindex[exodus]

% TABLE OF CONTENTS SETTINGS
\renewcommand{\cftchapterdotsep}{\cftdotsep}% Chapters should use dots in TOC

% CHAPTER SETTINGS
\renewcommand*{\printchaptername}{\centering}
\renewcommand*{\printchapternonum}{\centering}

% PAGE HEADER SETTINGS
\nouppercaseheads % prevent all uppercase header titles
\makeatletter % put chapter title on both pages
\createmark{chapter}{both}{shownumber}{\@chapapp\ }{. \ } % put chapter title on both pages
\makeatother % put chapter title on both pages

% PARAPGRAPH SETTINGS
\usepackage{ragged2e} % indent paragraphs using ragged right
\setlength{\RaggedRightParindent}{\parindent} % indent paragraphs with ragged right
\raggedbottom % avoid paragraph spacing issues but allow bottom ragged lines
\usepackage{lettrine} % for drop caps and awesome chapter beginnings
\linespread{1.2} % line-height

\renewcommand{\chapternumberline}[1]{}% Gobble chapter number in ToC
\renewcommand{\cftchapterdotsep}{\cftdotsep}% Chapter dots in ToC

% TITLE PAGE FORMATTING
% creates the title page and printed title text
\newlength\drop
\newcommand*{\titleMain}{%
\thispagestyle{empty}
\begingroup% Gentle Madness
\drop = 0.1\textheight
\vspace*{\baselineskip}
\vfill
\hbox{%
\parbox[b]{1.0\textwidth}{
\vbox{%
\vspace{\drop}
\centering{\noindent\HUGE\bfseries Holy Bible}\\[2\baselineskip]
{\Large King James Version}\\[.37\baselineskip]
{\Large\itshape Authorized Edition}
\vspace{0.5\textheight}
}% end of vbox
}% end of parbox
}% end of hbox
\vfill
\null
\endgroup}

% Formatting macros for Pre title, Main title and Sub title
\newcommand{\tppretitle}[1]{{\LARGE\textbf{#1}}}
\newcommand{\tpmaintitle}[1]{{\Huge\textbf{#1}}}
\newcommand{\tpsubtitle}[1]{{\LARGE\textbf{#1}}}

% Macro to typeset the sequence "[empty page] --> title page --> empty page --> chapter"
% #1: Pre title    #2: Main title (== chapter name)    #3 Sub title    #4 Label
\newcommand{\tpchapter}[4]{%
    \cleardoublepage%

    \thispagestyle{empty}%
    \vspace*{\fill}%
    \phantomsection%
    \addcontentsline{toc}{chapter}{#2}%
    \label{#4}

% Adjust the format of the chapter titlepage in this block
    \begin{center}
    \tppretitle{#1}\\[\baselineskip]
    \tpmaintitle{#2}\\[\baselineskip]
    \tpsubtitle{#3}%
    \end{center}
    \vfill%


    \cleardoublepage%
    \chapter*{#2}
    \thispagestyle{plain}%
    \markboth{#2}{#2}%
 }

% BEGIN THE DOCUMENT
\begin{document}
\titleMain % print title page created in preamble
\cleardoublepage % blank page after title and TOC page

% TABLE OF CONTENTS
\tableofcontents* % print table of contents page
\thispagestyle{empty} % hide page number header on TOC page

% BEGIN MAIN CONTENT MATTER
\cleardoublepage % restart page numbers

\RaggedRight % apply ragged right paragraph format
\pagenumbering{arabic} % change page numbering to numbers


%***TEXT starts here***
\tpchapter{Pre title}{Genesis}{Subtitle}{cha:genesis}
\index[genesis]{Chapter 1}\lettrine[lines=3]{N}{}ow these \lipsum
\index[genesis]{Chapter 2}\lettrine[lines=3]{N}{}ow these \lipsum
\index[genesis]{Chapter 3}\lettrine[lines=3]{N}{}ow these \lipsum

\tpchapter{Pre title}{Exodus}{Subtitle}{cha:exodus}
\index[exodus]{Chapter 1}\lettrine[lines=3]{N}{}ow these \lipsum
\index[exodus]{Chapter 2}\lettrine[lines=3]{N}{}ow these \lipsum
\index[exodus]{Chapter 3}\lettrine[lines=3]{N}{}ow these \lipsum


% BEGING BACK CONTENT MATTER
\backmatter

%% INDEX
\begin{center}\vspace*{\fill}
    \phantomsection\thispagestyle{empty}
    \tpmaintitle{Index of Chapters}%
    \addcontentsline{toc}{chapter}{\textit {Index of Chapters}} % for consolidating index in TOC
    \label{cha:ioc}
    \vfill
\end{center}

\renewcommand{\indexname}{Genesis}
\printindex[genesis]
\renewcommand{\indexname}{Exodus}
\printindex[exodus]

\end{document}

答案2

如果我理解正确的话,您正在寻找一种排版标题页的方法。由于标题页的代码是在 MWE 中给出的,所以在我看来,有太多不必要的框。我会做这样的事情。

% TITLE PAGE FORMATTING
% creates the title page and printed title text
\newcommand*{\titleMain}{%
  \thispagestyle{empty}
  \centering% In case the title widths below are changed
  \rule{0pt}{6em}
  \parbox{\linewidth}{\centering\LARGE\MyPreTitle}
  \rule{0pt}{1em}
  \parbox{\linewidth}{\centering\HUGE\bfseries\MyMainTitle}
  \rule{0pt}{1em}
  \parbox{\linewidth}{\centering\Large\MySubTitle}
  \cleardoublepage
} 
\newcommand\MyPreTitle{}
\newcommand\MyMainTitle{}
\newcommand\MySubTitle{}
\newcommand\PreTitle[1]{\renewcommand\MyPreTitle{#1}}
\newcommand\MainTitle[1]{\renewcommand\MyMainTitle{#1}}
\newcommand\SubTitle[1]{\renewcommand\MySubTitle{#1}}

% BEGIN THE DOCUMENT
\begin{document}
\PreTitle{This is my pre-title}
\MainTitle{Main title}
\SubTitle{Sub-title}
\titleMain % print title page

% TABLE OF CONTENTS
\tableofcontents* % print table of contents page
\thispagestyle{empty} % hide page number header on TOC page
\cleardoublepage

% BEGIN MAIN CONTENT MATTER
\RaggedRight % apply ragged right paragraph format
\pagenumbering{arabic} % change page numbering to numbers

\chapter*{Genesis} % add asterisk after "chapter" and remove "Gensis" from brackets to hide chapter title on first page of chapter
\addcontentsline{toc}{chapter}{Genesis} % manually adds TOC entry if you hide title on first page of chapter
\markboth{Genesis}{Genesis} % Correct headers after manually setting TOC
\lipsum[1-8]

\chapter*{Exodus} % add asterisk after "chapter" and remove "Gensis" from brackets to hide chapter title on first page of chapter
\addcontentsline{toc}{chapter}{Exodus} % manually adds TOC entry if you hide title on first page of chapter
\markboth{Exodus}{Exodus} % Correct headers after manually setting TOC
\lipsum[1-8]

我添加了两个章节而不是外部文件。通过将标题页作为第一页,它最终以双面格式出现在右侧。因此不应该像问题中指出的那样首先有一个空白页。

在此处输入图片描述

相关内容