/[volute]/trunk/projects/time-domain/time-series/time-series-cube/ivoa-note-1.0/ivoa.cls
ViewVC logotype

Contents of /trunk/projects/time-domain/time-series/time-series-cube/ivoa-note-1.0/ivoa.cls

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3864 - (show annotations)
Sun Feb 5 11:54:25 2017 UTC (3 years, 9 months ago) by jiri
File size: 11061 byte(s)
Time Series Cube DM version 1.0
1 \ProvidesClass{ivoa}
2 \LoadClassWithOptions{article}
3
4 \NeedsTeXFormat{LaTeX2e}
5
6 \RequirePackage{calc}
7 \RequirePackage{graphicx}
8 \RequirePackage{xcolor}
9 \RequirePackage{ifthen}
10 \RequirePackage{doc}
11 \RequirePackage{paralist}
12 \RequirePackage{url}
13 \RequirePackage[labelfont=it]{caption}
14 \RequirePackage[T1]{fontenc}
15 \RequirePackage[utf8]{inputenc}
16
17 \definecolor{ivoacolor}{rgb}{0.0,0.318,0.612}
18 \definecolor{linkcolor}{rgb}{0.318,0,0.318}
19
20 \RequirePackage[colorlinks,
21 linkcolor=linkcolor,
22 anchorcolor=linkcolor,
23 citecolor=linkcolor,
24 urlcolor=linkcolor,
25 breaklinks=true]{hyperref}
26
27 \RequirePackage{natbib}
28 \bibliographystyle{ivoatex/ivoa}
29
30 \renewcommand{\topfraction}{0.9}
31 \renewcommand{\bottomfraction}{0.7}
32 \renewcommand{\textfraction}{0.1}
33 \renewcommand{\floatpagefraction}{0.8}
34
35 \setlength{\parskip}{1pt plus 2pt}
36
37 \makeatletter
38
39 %%%%%%%%%%%%%%%%%%% Metadata definition macros
40
41 \newcommand{\ivoagroup}[1]{\def\ivo@group{#1}}
42
43 % these are accumulators for sequences
44 \def\previ@usversions{}
45 \def\@uthors{}
46 \def\@ditors{}
47
48 \renewcommand{\author}[2][0]{%
49 \ifthenelse{\equal{\@uthors}{}}{}
50 {\g@addto@macro\@uthors{, }}
51 \ifthenelse{\equal{#1}{0}}
52 {\g@addto@macro\@uthors{#2}}
53 {\g@addto@macro\@uthors{\href{#1}{#2}}}}
54 \newcommand{\editor}[2][0]{%
55 \ifthenelse{\equal{\@ditors}{}}{}
56 {\g@addto@macro\@ditors{, }}
57 \ifthenelse{\equal{#1}{0}}
58 {\g@addto@macro\@ditors{#2}}
59 {\g@addto@macro\@ditors{\href{#1}{#2}}}}
60 \newcommand{\previousversion}[2][0]{
61 \ifthenelse{\equal{#1}{0}}
62 {\g@addto@macro\previ@usversions{\item #2}}
63 {\g@addto@macro\previ@usversions{\item \href{#1}{#2}}}}
64
65 \def\vcsR@vision{unknown}
66 \def\vcsD@te{unknown}
67 \def\vcs@RL{unknown}
68 \newcommand{\vcsrevision}[1]{\gdef\vcsR@vision{#1}}
69 \newcommand{\vcsdate}[1]{\gdef\vcsD@te{#1}}
70 \newcommand{\vcsurl}[1]{\gdef\vcs@RL{#1}}
71
72 \def\SVN$#1: #2 ${%
73 \ifthenelse{\equal{#1}{Date}}
74 {\vcsdate{#2}}{%
75 \ifthenelse{\equal{#1}{Rev}}
76 {\vcsrevision{#2}}{%
77 \ifthenelse{\equal{#1}{URL}}
78 {\vcsurl{#2}}{%
79 \message{Invalid SVN key /#1/}}
80 }}}
81
82 %%%%%%%%%%%%%%%%%% Tools for formatting the titlepage
83
84 \newcommand*\bigdescriptionlabel[1]{%
85 \parbox[b]{\labelwidth}{\makebox[0pt][l]{\color{ivoacolor}#1}\\\mbox{}}}
86 \newenvironment{bigdescription}%
87 {\begin{list}{}{%
88 \setlength{\leftmargin}{4em}
89 \setlength{\labelwidth}{4em}
90 \setlength{\labelsep}{0pt}
91 \setlength{\listparindent}{0pt}
92 \setlength{\itemsep}{0pt}
93 \let\makelabel\bigdescriptionlabel}
94 \let\term\item
95 }{%
96 \end{list}}
97
98 \newcommand*\longtermslabel[1]{%
99 \parbox[b]{\labelwidth}{\makebox[0pt][l]{#1}\\\mbox{}}}
100 \newenvironment{longtermsdescription}%
101 {\begin{list}{}{%
102 \setlength{\leftmargin}{4em}
103 \setlength{\labelwidth}{4em}
104 \setlength{\labelsep}{0pt}
105 \setlength{\listparindent}{0pt}
106 \setlength{\itemsep}{3pt}
107 \let\makelabel\longtermslabel}
108 \let\term\item
109 }{%
110 \end{list}}
111
112 \newcommand\titlehe@d[1]{\bigbreak{\noindent
113 \Large\color{ivoacolor}\sffamily\bfseries #1}\nobreak\par\nobreak}
114
115 \renewcommand\maketitle{
116 \let\footnotesize\small
117 \let\footnoterule\relax
118 \let \footnote \thanks
119 \mbox{}
120 \vskip -2cm
121 \noindent\mbox{%
122 \includegraphics[width=6cm]{ivoatex/IVOA.jpg}%
123 \raisebox{1.5cm}{\parbox{5cm}{
124 \Large\color{ivoacolor}\textsl{\textsf{\textbf{I}nternational}} \\
125 \Large\color{ivoacolor}\quad\textsl{\textsf{\textbf{V}irtual}} \\
126 \Large\color{ivoacolor}\quad\textsl{\textsf{\textbf{O}bservatory}} \\
127 \Large\color{ivoacolor}\textsl{\textsf{\textbf{A}lliance}}}}\hfil}
128
129 \vskip 1.4cm
130 \begin{sloppypar}\raggedright
131 \LARGE\color{ivoacolor}\sffamily\bfseries \@title\par
132 \end{sloppypar}
133
134 \bigskip
135 \noindent{\LARGE\color{ivoacolor}\sffamily\bfseries
136 Version \ivoaDocversion}
137 \medskip
138 \titlehe@d{\expandedDoctype{\ivoaDoctype} \ivoaDocdate}%
139
140
141 \begin{bigdescription}
142 \item[Working group]
143 \ivo@group
144
145 \item[This version]
146 \currentDocURL
147
148 \item[Latest version]
149 \latestDocURL
150
151 \item[Previous versions]
152 \begin{compactenum}[]
153 \previ@usversions
154 \end{compactenum}
155
156 \item[Author(s)]
157 \begin{compactenum}[]
158 \@uthors
159 \end{compactenum}
160
161 \item[Editor(s)]
162 \begin{compactenum}[]
163 \@ditors
164 \end{compactenum}
165
166 \ifthenelse{\equal{\vcsR@vision}{unknown}}{\relax}{
167 \item[Version Control]
168 Revision \vcsR@vision
169 \ifthenelse{\equal{\vcsD@te}{unknown}}{\relax}{,
170 \vcsD@te}
171 \ifthenelse{\equal{\vcs@RL}{unknown}}{\relax}
172 {\\\strut\tiny\url{\vcs@RL}}}
173
174 \end{bigdescription}
175 \@thanks
176 \vfill\null
177 \setcounter{footnote}{0}%
178 }
179
180
181
182 \renewenvironment{abstract}{%
183 \thispagestyle{empty}
184 \maketitle
185 \@beginparpenalty\@lowpenalty
186 \titlehe@d{\abstractname}
187 \medskip
188 \@endparpenalty\@M}
189 {\par
190 \bigskip
191 \titlehe@d{Status of This Document}
192
193 \medskip
194 \docstatusDeclaration{\ivoaDoctype}
195 \tableofcontents}
196
197 \newenvironment{generated}{%
198 \list{}{\rightmargin 0mm\leftmargin 5mm}\item[]}
199 {\endlist}
200
201 \newcommand\expandedDoctype[1] % "Proposed Recommendation" for PR and such
202 {\ifthenelse{\equal{#1}{NOTE}}
203 {IVOA Note}
204 {\ifthenelse{\equal{#1}{WD}}
205 {IVOA Working Draft}
206 {\ifthenelse{\equal{#1}{PR}}
207 {IVOA Proposed Recommendation}
208 {\ifthenelse{\equal{#1}{REC}}
209 {IVOA Recommendation}
210 {\ifthenelse{\equal{#1}{PEN}}
211 {Proposed Endorsed Note}
212 {\ifthenelse{\equal{#1}{EN}}
213 {Endorsed Note}
214 {UNKNOWN DOCUMENT (fix DOCTYPE)}}}}}}}
215
216 \newcommand\docstatusDeclaration[1]
217 {\ifthenelse{\equal{#1}{NOTE}}
218 {This is an IVOA Note expressing suggestions from and
219 opinions of the authors. It is intended to share best
220 practices, possible approaches, or other perspectives on
221 interoperability with the Virtual Observatory. It should
222 not be referenced or otherwise interpreted as a standard
223 specification.}
224 {\ifthenelse{\equal{#1}{WD}}
225 {This is an IVOA Working Draft for review by IVOA members
226 and other interested parties. It is a draft document and
227 may be updated, replaced, or obsoleted by other documents
228 at any time. It is inappropriate to use IVOA Working Drafts
229 as reference materials or to cite them as other than ``work
230 in progress''.}
231 {\ifthenelse{\equal{#1}{PR}}
232 {This is an IVOA Proposed Recommendation made available for
233 public review. It is appropriate to reference this document
234 only as a recommended standard that is under review and
235 which may be changed before it is accepted as a full
236 Recommendation.}
237 {\ifthenelse{\equal{#1}{PEN}}
238 {This is an IVOA Proposed Endorsed Note for review by IVOA
239 members and other interested parties. It is appropriate to
240 reference this document only as a Proposed Endorsed Note that
241 is under review and may change before it is endorsed or may
242 not be endorsed.
243 }
244 {\ifthenelse{\equal{#1}{EN}}
245 {This document is an IVOA Endorsed Note. It has been reviewed and endorsed
246 by the IVOA Technical Coordination Group as a stable, citable document
247 which constitutes valuable information for the IVOA community and
248 beyond.
249 }
250 {\ifthenelse{\equal{#1}{REC}}
251 {This document has been reviewed by IVOA Members and other
252 interested parties, and has been endorsed by the IVOA
253 Executive Committee as an IVOA Recommendation. It is a
254 stable document and may be used as reference material or
255 cited as a normative reference from another document.
256 IVOA's role in making the Recommendation is to draw
257 attention to the specification and to promote its
258 widespread deployment. This enhances the functionality and
259 interoperability inside the Astronomical Community.}
260 {UNKNOWN DOCUMENT (fix DOCTYPE)}}}}}}\par
261 A list of current IVOA Recommendations and other technical documents
262 can be found at \href{http://www.ivoa.net/Documents/
263 }{http://www.ivoa.net/Documents/}.}
264
265
266 \newcommand\currentDocURL % URL of this document's landing page
267 {\href{http://www.ivoa.net/documents/\ivoaDocname/\ivoaDocdatecode}
268 {http://www.ivoa.net/documents/\ivoaDocname/\ivoaDocdatecode}}
269 \newcommand\latestDocURL
270 % URL of a potential successor to the document's landing page
271 {\href{http://www.ivoa.net/documents/\ivoaDocname}
272 {http://www.ivoa.net/documents/\ivoaDocname}}
273
274
275 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Styling various item
276
277 \renewcommand\section{\@startsection {section}{1}{\z@}%
278 {-3.5ex \@plus -1ex \@minus -.2ex}%
279 {2.3ex \@plus.2ex}%
280 {\raggedright\normalfont\Large
281 \color{ivoacolor}\bfseries\sffamily}}
282 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
283 {-3.25ex\@plus -1ex \@minus -.2ex}%
284 {1.5ex \@plus .2ex}%
285 {\raggedright\normalfont\large
286 \color{ivoacolor}\bfseries\sffamily}}
287 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
288 {-3.25ex\@plus -1ex \@minus -.2ex}%
289 {1.5ex \@plus .2ex}%
290 {\normalfont\normalsize
291 \color{ivoacolor}\bfseries\sffamily}}
292 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
293 {3.25ex \@plus1ex \@minus.2ex}%
294 {-1em}%
295 {\normalfont\normalsize
296 \color{ivoacolor}\bfseries\sffamily}}
297 \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
298 {3.25ex \@plus1ex \@minus .2ex}%
299 {-1em}%
300 {\normalfont\normalsize\bfseries}}
301
302
303 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Various utilities for writing IVOA docs
304
305 \newenvironment{admonition}[1]{ % a simple admonition box
306 \begin{table} %% TBD: use a different sort of insertion env?
307 \hskip -0.75cm
308 \begin{minipage}[r]{0.75\columnwidth}%
309 {\color{lightgray}\hrule}
310 \medskip
311 \hfil
312 \begin{minipage}[c]{0.9\columnwidth}
313 \small
314 \makebox[\columnwidth][l]{\sffamily\bfseries\color{ivoacolor}#1}%
315 \par\smallskip
316 \noindent\raggedright\ignorespaces
317 }%
318 {%
319 \end{minipage}
320 \hfil
321 \medskip
322 {\color{lightgray}\hrule}
323 \end{minipage}%
324 \end{table}
325 }%
326
327
328 \newenvironment{inlinetable}{\vskip 1ex\vfil\penalty8000\vfilneg%
329 \hbox to\hsize\bgroup\hss}
330 {\hss\egroup\vspace{8pt}}
331
332 % customcss only relevant for tth output, not LaTeX
333 \newcommand{\customcss}[1]{\relax}
334
335 \newcommand{\xmlel}[1]{{\ttfamily\itshape #1}}
336 \newcommand{\vorent}[1]{\textsc{#1}}
337
338 \newcommand{\sptablerule}{\noalign{\vspace{2pt}}\hline\noalign{\vspace{2pt}}}
339
340 \newcommand{\ivoatex}{\mbox{\textsc{Ivoa}\TeX}}
341
342 \chardef\dquote'042
343
344 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Changing LaTeX defaults
345
346 \renewcommand*\descriptionlabel[1]
347 {\hspace{\labelsep}\itshape #1}
348
349 \makeatother
350
351 \input ivoatexmeta.tex

Properties

Name Value
svn:executable *

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26