2

I am using the svmono template from Springer Verlag for a report.

Only problem is that it auto-generates the word 'Springer' on the title page, lower left corner.

Anyone has any idea as to options how to remove/modify the template accordingly? MWE follows:

\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}

img

  • 1
    The class is for sending stuff to Springer: what's the problem? If they want that text there it is their decision. – Joseph Wright Jan 11 '14 at 8:32
  • I wanted to use it for a non-springer related report. – ako Jan 11 '14 at 8:33
7

I had to deal with svmono in the past, so I'm probably in a charted territory. :) The following code uses xpatch to patch \@maketitle and remove the word Springer in the title page:

\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}

Same idea, now with etoolbox instead of 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}

The output has Springer no more:

Output

  • Seems like this trick could be useful in many other contexts, too. What do you think of the patching vs editing the style definition directly, as proposed by @Jubobs? – ako Jan 11 '14 at 21:37
  • 1
    @ako Well, Paulo's patch is more economical in terms of lines of code than my redefinition is. In practice, it's best to apply a patch, if possible. – jub0bs Jan 11 '14 at 22:45
  • Is that assessment because you leave the actual style intact? – ako Jan 11 '14 at 23:02
  • @ako: the idea behind my code and Jubobs' is basically the same, we modify a specific part of the class at runtime. At the end of the day, I had to know where should I apply the patch, which is covered in Jubobs' answer. :) – Paulo Cereda Jan 11 '14 at 23:21
5

You can just grab the definition of \@maketitle from the class file and comment out the relevant lines.

enter image description here

\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}
  • Sweet! I was looking for this in the template but had missed it. – ako Jan 11 '14 at 21:36
  • Splendid ! I always knew that the trick is somewhere in svmono.cls file - but was not able to point to the problem ! – Arkapravo Apr 11 '16 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.