带有图片的 Koma Script 标题页不需要的额外页面

带有图片的 Koma Script 标题页不需要的额外页面

Komascript。图书类。

我试图在标题页上使用图形,但它会产生两个我无法删除的额外空白页。顺序应该是:

1-半标题页

2-标题页

3-背面下方有标题(包含版权信息)

然后是目录和其余主要内容。

相反,我得到的是:

1- 半标题页

2- 标题页

3-空白页

4- 另一张空白页

5- \lowertitleback 页

然后是目录和文档的其余部分。

梅威瑟:

\documentclass[twocolumn,fontsize=9pt,BCOR=2cm,headlines=2.5,usegeometry]{scrbook}
\usepackage{graphicx}
\usepackage{blindtext}

\begin{document}
%\extratitle{\textbf{\Huge Me}}
\begin{titlepage}
\includegraphics{i.jpeg}
\title{}
\date{}
\end{titlepage}
%\extratitle{\textbf{\Huge In Love}} \title{In Love}
%\author{}
%\date{}

\cleardoublepage
\lowertitleback{
    \textit{A Boring Book}
    ©2022 Anyname, Inc. 
    All Rights Reserved. Batteries not included. Kids, do not try this at home.    Professional driver on closed course. Past performance is no guarantee of future results.  
\medskip

\noindent ISBN: 1234567

\noindent ePub: 12345678
}
\maketitle
\tableofcontents
\addchap{Introduction}
\Blindtext
\end{document}

显然(见下文讨论)问题是由添加的图形的大小引起的,即使该图形是 a4 大小,与 Koma 类中使用的纸张大小相同(也是默认大小!)。当我将整页 a4 标题页添加到此 MWE 时(之前我仅为 MWE 使用占位符 - 它会抛出不需要的额外页面,这些页面无法抑制。Markus Kohm 建议在德语手册中创建外部标题页,但没有解释如何实现这一壮举,这似乎很奇怪。有什么想法吗?

我尝试使用 \usepackage{includepdf} 如下:

\extratitle{
\includepdf{halfpage.pdf}
}

将半个标题放在第二页,而第一页则留空!

答案1

如果您想添加外部创建的标题页,则不应使用\maketitle

例子:

\documentclass[twocolumn,fontsize=9pt,BCOR=2cm,headlines=2.5,DIV=calc,usegeometry]{scrbook}
\usepackage{pdfpages}% loads graphicx
\usepackage{mwe}% example-images and dummy text

\begin{document}
\begin{titlepage}
\noindent
\parbox{\linewidth}{%
  \color{red}\Huge Content of half-title page \par% dummy half title page
}

\cleardoubleoddpage
\includepdf[pages=1]{example-image-a4-numbered}% dummy title page

\clearpage
\thispagestyle{empty}
\vspace*{\fill}
\noindent
\parbox{\linewidth}{%
    \textit{A Boring Book}
    ©2022 Anyname, Inc. 
    All Rights Reserved. Batteries not included. Kids, do not try this at home. Professional driver on closed course. Past performance is no guarantee of future results. 
\medskip

ISBN: 1234567

ePub: 12345678
}\par
\end{titlepage}

\tableofcontents
\addchap{Introduction}
\Blindtext
\end{document}

在此处输入图片描述

答案2

尝试这个:

\documentclass[twocolumn,fontsize=9pt,BCOR=2cm,headlines=2.5,usegeometry]{scrbook}

\usepackage{tikzducks}  % strictly for duck purposes
\usepackage{graphicx}
\usepackage{blindtext}

\begin{document}
\begin{titlepage}

\extratitle{Ducks \& Ducking Through the Ages}
\title{
    \includegraphics[width=.85\textwidth]{example-image-duck} 
    \begin{center}Ducks \& Ducking Through the Ages\end{center}
}% end of title

\author{Nomen Nescio}
\date{} % keep empty if you don't want to show current date

\lowertitleback{
    \textit{A Boring Book}
    ©2022 Anyname, Inc. 
    All Rights Reserved. Batteries not included.

\medskip
\noindent ISBN: 1234567
\noindent ePub: 12345678
}% end of lowertitleback

\end{titlepage}
\maketitle

\tableofcontents
\addchap{Introduction}
\Blindtext
\end{document}

这产生了

  1. 半标题,
  2. 空白页(半标题的背面),
  3. 带有图片的标题页,
  4. 标题页背面有您的版权页和 ISBN,最后
  5. 目录和书的其余部分。

如果这不是您想要的,即您不想要任何空白页,请选择其他类别:scrbook用于双面打印。(您twoside=off也可以使用该选项,但\lowertitleback同样不起作用。)

相关内容