2
% InsightArticle.cls for the Insight Journal
5
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
6
\ProvidesClass{InsightArticle}
7
[1998/02/25 Document class (Insight Article)]
10
% Change this to say a4paper instead of letterpaper if you want A4. These
11
% are the latex defaults.
13
\newcommand{\itk@paper}{letterpaper}
14
\newcommand{\itk@ptsize}{11pt}
18
% Commands for image and figure captions
20
\newcommand{\itkcaption}[2][]{\caption[{#1}]{\small \textsf{{#2}} \normalsize}}
21
\newcommand{\itkpiccaption}[2][]{\piccaption[{#1}]{\small \textsf{{#2}} \normalsize}}
24
% These set up the fonts for the documents.
26
% The "times" package makes the default font the PostScript Times
27
% font, which makes for smaller PostScript and a font that more people
30
\RequirePackage{times}\typeout{Using Times instead of Computer Modern.}
33
% Change the options here to get a different set of basic options, This
34
% is where to add things like "a4paper" or "10pt".
36
\LoadClass[\itk@paper,\itk@ptsize]{article}
40
\setcounter{secnumdepth}{1}
46
% If processing of these documents fails at your TeX installation,
47
% these may be commented out (independently) to make things work.
48
% These are both supplied with the current version of the teTeX
51
% The "fancyhdr" package makes nicer page footers reasonable to
52
% implement, and is used to put the chapter and section information in
55
\RequirePackage{fancyhdr}\typeout{Using fancier footers than usual.}
58
% Adding the package ifpdf in order to deal with the cases where
59
% pdflatex is used instead of latex.
60
\RequirePackage{ifpdf}\typeout{Using ifpdf for the template}
65
% This gives us all the Insight-specific markup that we really want.
66
% This should come last. Do not change this.
68
\RequirePackage{InsightJournal}
70
% support for module synopsis sections:
71
\newcommand{\itk@ModSynopsisFilename}{\jobname.syn}
74
% need to do one of these....
75
\newcommand{\itk@doHorizontalRule}{\rule{\textwidth}{1pt}}
77
% Define command to make reference to on-line Doxygen documentation
78
\newcommand{\doxygen}[1]{
79
\href{https://www.itk.org/Doxygen/html/classitk_1_1#1.html}{\code{itk::#1}}}
81
% Define command to make reference to on-line Doxygen documentation
82
\newcommand{\subdoxygen}[2]{
83
\href{https://www.itk.org/Doxygen/html/classitk_1_1#1_1_1#2.html}{\code{itk::#1::#2}}}
85
% Define command for the standard comment introducing classes with similar functionalities
86
\newcommand{\relatedClasses}{
87
\textbf{The following classes provide similar functionality:}}
90
% Change the title page to look a bit better, and fit in with the
91
% fncychap ``Bjarne'' style a bit better.
93
\renewcommand{\maketitle}{
96
\@ifundefined{pdfinfo}{}{{
97
% This \def is required to deal with multi-line authors; it
98
% changes \\ to ', ' (comma-space), making it pass muster for
99
% generating document info in the PDF file.
110
{\rm\Huge\itk@HeaderFamily \@title} \par
111
{\em\large\itk@HeaderFamily \itk@release} \par
113
{\Large\itk@HeaderFamily \@author} \par
116
\itk@authoraddress \par
119
\setcounter{footnote}{0}
120
\let\thanks\relax\let\maketitle\relax
121
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
125
\let\itk@OldTableofcontents=\tableofcontents
126
\renewcommand{\tableofcontents}{
129
\itk@OldTableofcontents
131
\itk@doHorizontalRule
133
\itk@doing@page@targetstrue
136
% Fix the theindex environment to add an entry to the Table of
137
% Contents; this is much nicer than just having to jump to the end of
138
% the book and flip around, especially with multiple indexes.
140
\let\itk@OldTheindex=\theindex
141
\renewcommand{\theindex}{
144
\addcontentsline{toc}{section}{\indexname}
147
\@ifundefined{fancyhf}{
149
\pagestyle{normal}} % start this way; change for
150
\pagenumbering{arabic} % ToC & chapters
151
\setcounter{secnumdepth}{2}
153
\thispagestyle{empty}