我正在使用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}