X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/3ee93febf0259342d006f090c9b1d8a1468e87b0..440074ec4ed1c1a192505952b05bea27b3372498:/myclass.cls diff --git a/myclass.cls b/myclass.cls new file mode 100644 index 0000000..c77bc96 --- /dev/null +++ b/myclass.cls @@ -0,0 +1,39 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{myclass}[] + +%% Just use the original class and pass the options +\LoadClassWithOptions{report} + +\makeatletter + +% +% Customize the titlepage: remove the date, place the publisher name, and +% load a specific file for the verso page, containing some legal notices +% +\def\maketitle{% + \titlerecto% + \titleverso} + +\def\titlerecto{\begin{titlepage}% + \null\vfil + \vskip 160\p@ + \begin{center}% + {\LARGE \@title \par}% + \vskip 3em% + {\Large + \lineskip .75em% + \begin{tabular}[t]{c}% + \@author + \end{tabular}\par}% + \vskip 20em% + {\large \DBKpublishername \par} + \vskip .75em% + {\large \DBKpublisheraddress \par}% + \end{center}\par + \vfil\null + \end{titlepage}}% + +\def\titleverso{% + \def\titlepagefile{titlepg.input.tex} + \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{} +}%