怎样把标题页放在第二页?

怎样把标题页放在第二页?

我知道这不是标准做法,但我需要把封面一些特殊文件第一页背面(即第二页),因此额外的白色边距出现在右侧而不是左侧。第一页应该保持空白。以下是可以尝试的 MWE:

\documentclass[letterpaper]{book}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{libertine}
\renewcommand*\familydefault{\sfdefault}
\usepackage{anysize}
\marginsize{1.5in}{1in}{0.5in}{0.5in}
\usepackage[x11names]{xcolor}
\definecolor{backgroundcolor}{RGB}{160, 180, 180}
\definecolor{andcolor}{RGB}{230, 255, 255}
\definecolor{subtitle}{RGB}{230, 255, 255}
\usepackage{afterpage}
\usepackage{tikz}
\usetikzlibrary{calc}

\newcommand*{\maintitle}{\begingroup
    \pagecolor{backgroundcolor}
    \centering
    {\fontsize{68}{0}\selectfont{Some Big Title}} \\[0.6\baselineskip]
    \vfill
\endgroup}

\begin{document}

\begin{titlepage}

\begin{tikzpicture}[remember picture, overlay]
    \draw[line width = 1in,color = white] ($(current page.north west) + (0.25in,0.25in)$) rectangle ($(current page.south east) + (0.25in,-0.25in)$);
    \draw[line width = 0.25pt,color = black] ($(current page.north west) + (0.75in,-0.25in)$) rectangle ($(current page.south east) + (-0.25in,0.25in)$);
    \draw[line width = 1pt,color = white] ($(current page.north west) + (1in,-0.5in)$) rectangle ($(current page.south east) + (-0.5in,0.5in)$);
\end{tikzpicture}

\maintitle

\LARGE\raggedright

A section\dotfill iii

\vspace*{0.5\baselineskip}

Some comments\dotfill vii

\vspace*{0.5\baselineskip}

One more thing\dotfill ix

\vfill

\end{titlepage}

\end{document}

那么我应该向这个示例添加哪些命令才能将标题页绘制在第 2 页而不是第 1 页上?

答案1

titlepage诀窍是像这样在环境中插入空白页:

\begin{titlepage}
~\newpage % <===========================================================
\thispagestyle{empty} % <===============================================
\setcounter{page}{1} % <================================================

使用以下可编译的 TeX 代码

\documentclass[letterpaper]{book}

\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{libertine}
\renewcommand*\familydefault{\sfdefault}
\usepackage{anysize}
\marginsize{1.5in}{1in}{0.5in}{0.5in}
\usepackage[x11names]{xcolor}
\definecolor{backgroundcolor}{RGB}{160, 180, 180}
\definecolor{andcolor}{RGB}{230, 255, 255}
\definecolor{subtitle}{RGB}{230, 255, 255}
\usepackage{afterpage}
\usepackage{tikz}
\usetikzlibrary{calc}

\newcommand*{\maintitle}{\begingroup
    \pagecolor{backgroundcolor}
    \centering
    {\fontsize{68}{0}\selectfont{Some Big Title}} \\[0.6\baselineskip]
    \vfill
\endgroup}


\begin{document}

\begin{titlepage}
~\newpage % <===========================================================
\thispagestyle{empty} % <===============================================
\setcounter{page}{1} % <================================================
\begin{tikzpicture}[remember picture, overlay]
    \draw[line width = 1in,color = white] ($(current page.north west) + (0.25in,0.25in)$) rectangle ($(current page.south east) + (0.25in,-0.25in)$);
    \draw[line width = 0.25pt,color = black] ($(current page.north west) + (0.75in,-0.25in)$) rectangle ($(current page.south east) + (-0.25in,0.25in)$);
    \draw[line width = 1pt,color = white] ($(current page.north west) + (1in,-0.5in)$) rectangle ($(current page.south east) + (-0.5in,0.5in)$);
\end{tikzpicture}

\maintitle

\LARGE\raggedright

A section\dotfill iii

\vspace*{0.5\baselineskip}

Some comments\dotfill vii

\vspace*{0.5\baselineskip}

One more thing\dotfill ix

\vfill

\end{titlepage}

\end{document} 

您将获得以下第二页(偶数页)(第一页(奇数页)为空):

第二页,第一页是空的

答案2

(1)我只是想尝试一下……

~ % added
\newpage % added
\begin{titlepage}

~不可见的,因此\newpage有事要做:)。

更新:不起作用。我猜想书籍类总是希望以奇数页码作为标题页的开头。https://zhiganglu.com/post/latex-insert-blank-page/似乎有效,但它会改变编号(\addtocounter{page}{-1})。原发帖人似乎有点生气,所以我就不再试图帮忙了。


(2)对于您的下一个问题,请理解您提供了太多的代码,在我看来,您的问题归结为:

\documentclass{book}

\begin{document}
~
\newpage
\begin{titlepage}
MY TITL EPAGE
\end{titlepage}

\end{document}

也许看看这篇精彩的文章


(3)此外,您有很多问题有答案,但您没有接受答案。请友善地接受那些能解决您问题的答案。

相关内容