如何更改 Koma scrbook 中的文档标题大小?

如何更改 Koma scrbook 中的文档标题大小?

主标题页

在此处输入图片描述

附加标题

我正在使用 Koma 脚本命令的几个功能,\maketitle即和。我希望保留所有这些功能。extratitlefrontispiecelowertitleback

我正在尝试增加主标题\title和的字体大小\subtitle。它们应该比附加标题页上的半个标题大。我没有确切的要求,因为我无法使用它。我猜标题需要比大一点\Huge

我尝试过几种方法,但都没有用。

首先,我尝试使用定义自定义尺寸的方法(感谢 Danie Els)。

\newcommand*{\TitleFont}{%
      \usefont{\encodingdefault}{\rmdefault}{b}{n}%
      \fontsize{16}{20}%
      \selectfont}

\setkomafont{title}{\TitleFont\textbf} 

我也尝试了该\addtokomafont命令,但同样不起作用。字体大小没有变化。

其次,我尝试了这个titling包:

\usepackage{titling}

\pretitle{\begin{center}\LARGE} 
\title{GOOD STUFF}
\posttitle{\par\end{center}\vskip 0.5em} 

而且,没用。它丢失了之前的页面。

我也尝试使用环境来定义自己的标题页\titlepage,但\maketitle坚持已经\title定义了。

\begin{titlepage}
    \vspace*{4\baselineskip}
    \begin{center}
        \usekomafont{title}\huge
        \hspace*{0.36in}
        \textbf{\Huge GOOD STUFF\newline}
        \hspace*{0.2in}
        \textbf{\Large Reconciling Your Mama and Your Papa}
        \title{GOOD STUFF}
        \subtitle{Reconciling Your Mama and Your Papa}
        
        \vfill
        Centre of The Universe\\ %Jack edit6, replaced '\newline with \\
        The University of Uncommon Sense\\
        2021
    \end{center}
\end{titlepage}

我附上了一张前几页应该是什么样子的图片。我花了几个小时试图找出如何在不丢失其他功能的情况下增加标题大小。我读过 KOMA 指南、Mittelbach LaTeX 指南,并在谷歌上搜索过,但没成功。

MWE 表示:

\documentclass[titlepage=firstiscover,size=160mm:234mm,DIV=calc]{scrbook} 

\usepackage{bigstrut}
\usepackage[T1]{fontenc} 
\usepackage{comment}
\usepackage{txfonts} 
\usepackage{upgreek} 
\usepackage[utf8]{inputenc} 
\usepackage{CJKutf8} 
\usepackage{hyperref} 
\usepackage{blindtext}

\newcommand*{\TitleFont}{%
    \usefont{\encodingdefault}{\rmdefault}{b}{n}%
    \fontsize{56}{20}%
    \selectfont}

\setkomafont{title}{\TitleFont} 

    \title{\centering\textbf{GOOD STUFF\newline}} 
    \subtitle{Reconciling Your Mama and Your Papa} 
    \author{Jack} %Jack edit4
    \publishers{Centre of The Universe\\ 
        The University of Uncommon Sense\\
    2021} %Jack edit5
    \date{} %Jack edit4


\begin{document}

\frontmatter   

\extratitle{   
    \vspace*{4\baselineskip}
        \begin{center}
            \usekomafont{title}\huge
            \hspace*{0.36in}
            \textbf{\Huge GOOD STUFF\newline}
            \hspace*{0.2in}
            \textbf{\Large Reconciling Your Mama and Your Papa}
            \title{GOOD STUFF}
            \subtitle{Reconciling Your Mama and Your Papa}
        \end{center}
    \vspace*{2\baselineskip}
    \blindtext \newline
    \vspace*{\baselineskip}
    
    \textbf{Author Name} \blindtext
}

 % jacked 03 March to add CBS Publications
\frontispiece{ 
    \parindent=0pt
    \setlength{\parskip}{5pt}
    \centering\textbf{\Large Publication Series}
    \begin{flushleft}
        
        \textbf{Scholars}
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
    \end{flushleft}
}

\begin{comment}

\begin{titlepage}
    \vspace*{4\baselineskip}
    \begin{center}
        \usekomafont{title}\huge
        \hspace*{0.36in}
        \textbf{\Huge GOOD STUFF\newline}
        \hspace*{0.2in}
        \textbf{\Large Reconciling Your Mama and Your Papa}
        \title{GOOD STUFF}
        \subtitle{Reconciling Your Mama and Your Papa}
        
        \vfill
        Centre of The Universe\\ %Jack edit6, replaced '\newline with \\
        The University of Uncommon Sense\\
        2021
    \end{center}
\end{titlepage}

\end{comment}
\lowertitleback{    % jacked 26 Feb to add copyright-publisher's block
    
    \begin{flushleft}
        
        Published in by School of Hard Knocks\\
        The University of Uncommon Sense\\
        2021\\
        \vspace*{\baselineskip}
        © Centre of The Universe,\\
        The University of Uncommon Sense\\
        All Rights Reserved\\
        \vspace*{\baselineskip}
        ISBN: 978-999-99999-9-2 (Hardcover)\\
        ISBN: 978-999-99999-9-9 (e-book)
        
    \end{flushleft}
}

\maketitle 

\begin{center}
    \noindent
    What is to prevent us, then, from hiding this under my pillow?\\
    
    Arisnotle, 
\end{center}


\pagebreak

\end{document}

抱歉,但图像没有按我预期的方式上传/显示。

答案1

我认为,存在一些误解...

让我们看一下以下 MWE(重要代码以 标记<======):

\documentclass[%
  titlepage=firstiscover,
  size=160mm:234mm,
  DIV=calc
]{scrbook} 

\usepackage[T1]{fontenc} 
%\usepackage[utf8]{inputenc} % <====================== standard nowadays
\usepackage{blindtext} % <======================= to generate dummy text
\usepackage{showframe} % <========== to show the typing area and margins

\usepackage{hyperref} % <=========================== last called package


\newcommand{\HUGE}{\fontsize{56}{60}\selectfont} % <====================
\setkomafont{title}{\HUGE\bfseries} % <=================================

\title{GOOD STUFF} 
\subtitle{Reconciling Your Mama and Your Papa} 
\author{Jack} %Jack edit4
\publishers{Centre of The Universe\\ 
  The University of Uncommon Sense\\
  2021} %Jack edit5
\date{} %Jack edit4


\begin{document}

\frontmatter

\maketitle 

\begin{center}
    \noindent
    What is to prevent us, then, from hiding this under my pillow?\\
    
    Arisnotle, 
\end{center}

\pagebreak

\tableofcontents

\mainmatter
\Blinddocument

\end{document}

\HUGE在那里我用 定义了命令\newcommand{\HUGE}{\fontsize{56}{60}\selectfont}。现在我们可以用 来定义文档标题的字体大小\setkomafont{title}{\HUGE\bfseries}。然后是标题文本、副标题文本等的定义。

结果是

生成的 pdf

其中线条标记了打字区域和边距。如您所见,标题位于打字区域的中央...

为了获取您问题中想要的所有页面(附加标题、卷首插图等),我们必须将您的代码更改为以下 MWE:

\documentclass[%
  titlepage=firstiscover,
  size=160mm:234mm,
  DIV=calc
]{scrbook} 

\usepackage[T1]{fontenc} 
%\usepackage[utf8]{inputenc} % <====================== standard nowadays
\usepackage{blindtext} % <======================= to generate dummy text
\usepackage{showframe} % <========== to show the typing area and margins

\usepackage{hyperref} % <=========================== last called package

\newcommand{\HUGE}{\fontsize{56}{60}\selectfont} % <====================
\title{GOOD STUFF}

\begin{document}

\extratitle{%
  \vspace*{4\baselineskip}
  \begin{center}
    \HUGE\textbf{GOOD STUFF}\newline % <===============================
    \Large\textbf{Reconciling Your Mama and Your Papa}
 
    Extratitle
  \end{center}
  \vspace*{2\baselineskip}
  \blindtext \newline
  \vspace*{\baselineskip}
    
  \textbf{Author Name} \blindtext
}

\frontispiece{% 
    \parindent=0pt
    \setlength{\parskip}{5pt}
    \centering\textbf{\Large Publication Series}
    \begin{flushleft}
        
        \textbf{Scholars}
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
        \textit{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}\\ 
        yyyyyyyyyyyyyyyyyy
        
    \end{flushleft}
}

\begin{titlepage}
  \vspace*{4\baselineskip}
  \begin{center}
    \HUGE\textbf{GOOD STUFF}\newline % <================================
    \Large\textbf{Reconciling Your Mama and Your Papa}

    \vfill
    Centre of The Universe\\ %Jack edit6, replaced '\newline with \\
    The University of Uncommon Sense\\
    2021
  \end{center}
\end{titlepage}

\lowertitleback{    % jacked 26 Feb to add copyright-publisher's block
    
    \begin{flushleft}
        
        Published in by School of Hard Knocks\\
        The University of Uncommon Sense\\
        2021\\
        \vspace*{\baselineskip}
        © Centre of The Universe,\\
        The University of Uncommon Sense\\
        All Rights Reserved\\
        \vspace*{\baselineskip}
        ISBN: 978-999-99999-9-2 (Hardcover)\\
        ISBN: 978-999-99999-9-9 (e-book)
        
    \end{flushleft}
}

\frontmatter % <========================================================
\maketitle 

\begin{center}
    \noindent
    What is to prevent us, then, from hiding this under my pillow?\\
    
    Arisnotle, 
\end{center}


\pagebreak

\tableofcontents

\mainmatter % <=========================================================

\Blinddocument

\end{document}

产生两个标题页:

第一个标题页

第二个:

第二页

以及所有其他页面...重要的代码更改都标有<======...

相关内容