修改 svmono 类中的 maketitle(删除“Springer”)

修改 svmono 类中的 maketitle(删除“Springer”)

我正在使用svmono 模板来自 Springer Verlag 的报告。

唯一的问题是它会在标题页的左下角自动生成单词“Springer”。

有人知道如何相应地删除/修改模板吗? MWE 如下:

\documentclass[graybox,envcountchap,sectrefs]{svmono}
\usepackage{lipsum}

\begin{document}

\author{John Doe}
\title{How to change your last name}
\subtitle{An enquiry into the origins of common names}
\maketitle

\chapter{Introduction}
\lipsum[1-4]


\end{document}

图片

答案1

svmono我过去不得不处理这个问题,所以我可能处于一个熟悉的领域。:)以下代码用于xpatch修补\@maketitle和删除单词施普林格在标题页中:

\documentclass[graybox,envcountchap,sectrefs]{svmono}
\usepackage{lipsum}

\usepackage{xpatch}

\makeatletter
\xpatchcmd{\@maketitle}{{\Large Springer\par}}{}{}{}
\makeatother

\begin{document}

\author{John Doe}
\title{How to change your last name}
\subtitle{An enquiry into the origins of common names}
\maketitle

\chapter{Introduction}
\lipsum[1-4]

\end{document}

相同的想法,现在用etoolbox而不是xpatch

\documentclass[graybox,envcountchap,sectrefs]{svmono}
\usepackage{lipsum}

\usepackage{etoolbox}

\makeatletter
\patchcmd{\@maketitle}{{\Large Springer\par}}{}{}{}
\makeatother

\begin{document}

\author{John Doe}
\title{How to change your last name}
\subtitle{An enquiry into the origins of common names}
\maketitle

\chapter{Introduction}
\lipsum[1-4]

\end{document}

输出有施普林格不再:

输出

答案2

您可以从类文件中获取定义\@maketitle并注释掉相关行。

在此处输入图片描述

\documentclass[graybox,envcountchap,sectrefs]{svmono}
\usepackage{lipsum}

\makeatletter
\def\@maketitle{\newpage
 \null
 \vskip 2em                 % Vertical space above title.
\begingroup
  \def\and{\unskip, }
  \parindent=\z@
  \pretolerance=10000
  \rightskip=\z@ \@plus 3cm
  {\LARGE                   % each author set in \LARGE
   \lineskip .5em
   \@author
   \par}%
  \vskip 2cm                % Vertical space after author.
  {\Huge \@title \par}%     % Title set in \Huge size.
  \vskip 1cm                % Vertical space after title.
  \if!\@subtitle!\else
   {\LARGE\ignorespaces\@subtitle \par}
   \vskip 1cm                % Vertical space after subtitle.
  \fi
  \if!\@date!\else
    {\large \@date}%          % Date set in \large size.
    \par
    \vskip 1.5em               % Vertical space after date.
  \fi
 \vfill
% {\Large Springer\par}
% \vskip 5\p@
% \large
%   Berlin\enspace Heidelberg\enspace New\kern0.1em York\\
%   Hong\thinspace Kong\enspace London\\
%   Milan\enspace Paris\enspace Tokyo\par
\endgroup}
\makeatother

\begin{document}

\author{John Doe}
\title{How to change your last name}
\subtitle{An enquiry into the origins of common names}
\maketitle

\chapter{Introduction}
\lipsum[1-4]


\end{document}

相关内容