~ubuntu-branches/debian/sid/simpleitk/sid

« back to all changes in this revision

Viewing changes to Wrapping/R/Packaging/SimpleITK/vignettes/InsightArticle.cls

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant
  • Date: 2017-11-02 08:49:18 UTC
  • Revision ID: package-import@ubuntu.com-20171102084918-7hs09ih668xq87ej
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%
 
2
% InsightArticle.cls for the Insight Journal
 
3
%
 
4
 
 
5
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
6
\ProvidesClass{InsightArticle}
 
7
             [1998/02/25 Document class (Insight Article)]
 
8
 
 
9
%
 
10
%  Change this to say a4paper instead of letterpaper if you want A4.  These
 
11
%  are the latex defaults.
 
12
%
 
13
\newcommand{\itk@paper}{letterpaper}
 
14
\newcommand{\itk@ptsize}{11pt}
 
15
 
 
16
 
 
17
%
 
18
%  Commands for image and figure captions
 
19
%
 
20
\newcommand{\itkcaption}[2][]{\caption[{#1}]{\small \textsf{{#2}} \normalsize}}
 
21
\newcommand{\itkpiccaption}[2][]{\piccaption[{#1}]{\small \textsf{{#2}} \normalsize}}
 
22
 
 
23
 
 
24
%  These set up the fonts for the documents.
 
25
%
 
26
%  The "times" package makes the default font the PostScript Times
 
27
%  font, which makes for smaller PostScript and a font that more people
 
28
%  like.
 
29
%
 
30
\RequirePackage{times}\typeout{Using Times instead of Computer Modern.}
 
31
 
 
32
 
 
33
% Change the options here to get a different set of basic options,  This
 
34
% is where to add things like "a4paper" or "10pt".
 
35
%
 
36
\LoadClass[\itk@paper,\itk@ptsize]{article}
 
37
 
 
38
 
 
39
 
 
40
\setcounter{secnumdepth}{1}
 
41
 
 
42
 
 
43
 
 
44
% Optional packages:
 
45
%
 
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
 
49
% distribution.
 
50
%
 
51
% The "fancyhdr" package makes nicer page footers reasonable to
 
52
% implement, and is used to put the chapter and section information in
 
53
% the footers.
 
54
%
 
55
\RequirePackage{fancyhdr}\typeout{Using fancier footers than usual.}
 
56
 
 
57
 
 
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}
 
61
 
 
62
 
 
63
% Required package:
 
64
%
 
65
% This gives us all the Insight-specific markup that we really want.
 
66
% This should come last.  Do not change this.
 
67
%
 
68
\RequirePackage{InsightJournal}
 
69
 
 
70
% support for module synopsis sections:
 
71
\newcommand{\itk@ModSynopsisFilename}{\jobname.syn}
 
72
 
 
73
 
 
74
% need to do one of these....
 
75
\newcommand{\itk@doHorizontalRule}{\rule{\textwidth}{1pt}}
 
76
 
 
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}}}
 
80
 
 
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}}}
 
84
 
 
85
% Define command for the standard comment introducing classes with similar functionalities
 
86
\newcommand{\relatedClasses}{
 
87
\textbf{The following classes provide similar functionality:}}
 
88
 
 
89
 
 
90
% Change the title page to look a bit better, and fit in with the
 
91
% fncychap ``Bjarne'' style a bit better.
 
92
%
 
93
\renewcommand{\maketitle}{
 
94
  \itk@doHorizontalRule
 
95
  \ifpdf
 
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.
 
100
      \def\\{, }
 
101
        \pdfinfo{
 
102
          /Author (\@author)
 
103
          /Title (\@title)
 
104
        }
 
105
    }}
 
106
  \else
 
107
     % else nothing
 
108
  \fi
 
109
  \begin{flushright}
 
110
    {\rm\Huge\itk@HeaderFamily \@title} \par
 
111
    {\em\large\itk@HeaderFamily \itk@release} \par
 
112
    \vspace{25pt}
 
113
    {\Large\itk@HeaderFamily \@author} \par
 
114
    \vspace{25pt}
 
115
    \@date \par
 
116
    \itk@authoraddress \par
 
117
  \end{flushright}
 
118
  \@thanks
 
119
  \setcounter{footnote}{0}
 
120
  \let\thanks\relax\let\maketitle\relax
 
121
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}
 
122
}
 
123
 
 
124
 
 
125
\let\itk@OldTableofcontents=\tableofcontents
 
126
\renewcommand{\tableofcontents}{
 
127
  \begingroup
 
128
    \parskip = 0mm
 
129
    \itk@OldTableofcontents
 
130
  \endgroup
 
131
  \itk@doHorizontalRule
 
132
  \vspace{12pt}
 
133
  \itk@doing@page@targetstrue
 
134
}
 
135
 
 
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.
 
139
%
 
140
\let\itk@OldTheindex=\theindex
 
141
\renewcommand{\theindex}{
 
142
  \clearpage
 
143
  \itk@OldTheindex
 
144
  \addcontentsline{toc}{section}{\indexname}
 
145
}
 
146
 
 
147
\@ifundefined{fancyhf}{
 
148
  \pagestyle{plain}}{
 
149
  \pagestyle{normal}}           % start this way; change for
 
150
\pagenumbering{arabic}          % ToC & chapters
 
151
\setcounter{secnumdepth}{2}
 
152
 
 
153
\thispagestyle{empty}