1: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2: % ADASSCONF.STY -- ADASS Conference Proceedings Style
3: % Version 16.0 (2005)
4: % Updated ADASS XV (2005) by Carlos Gabriel
5: % Updated ADASS XIV (2004) by Patrick Shopbell
6: % Updated ADASS XIII (2003) by Francois Ochsenbein
7: % Updated ADASS XII (2002) by Harry Payne
8: % Based on Version 12.0 (1999) for ADASS XI
9: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10: %
11: % IS THIS FILE BEING DISPLAYED IN YOUR WEB BROWSER WINDOW?
12: %
13: % With the most common browsers, you can save the file to disk by
14: % choosing "Save As..." from the "File" menu. This will bring up a
15: % file chooser window.
16: %
17: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18: %
19: % ATTENTION DEVELOPERS: Be sure to update the version number
20: % (\revtex@ver value) after making changes to this file. Use
21: % the convention of matching the major revision number to the
22: % ADASS conference number.
23: %
24: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25: %
26: % ADASS paper authors use LaTeX 2.09 to format papers; however, this
27: % style file has some LaTeX 2e extensions (in included html.sty).
28: %
29: \newif\iflatextwo@nine \latextwo@ninefalse
30: \ifx\if@compatibility\undefined \latextwo@ninetrue \fi
31: \if@compatibility \latextwo@ninetrue \fi
32:
33: \newlinechar=`\^^J
34:
35: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36: %
37: % This section was adapted from the version of aspconf.sty modified
38: % for ADASS IX. Changes were made to \revtex@ver, \revtex@date, \cpr@year,
39: % \vol@title, \vol@author and the definition of \adassix.
40: %
41: % dmehring making further edits on 09mar99. Changing full name of
42: % eds. to initials for all \adass* macros
43: %
44: % rev. 10.0 by fap on 31 Mar 2000, modified from ADASS IX version
45: % rev. 10.1 by fap on 4/3/00 to add Harry Payne as editor of ADASS X
46: %
47: % revised by dab on 11/10/01 for ADASS XI
48: % rev. 12.0 by hep on 09/27/02
49:
50: \def\revtex@ver{16.0} % Version number of this file.
51: \def\revtex@date{13 Oct 2005}
52: \def\revtex@org{PASP}
53: \def\revtex@jnl{}
54: \def\revtex@genre{conference proceedings}
55: \typeout{\revtex@org\space
56: \ifx\revtex@jnl\@empty\else\revtex@jnl\space\fi
57: \revtex@genre\space substyle, v\revtex@ver\space <\revtex@date>.}
58: \def\revtex@pageid{\xdef\@thefnmark{\null}
59: \@footnotetext{This \revtex@genre\space was prepared with the
60: \revtex@org\space \revtex@jnl\space Rev\TeX\ macros v\revtex@ver.}}
61: \ifnum\@ptsize<1
62: \typeout{Warning: Undersize manuscript font (1\@ptsize\space pts).
63: Use 11pt documentstyle option.}
64: \fi
65: \def\ps@paspcstitle{\let\@mkboth\@gobbletwo
66: \def\@oddhead{\null{\footnotesize\it\@slug}\hfil}
67: \def\@oddfoot{\rm\hfil\thepage\hfil}
68: \let\@evenhead\@oddhead\let\@evenfoot\@oddfoot
69: }
70: \def\ps@pasprptitle{\let\@mkboth\@gobbletwo
71: \def\@oddhead{\null{\footnotesize\it\@slug}\hfil}
72: \def\@oddfoot{\vbox to 1.5cm{\vfill%
73: \hbox to \textwidth{\rm\hfil\thepage\hfil}
74: \hbox{\pasp@copyright\hfil}}}
75: \let\@evenhead\@oddhead\let\@evenfoot\@oddfoot
76: }
77: \def\ps@myheadings{\let\@mkboth\@gobbletwo
78: \def\@oddhead{\hbox{}\hfil\sl\rightmark\hskip 1in\rm\thepage}%
79: \def\@oddfoot{}%
80: \def\@evenhead{\rm\thepage\hskip 1in\sl\leftmark\hfil\hbox{}}%
81: \def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}
82: \def\@leftmark#1#2{\sec@upcase{#1}}
83: \def\@rightmark#1#2{\sec@upcase{#2}}
84: \textwidth=5.25in
85: \textheight=8.3in
86: \headheight=18pt
87: \headsep=18pt
88: \topmargin=0in
89: \footskip=.25in
90: \oddsidemargin=1.37in
91: \evensidemargin=1.37in
92: \parindent=2em
93: \parskip=.1ex
94: \def\@singleleading{0.9}
95: \def\@doubleleading{1.6}
96: \def\baselinestretch{\@singleleading}
97: \def\tightenlines{\def\baselinestretch{\@singleleading}}
98: \def\loosenlines{\def\baselinestretch{\@doubleleading}}
99: \clubpenalty\@M
100: \widowpenalty\@M
101: \def\@journalname{ASP Conference Series}
102: \def\cpr@holder{Astronomical Society of the Pacific}
103: %to be changed when volume number known
104: \def\@jourvol{XXX}
105: \def\cpr@year{2005}
106: \def\vol@title{Astronomical Data Analysis Software and Systems XV
107: %%%% THIS MODIFICATION ADDS THE PAPER IDENTIFICATION
108: \makebox[0.33\textwidth][r]{{\bf\thepaperID}}
109: }
110: \def\vol@author{C.~Gabriel, C.~Arviset, D.~Ponz and E.~Solano, eds.}
111: \let\journalid=\@gobbletwo
112: \let\articleid=\@gobbletwo
113: \let\received=\@gobble
114: \let\accepted=\@gobble
115: \def\@slug{{\tabcolsep\z@\begin{tabular}[t]{l}\vol@title\\
116: \@journalname, Vol.\ \@jourvol, \cpr@year\\
117: \vol@author
118: \end{tabular}}
119: }
120: \def\pasp@copyright{\copyright\ Copyright \cpr@year\ \cpr@holder.
121: All rights reserved.}
122: \def\paspconf@frontindent{.45in}
123: \def\pasp@titletocentry#1{\relax}
124: \def\reset@rticle{\relax}
125: \def\title#1{\reset@rticle\pasp@titletocentry{#1}\vspace*{1.0\baselineskip}
126: \@tempdima\textwidth \advance\@tempdima by-\paspconf@frontindent
127: \hfill
128: \parbox{\@tempdima}
129: {\pretolerance=10000\raggedright\large\bf\sec@upcase{#1}}\par
130: \vspace*{1\baselineskip}\thispagestyle{title}\def\rightmark{#1}}
131: \def\author#1{\vspace*{1\baselineskip}
132: \@tempdima\textwidth \advance\@tempdima by-\paspconf@frontindent
133: \hfill
134: \parbox{\@tempdima}
135: {\pretolerance=10000\raggedright{#1}}\par}
136: \def\affil#1{\vspace*{.5\baselineskip}
137: \@tempdima\textwidth \advance\@tempdima by-\paspconf@frontindent
138: \hfill
139: \parbox{\@tempdima}
140: {\pretolerance=10000\raggedright{\it #1}}\par}
141: \def\altaffilmark#1{$^{#1}$}
142: \def\altaffiltext#1#2{\footnotetext[#1]{#2}}
143: \def\abstract{\vspace*{1.3\baselineskip}\bgroup\leftskip\paspconf@frontindent
144: \noindent{\bf\sec@upcase{Abstract.}}\hskip 1em}
145: \def\endabstract{\par\egroup\vspace*{1.4\baselineskip}}
146: \skip\footins 4ex plus 1ex minus .5ex
147: \footnotesep 3ex
148: \long\def\@makefntext#1{\noindent\hbox to\z@{\hss$^{\@thefnmark}$}#1}
149: \def\tablenotemark#1{\rlap{$^{#1}$}}
150: \def\tablenotetext#1#2{
151: \@temptokena={\vspace{.5ex}{\noindent\llap{$^{#1}$}#2}\par}
152: \@temptokenb=\expandafter{\tblnote@list}
153: \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
154: \def\spewtablenotes{
155: \ifx\tblnote@list\@empty
156: \else
157: \let\@temptokena=\tblnote@list
158: \gdef\tblnote@list{\@empty}
159: \vspace{4.5ex}
160: \footnoterule
161: \vspace{.5ex}
162: {\footnotesize\@temptokena}
163: \fi}
164: \newtoks\@temptokenb
165: \def\tblnote@list{}
166: \def\endtable{\spewtablenotes\end@float}
167: \@namedef{endtable*}{\spewtablenotes\end@dblfloat}
168: \let\tableline=\hline
169: \def\thefigure{\@arabic\c@figure}
170: \def\fnum@figure{Figure \thefigure.}
171: \def\thetable{\@arabic\c@table}
172: \def\fnum@table{Table \thetable.}
173: \long\def\@makecaption#1#2{
174: \vskip 10pt
175: \setbox\@tempboxa\hbox{#1\hskip 1.5em #2}
176: \let\@tempdima=\hsize \advance\@tempdima by -2em
177: \ifdim \wd\@tempboxa >\@tempdima
178: {\leftskip 2em
179: #1\hskip 1.5em #2\par}
180: \else
181: \hbox to\hsize{\hskip 2em\box\@tempboxa\hfil}
182: \fi}
183: \def\fps@figure{tbp}
184: \def\fps@table{htbp}
185: \let\keywords=\@gobble
186: \let\subjectheadings=\@gobble
187: \setcounter{secnumdepth}{2}
188: \def\upper{\def\sec@upcase##1{\uppercase{##1}}}
189: \def\sec@upcase#1{\relax#1}
190: \def\section{\@startsection {section}{1}{\z@}{-4.2ex plus -1ex minus
191: -.2ex}{2.2ex plus .2ex}{\normalsize\bf}}
192: \def\subsection{\@startsection{subsection}{2}{\z@}{-2.2ex plus -1ex minus
193: -.2ex}{1.1ex plus .2ex}{\normalsize\bf}}
194:
195: \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.2ex plus
196: -1ex minus -.2ex}{-1.2em}{\normalsize\it}}
197: \def\thesection{\@arabic\c@section.}
198: \def\thesubsection{\thesection\@arabic\c@subsection.}
199: \def\thesubsubsection{\thesubsection\@arabic\c@subsubsection.}
200: \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
201: \def\@svsec{}\else
202: \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em }\fi
203: \@tempskipa #5\relax
204: \ifdim \@tempskipa>\z@
205: \begingroup #6\relax
206: \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M \sec@upcase{#8}\par}%
207: \endgroup
208: \csname #1mark\endcsname{#7}\addcontentsline
209: {toc}{#1}{\ifnum #2>\c@secnumdepth \else
210: \protect\numberline{\csname the#1\endcsname}\fi
211: #7}\else
212: \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
213: {#7}\addcontentsline
214: {toc}{#1}{\ifnum #2>\c@secnumdepth \else
215: \protect\numberline{\csname the#1\endcsname}\fi
216: #7}}\fi
217: \@xsect{#5}}
218: \def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
219: \ifdim \@tempskipa>\z@
220: \begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M \sec@upcase{#5}\par}\endgroup
221: \else \def\@svsechd{#4\hskip #1\relax #5}\fi
222: \@xsect{#3}}
223: \def\acknowledgments{\@startsection{paragraph}{4}{1em}
224: {1ex plus .5ex minus .5ex}{-1em}{\bf}{\sec@upcase{Acknowledgments.}}}
225:
226: \let\acknowledgements=\acknowledgments
227: \def\qanda@heading{Discussion}
228: \newif\if@firstquestion \@firstquestiontrue
229: \newenvironment{question}[1]{\if@firstquestion
230: \section*{\qanda@heading}\global\@firstquestionfalse\fi
231: \par\vskip 1ex
232: \noindent{\it#1\/}:}{\par}
233: \newenvironment{answer}[1]{\par\vskip 1ex
234: \noindent{\it#1\/}:}{\par}
235: \renewcommand\theequation{\@arabic\c@equation}
236: \def\mathwithsecnums{
237: \@newctr{equation}[section]
238: \renewcommand\theequation{\hbox{\normalsize\arabic{section}-\arabic{equation}}}}
239: \def\references{\section*{References}
240: \bgroup\parindent=0pt\parskip=.5ex
241: \def\refpar{\par\hangindent=3em\hangafter=1}}
242: \def\endreferences{\refpar\egroup}
243: \def\thebibliography{\section*{References}
244: \list{\null}{\leftmargin 3em\labelwidth 0pt\labelsep 0pt\itemindent -3em
245: \usecounter{enumi}}
246: \def\refpar{\relax}
247: \def\newblock{\hskip .11em plus .33em minus .07em}
248: \sloppy\clubpenalty4000\widowpenalty4000
249: \sfcode`\.=1000\relax}
250: \def\endthebibliography{\endlist}
251: \def\@biblabel#1{\relax}
252: \def\@cite#1#2{#1\if@tempswa , #2\fi}
253: \def\reference{\relax\refpar}
254: \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
255: \def\@citea{}\@cite{\@for\@citeb:=#2\do
256: {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
257: {b@\@citeb}{\@warning
258: {Citation `\@citeb' on page \thepage \space undefined}}%
259: {\csname b@\@citeb\endcsname}}}{#1}}
260: \let\jnl@style=\rm
261: \def\ref@jnl#1{{\jnl@style#1\/}}
262: \def\aj{\ref@jnl{AJ}}
263: \def\araa{\ref@jnl{ARA\&A}}
264: \def\apj{\ref@jnl{ApJ}}
265: \def\apjl{\ref@jnl{ApJ}}
266: \def\apjs{\ref@jnl{ApJS}}
267: \def\ao{\ref@jnl{Appl.Optics}}
268: \def\apss{\ref@jnl{Ap\&SS}}
269: \def\aap{\ref@jnl{A\&A}}
270: \def\aapr{\ref@jnl{A\&A~Rev.}}
271: \def\aaps{\ref@jnl{A\&AS}}
272: \def\azh{\ref@jnl{AZh}}
273: \def\baas{\ref@jnl{BAAS}}
274: \def\jrasc{\ref@jnl{JRASC}}
275: \def\memras{\ref@jnl{MmRAS}}
276: \def\mnras{\ref@jnl{MNRAS}}
277: \def\pra{\ref@jnl{Phys.\ Rev.\ A}}
278: \def\prb{\ref@jnl{Phys.\ Rev.\ B}}
279: \def\prc{\ref@jnl{Phys.\ Rev.\ C}}
280: \def\prd{\ref@jnl{Phys.\ Rev.\ D}}
281: \def\prl{\ref@jnl{Phys.\ Rev.\ Lett}}
282: \def\pasp{\ref@jnl{PASP}}
283: \def\pasj{\ref@jnl{PASJ}}
284: \def\qjras{\ref@jnl{QJRAS}}
285: \def\skytel{\ref@jnl{S\&T}}
286: \def\solphys{\ref@jnl{Solar~Phys.}}
287: \def\sovast{\ref@jnl{Soviet~Ast.}}
288: % Mehringer adding SPIE macro
289: \def\spie{\ref@jnl{in SPIE Proc., Vol.~}}
290: \def\ssr{\ref@jnl{Space~Sci.Rev.}}
291: \def\zap{\ref@jnl{ZAp}}
292: \let\astap=\aap
293: \let\apjlett=\apjl
294: \let\apjsupp=\apjs
295: % Use editor initials in place of full first names.
296: %%%%%%%%%%%%% ADASS Proceedings Macros
297: %%% Shorter text (FO Feb. 2004)
298: \def\adassxv{\ref@jnl{this volume}} % ADASS XV
299: \def\adassxiv{\ref@jnl{will be given at a later time}} % ADASS XIV
300: \def\adassxiii{\ref@jnl{in ASP Conf.~Ser., Vol.~314,
301: ADASS XII, % Astronomical Data Analysis Software and Systems XIII,
302: ed.~F.~Ochsenbein, M.~Allen, \& D.~Egret (San Francisco: ASP)}}
303: \def\adassxii{\ref@jnl{in ASP Conf.~Ser., Vol.~295,
304: ADASS XII, % Astronomical Data Analysis Software and Systems XII,
305: ed.~H.~E. Payne, R.~I. Jedrzejewski, \& R.~N. Hook (San Francisco: ASP)}}
306: \def\adassxi{\ref@jnl{in ASP Conf.~Ser., Vol.~281,
307: ADASS XI, % Astronomical Data Analysis Software and Systems XI,
308: ed.~D.~A. Bohlender, D.\ Durand, \& T.~H. Handley (San Francisco: ASP)}}
309: \def\adassx{\ref@jnl{in ASP Conf.~Ser., Vol.~238,
310: ADASS X, % Astronomical Data Analysis Software and Systems X,
311: ed.~F.~R. Harnden, Jr., F.~A. Primini, \& H.~E. Payne (San Francisco: ASP)}}
312: \def\adassix{\ref@jnl{in ASP Conf.~Ser., Vol.~216,
313: ADASS IX, % Astronomical Data Analysis Software and Systems IX,
314: ed.~N.\ Manset, C.\ Veillet, \& D.\ Crabtree (San Francisco: ASP)}}
315: \def\adassviii{\ref@jnl{in ASP Conf.~Ser., Vol.~172,
316: ADASS VIII, % Astronomical Data Analysis Software and Systems VIII,
317: ed.~D.~M.\ Mehringer, R.~L.\ Plante, \& D.~A.\ Roberts (San Francisco: ASP)}}
318: \def\adassvii{\ref@jnl{in ASP Conf.\ Ser., Vol.~145,
319: ADASS VII, % Astronomical Data Analysis Software and Systems VII,
320: ed.~R.\ Albrecht, R.~N.~Hook, \& H.~A.~Bus\-house (San Francisco: ASP)}} %% FO 22.04.04
321: \def\adassvi{\ref@jnl{in ASP Conf.\ Ser., Vol.~125,
322: ADASS VI, % Astronomical Data Analysis Software and Systems VI,
323: ed.~G.~Hunt \& H.~E.~Payne (San Francisco: ASP)}}
324: \def\adassv{\ref@jnl{in ASP Conf.\ Ser., Vol.~101,
325: ADASS V, % Astronomical Data Analysis Software and Systems V,
326: ed.~G.~H.\ Jacoby \& J.~Barnes (San Francisco: ASP)}}
327: \def\adassiv{\ref@jnl{in ASP Conf.\ Ser., Vol.~77,
328: ADASS IV, % Astronomical Data Analysis Software and Systems IV,
329: ed.~R.~A.~Shaw, H.~E.~Payne, \& J.~J.~E.~Hayes (San Francisco: ASP)}}
330: \def\adassiii{\ref@jnl{in ASP Conf.\ Ser., Vol.~61,
331: ADASS III, % Astronomical Data Analysis Software and Systems III,
332: ed.~D.~R.~Crabtree, R.~J.~Hanisch, \& J.~Barnes (San Francisco: ASP)}}
333: \def\adassii{\ref@jnl{in ASP Conf.\ Ser., Vol.~52,
334: ADASS II, % Astronomical Data Analysis Software and Systems II,
335: ed.~R.~J.~Hanisch, R.~J.~V.~Brissenden, \& J.~Barnes (San Francisco: ASP)}}
336: \def\adassi{\ref@jnl{in ASP Conf.\ Ser., Vol.~25,
337: ADASS I, % Astronomical Data Analysis Software and Systems I,
338: ed.~D.~M.~ Worrall, C.~Biemesderfer, \& J.~Barnes (San Francisco: ASP)}}
339: %%%%
340: %dmehring adding ibid macro 10mar99
341: \def\ibid{\rule[0.1cm]{1cm}{0.001cm}}
342: \def\deg{\hbox{$^\circ$}}
343: \def\sun{\hbox{$\odot$}}
344: \def\earth{\hbox{$\oplus$}}
345: \def\la{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$<$}}}}
346: \def\ga{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$>$}}}}
347: \def\sq{\hbox{\rlap{$\sqcap$}$\sqcup$}}
348: \def\arcmin{\hbox{$^\prime$}}
349: \def\arcsec{\hbox{$^{\prime\prime}$}}
350: \def\fd{\hbox{$.\!\!^{\rm d}$}}
351: \def\fh{\hbox{$.\!\!^{\rm h}$}}
352: \def\fm{\hbox{$.\!\!^{\rm m}$}}
353: \def\fs{\hbox{$.\!\!^{\rm s}$}}
354: \def\fdg{\hbox{$.\!\!^\circ$}}
355: \def\farcm{\hbox{$.\mkern-4mu^\prime$}}
356: \def\farcs{\hbox{$.\!\!^{\prime\prime}$}}
357: \def\fp{\hbox{$.\!\!^{\scriptscriptstyle\rm p}$}}
358: \def\micron{\hbox{$\mu$m}}
359: \def\onehalf{\hbox{$\,^1\!/_2$}}
360: \def\onethird{\hbox{$\,^1\!/_3$}}
361: \def\twothirds{\hbox{$\,^2\!/_3$}}
362: \def\onequarter{\hbox{$\,^1\!/_4$}}
363: \def\threequarters{\hbox{$\,^3\!/_4$}}
364: \def\ubvr{\hbox{$U\!BV\!R$}}
365: \def\ub{\hbox{$U\!-\!B$}}
366: \def\bv{\hbox{$B\!-\!V$}}
367: \def\vr{\hbox{$V\!-\!R$}}
368: \def\ur{\hbox{$U\!-\!R$}}
369: \newcount\lecurrentfam
370: \def\LaTeX{\lecurrentfam=\the\fam \leavevmode L\raise.42ex
371: \hbox{$\fam\lecurrentfam\scriptstyle\kern-.3em A$}\kern-.15em\TeX}
372:
373: \newbox\pt@box
374: \newdimen\pt@width
375: \newcount\pt@line
376: \newcount\pt@column
377: \newcount\pt@nlines
378: \newcount\pt@ncol
379: \newcount\pt@page
380: \def\colhead#1{\multicolumn{1}{c}{#1}\pt@addcol}
381: \newcommand\tabletypesize[1]{\def\pt@typesize{#1}}%
382: \def\pt@typesize{}%
383: \def\tablecolumns#1{\pt@column=#1\pt@ncol=#1\gdef\pt@addcol{\relax}}
384: \def\tablecaption#1{\gdef\pt@caption{#1}} \def\pt@caption{\relax}
385: \def\tablehead#1{\gdef\pt@head{\hline\hline\relax\\[-1.7ex]
386: #1\hskip\tabcolsep\\[.7ex]\hline\relax\\[-1.5ex]}} \def\pt@head{\relax}
387: \newif\if@pt@rot
388: \newcommand\rotate{\@pt@rottrue}%
389: \def\tabletail#1{\gdef\pt@tail{#1}} \def\pt@tail{\relax}
390: \def\tablewidth#1{\pt@width=#1} \pt@width\textwidth
391: \def\tableheadfrac#1{\gdef\pt@headfrac{#1}} \def\pt@headfrac{.1}
392:
393: \def\pt@calcnlines{%
394: \begingroup
395: \if@pt@rot\textheight\textwidth\fi
396: \pt@typesize%AO-type sizes in deluxetable
397: \@tempdima\pt@headfrac\textheight
398: \@tempdimb\textheight\advance\@tempdimb by-\@tempdima
399: \@tempdima\arraystretch\baselineskip
400: \divide\@tempdimb by\@tempdima
401: \global\pt@nlines\@tempdimb
402: \endgroup
403: }%
404:
405: \def\pt@tabular{\hbox \bgroup $\let\@acol\@ptabacol % $
406: \let\@classz\@tabclassz
407: \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
408:
409: \def\@ptabacol{\edef\@preamble{\@preamble \hskip \tabcolsep\tabskip\fill}}
410:
411:
412: \def\fnum@ptable{Table \thetable}
413: \def\fnum@ptablecont{Table \thetable---{\rm Continued}}
414:
415: \newdimen\pt@tmpcapwidth
416: \def\set@mkcaption{\long\def\@makecaption##1##2{\ifdim\pt@width>\z@%
417: \pt@tmpcapwidth\pt@width\else\pt@tmpcapwidth\textwidth\fi%
418: \center\parbox{\pt@tmpcapwidth}{\center\rm##1.\quad##2\endcenter}%
419: \endcenter}}
420: \def\set@mkcaptioncont{\long\def\@makecaption##1##2{
421: \center\rm##1\endcenter\vskip 2.5ex}}
422:
423: \newenvironment{deluxetable}[1]{\def\pt@format{\string#1}%
424: \set@tblnotetext\global\pt@ncol=0\global\pt@column=0\global\pt@page=1%
425: %\let\footnotesize=\footnotesave%
426: \def\pt@addcol{\global\advance\pt@ncol by\@ne}}%
427: {%
428: \pt@width\wd\pt@box\box\pt@box\spew@ptblnotes%
429: \typeout{Table \thetable\space has been set to width \the\pt@width}%
430: \endcenter\end@float%
431: \let\footnotesize=\normalsize}%
432:
433: \let\planotable=\deluxetable
434: \let\endplanotable=\enddeluxetable
435:
436: \def\startdata{\pt@line=0\pt@calcnlines%
437: \ifdim\pt@width>\z@\def\@halignto{to \pt@width}\else\def\@halignto{}\fi%
438: \let\fnum@table=\fnum@ptable\set@mkcaption%
439: \@float{table}\center\caption{\pt@caption}\leavevmode%
440: \setbox\pt@box=\pt@tabular{\pt@format}\pt@head}
441: \def\enddata{\crcr\noalign{\vskip .7ex}\hline\endtabular}
442:
443: \def\pt@nl{\global\advance\pt@line by\@ne%
444: \ifnum\pt@line=\pt@nlines%
445: \endtabular\pt@width\wd\pt@box\box\pt@box
446: \typeout{Page \the\pt@page\space of table \thetable\space has been set to
447: width \the\pt@width\space with \the\pt@nlines\space lines per page}%
448: \global\advance\pt@page by\@ne%
449: \endcenter\end@float\clearpage%
450: \addtocounter{table}{\m@ne}%
451: \let\fnum@table=\fnum@ptablecont\set@mkcaptioncont%
452: \@float{table}\center\caption{\pt@caption}\leavevmode%
453: \global\pt@ncol=\pt@column
454: \global\pt@line=0%
455: \setbox\pt@box=\pt@tabular{\pt@format}\pt@head%
456: \else\\
457: \fi}
458:
459:
460: \let\nl=\pt@nl
461: \let\nextline=\pt@nl
462:
463: \def\tablevspace#1{\noalign{\vskip#1}}
464: \def\tablebreak{\pt@line\pt@nlines\advance\pt@line by\m@ne\pt@nl}
465:
466:
467: \def\cutinhead#1{\noalign{\vskip 1.5ex}
468: \hline\pt@nl\noalign{\vskip -4ex}
469: \multicolumn{\pt@ncol}{c}{#1}\pt@nl
470: \noalign{\vskip .8ex}
471: \hline\pt@nl\noalign{\vskip -2ex}}
472:
473: \def\sidehead#1{\noalign{\vskip 1.5ex}
474: \multicolumn{\pt@ncol}{@{\hskip\z@}l}{#1}\pt@nl
475: \noalign{\vskip .5ex}}
476:
477: \def\set@tblnotetext{\def\tablenotetext##1##2{{%
478: \@temptokena={\vspace{0ex}{%
479: \parbox{\pt@width}{\hskip1em$^{\rm ##1}$##2}\par}}%
480: \@temptokenb=\expandafter{\tblnote@list}%
481: \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}}}
482:
483: \def\spew@ptblnotes{
484: \ifx\tblnote@list\@empty\relax
485: \else
486: \par
487: \vspace{2ex}
488: {\parskip=1.5ex%
489: \tblnote@list}
490: \gdef\tblnote@list{}
491: \fi}
492:
493:
494: \def\tablerefs#1{\@temptokena={\vspace*{3ex}{%
495: \parbox{\pt@width}{\hskip1em\rm References. --- #1}\par}}%
496: :
497: \@temptokenb=\expandafter{\tblnote@list}
498: \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
499:
500: \def\tablecomments#1{\@temptokena={\vspace*{3ex}{%
501: \parbox{\pt@width}{\hskip1em\rm Note. --- #1}\par}}%
502: \@temptokenb=\expandafter{\tblnote@list}
503: \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
504: \@ifundefined{epsfbox}{\@input{epsf.sty}}{\relax}
505: \def\eps@scaling{.95}
506: % \def\epsscale#1{\gdef\eps@scaling{#1}} % made non-global plante 1-Apr-99
507: \def\epsscale#1{\def\eps@scaling{#1}}
508:
509: \def\plotone#1{\centering \leavevmode
510: \epsfxsize=\eps@scaling\textwidth \epsfbox{#1}}
511: \def\plottwo#1#2{\centering \leavevmode
512: \epsfxsize=.45\textwidth \epsfbox{#1} \hfil
513: \epsfxsize=.45\textwidth \epsfbox{#2}}
514: \def\plotfiddle#1#2#3#4#5#6#7{\centering \leavevmode
515: \vbox to#2{\rule{0pt}{#2}}
516: \special{psfile=#1 voffset=#7 hoffset=#6 vscale=#5 hscale=#4 angle=#3}}
517: \newif\if@finalstyle \@finalstylefalse
518: \ps@myheadings
519: \let\ps@title=\ps@paspcstitle
520: \ds@twoside
521:
522: % Define \codesize to be \scriptsize\bf to enclose code snippets.
523: % This should allow 80 chars across.
524: \newcommand{\codesize}{\scriptsize\bf\renewcommand{\baselinestretch}{0.8}}
525: \newcommand{\edcomment}[1]{\small\tt\begin{itemize}\item[FROM EDITOR>]
526: \it#1 \end{itemize}\normalsize}
527:
528:
529: % \typeout{Loading html macros}
530: %
531: % end aspconf.sty
532: %
533: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
534: %
535: % The following section is the modified contents of html.sty, v 1.31 from
536: % the latex2html package. The modifications made to include the file
537: % here are:
538: %
539: % 1. The check for re-loading of html style is altered to give
540: % error message.
541: %
542: % 2. The LaTeX 2e extensions have been moved to the end of this file
543: % (since it uses \endinput).
544: %
545: % 3. \makeatother and \endinput at end of html.sty portion removed
546: %
547: % ----------------
548: %
549: % $Id: adassconf.sty,v 1.2 2003/06/06 18:56:05 payne Exp $
550: % LaTeX2HTML Version 98.2 : html.sty
551: %
552: % This file contains definitions of LaTeX commands which are
553: % processed in a special way by the translator.
554: % For example, there are commands for embedding external hypertext links,
555: % for cross-references between documents or for including raw HTML.
556: % This file includes the comments.sty file v2.0 by Victor Eijkhout
557: % In most cases these commands do nothing when processed by LaTeX.
558: %
559: % Place this file in a directory accessible to LaTeX (i.e., somewhere
560: % in the TEXINPUTS path.)
561: %
562: % NOTE: This file works with LaTeX 2.09 or (the newer) LaTeX2e.
563: % If you only have LaTeX 2.09, some complex LaTeX2HTML features
564: % like support for segmented documents are not available.
565:
566: % Changes:
567: % See the change log at end of file.
568:
569:
570: % Exit if the style file is already loaded
571: % (suggested by Lee Shombert <las@potomac.wash.inmet.com>
572: %
573: % modified by Ray Plante for adassconf.sty
574: \ifx \htmlstyloaded\relax
575: \errmessage{html style environment has already been loaded!
576: ^^J Remove "html" from the documentstyle
577: command and rerun LaTeX}
578: \endinput\else\let\htmlstyloaded\relax
579: \fi
580: \makeatletter
581:
582: \providecommand{\latextohtml}{\LaTeX2\texttt{HTML}}
583:
584:
585: %%% LINKS TO EXTERNAL DOCUMENTS
586: %
587: % This can be used to provide links to arbitrary documents.
588: % The first argumment should be the text that is going to be
589: % highlighted and the second argument a URL.
590: % The hyperlink will appear as a hyperlink in the HTML
591: % document and as a footnote in the dvi or ps files.
592: %
593: %\newcommand{\htmladdnormallinkfoot}[2]{#1\footnote{#2}}
594:
595:
596: % This is an alternative definition of the command above which
597: % will ignore the URL in the dvi or ps files.
598: %\newcommand{\htmladdnormallink}[2]{#1}
599:
600:
601: % This command takes as argument a URL pointing to an image.
602: % The image will be embedded in the HTML document but will
603: % be ignored in the dvi and ps files.
604: %
605: \newcommand{\htmladdimg}[1]{}
606:
607:
608: %%% CROSS-REFERENCES BETWEEN (LOCAL OR REMOTE) DOCUMENTS
609: %
610: % This can be used to refer to symbolic labels in other Latex
611: % documents that have already been processed by the translator.
612: % The arguments should be:
613: % #1 : the URL to the directory containing the external document
614: % #2 : the path to the labels.pl file of the external document.
615: % If the external document lives on a remote machine then labels.pl
616: % must be copied on the local machine.
617: %
618: %e.g. \externallabels{http://cbl.leeds.ac.uk/nikos/WWW/doc/tex2html/latex2html}
619: % {/usr/cblelca/nikos/tmp/labels.pl}
620: % The arguments are ignored in the dvi and ps files.
621: %
622: \newcommand{\externallabels}[2]{}
623:
624:
625: % This complements the \externallabels command above. The argument
626: % should be a label defined in another latex document and will be
627: % ignored in the dvi and ps files.
628: %
629: \newcommand{\externalref}[1]{}
630:
631:
632: % Suggested by Uffe Engberg (http://www.brics.dk/~engberg/)
633: % This allows the same effect for citations in external bibliographies.
634: % An \externallabels command must be given, locating a labels.pl file
635: % which defines the location and keys used in the external .html file.
636: %
637: \newcommand{\externalcite}{\nocite}
638:
639:
640: %%% HTMLRULE
641: % This command adds a horizontal rule and is valid even within
642: % a figure caption.
643: % Here we introduce a stub for compatibility.
644: \newcommand{\htmlrule}{\protect\HTMLrule}
645: \newcommand{\HTMLrule}{\@ifstar\htmlrulestar\htmlrulestar}
646: \newcommand{\htmlrulestar}[1]{}
647:
648: % This command adds information within the <BODY> ... </BODY> tag
649: %
650: \newcommand{\bodytext}[1]{}
651: \newcommand{\htmlbody}{}
652:
653:
654: %%% HYPERREF
655: % Suggested by Eric M. Carol <eric@ca.utoronto.utcc.enfm>
656: % Similar to \ref but accepts conditional text.
657: % The first argument is HTML text which will become ``hyperized''
658: % (underlined).
659: % The second and third arguments are text which will appear only in the paper
660: % version (DVI file), enclosing the fourth argument which is a
661: % reference to a label.
662: %
663: %e.g. \hyperref{using the tracer}{using the tracer (see Section}{)}{trace}
664: % where there is a corresponding \label{trace}
665: %
666: \newcommand{\hyperref}{\hyperrefx[ref]}
667: \def\hyperrefx[#1]{{\def\next{#1}%
668: \def\tmp{ref}\ifx\next\tmp\aftergroup\hyperrefref
669: \else\def\tmp{pageref}\ifx\next\tmp\aftergroup\hyperpageref
670: \else\def\tmp{page}\ifx\next\tmp\aftergroup\hyperpageref
671: \else\def\tmp{noref}\ifx\next\tmp\aftergroup\hypernoref
672: \else\def\tmp{no}\ifx\next\tmp\aftergroup\hypernoref
673: \else\typeout{*** unknown option \next\space to hyperref ***}%
674: \fi\fi\fi\fi\fi}}
675: \newcommand{\hyperrefref}[4]{#2\ref{#4}#3}
676: \newcommand{\hyperpageref}[4]{#2\pageref{#4}#3}
677: \newcommand{\hypernoref}[3]{#2}
678:
679:
680: %%% HYPERCITE --- added by RRM
681: % Suggested by Stephen Simpson <simpson@math.psu.edu>
682: % effects the same ideas as in \hyperref, but for citations.
683: % It does not allow an optional argument to the \cite, in LaTeX.
684: %
685: % \hypercite{<html-text>}{<LaTeX-text>}{<opt-text>}{<key>}
686: %
687: % uses the pre/post-texts in LaTeX, with a \cite{<key>}
688: %
689: % \hypercite[ext]{<html-text>}{<LaTeX-text>}{<key>}
690: %
691: % uses the pre/post-texts in LaTeX, with a \nocite{<key>}
692: % the actual reference comes from an \externallabels file.
693: %
694: \newcommand{\hypercite}{\hypercitex[int]}
695: \def\hypercitex[#1]{{\def\next{#1}%
696: \def\tmp{int}\ifx\next\tmp\aftergroup\hyperciteint
697: \else\def\tmp{cite}\ifx\next\tmp\aftergroup\hyperciteint
698: \else\def\tmp{ext}\ifx\next\tmp\aftergroup\hyperciteext
699: \else\def\tmp{nocite}\ifx\next\tmp\aftergroup\hyperciteext
700: \else\def\tmp{no}\ifx\next\tmp\aftergroup\hyperciteext
701: \else\typeout{*** unknown option \next\space to hypercite ***}%
702: \fi\fi\fi\fi\fi}}
703: \newcommand{\hyperciteint}[4]{#2{\def\tmp{#3}\def\emptyopt{}%
704: \ifx\tmp\emptyopt\cite{#4}\else\cite[#3]{#4}\fi}}
705: \newcommand{\hyperciteext}[3]{#2\nocite{#3}}
706:
707:
708:
709: %%% HTMLREF
710: % Reference in HTML version only.
711: % Mix between \htmladdnormallink and \hyperref.
712: % First arg is text for in both versions, second is label for use in HTML
713: % version.
714: \newcommand{\htmlref}[2]{#1}
715:
716: %%% HTMLCITE
717: % Reference in HTML version only.
718: % Mix between \htmladdnormallink and \hypercite.
719: % First arg is text for in both versions, second is citation for use in HTML
720: % version.
721: \newcommand{\htmlcite}[2]{#1}
722:
723:
724: %%% HTMLIMAGE
725: % This command can be used inside any environment that is converted
726: % into an inlined image (eg a "figure" environment) in order to change
727: % the way the image will be translated. The argument of \htmlimage
728: % is really a string of options separated by commas ie
729: % [scale=<scale factor>],[external],[thumbnail=<reduction factor>
730: % The scale option allows control over the size of the final image.
731: % The ``external'' option will cause the image not to be inlined
732: % (images are inlined by default). External images will be accessible
733: % via a hypertext link.
734: % The ``thumbnail'' option will cause a small inlined image to be
735: % placed in the caption. The size of the thumbnail depends on the
736: % reduction factor. The use of the ``thumbnail'' option implies
737: % the ``external'' option.
738: %
739: % Example:
740: % \htmlimage{scale=1.5,external,thumbnail=0.2}
741: % will cause a small thumbnail image 1/5th of the original size to be
742: % placed in the final document, pointing to an external image 1.5
743: % times bigger than the original.
744: %
745: \newcommand{\htmlimage}[1]{}
746:
747:
748: % \htmlborder causes a border to be placed around an image or table
749: % when the image is placed within a <TABLE> cell.
750: \newcommand{\htmlborder}[1]{}
751:
752: % Put \begin{makeimage}, \end{makeimage} around LaTeX to ensure its
753: % translation into an image.
754: % This shields sensitive text from being translated.
755: \newenvironment{makeimage}{}{}
756:
757:
758: % A dummy environment that can be useful to alter the order
759: % in which commands are processed, in LaTeX2HTML
760: \newenvironment{tex2html_deferred}{}{}
761:
762:
763: %%% HTMLADDTONAVIGATION
764: % This command appends its argument to the buttons in the navigation
765: % panel. It is ignored by LaTeX.
766: %
767: % Example:
768: % \htmladdtonavigation{\htmladdnormallink
769: % {\htmladdimg{http://server/path/to/gif}}
770: % {http://server/path}}
771: \newcommand{\htmladdtonavigation}[1]{}
772:
773:
774: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
775: % Comment.sty version 2.0, 19 June 1992
776: % selectively in/exclude pieces of text: the user can define new
777: % comment versions, and each is controlled separately.
778: % This style can be used with plain TeX or LaTeX, and probably
779: % most other packages too.
780: %
781: % Examples of use in LaTeX and TeX follow \endinput
782: %
783: % Author
784: % Victor Eijkhout
785: % Department of Computer Science
786: % University Tennessee at Knoxville
787: % 104 Ayres Hall
788: % Knoxville, TN 37996
789: % USA
790: %
791: % eijkhout@cs.utk.edu
792: %
793: % Usage: all text included in between
794: % \comment ... \endcomment
795: % or \begin{comment} ... \end{comment}
796: % is discarded. The closing command should appear on a line
797: % of its own. No starting spaces, nothing after it.
798: % This environment should work with arbitrary amounts
799: % of comment.
800: %
801: % Other 'comment' environments are defined by
802: % and are selected/deselected with
803: % \includecomment{versiona}
804: % \excludecoment{versionb}
805: %
806: % These environments are used as
807: % \versiona ... \endversiona
808: % or \begin{versiona} ... \end{versiona}
809: % with the closing command again on a line of its own.
810: %
811: % Basic approach:
812: % to comment something out, scoop up every line in verbatim mode
813: % as macro argument, then throw it away.
814: % For inclusions, both the opening and closing comands
815: % are defined as noop
816: %
817: % Changed \next to \html@next to prevent clashes with other sty files
818: % (mike@emn.fr)
819: % Changed \html@next to \htmlnext so the \makeatletter and
820: % \makeatother commands could be removed (they were causing other
821: % style files - changebar.sty - to crash) (nikos@cbl.leeds.ac.uk)
822: % Changed \htmlnext back to \html@next...
823:
824: \def\makeinnocent#1{\catcode`#1=12 }
825: \def\csarg#1#2{\expandafter#1\csname#2\endcsname}
826:
827: \def\ThrowAwayComment#1{\begingroup
828: \def\CurrentComment{#1}%
829: \let\do\makeinnocent \dospecials
830: \makeinnocent\^^L% and whatever other special cases
831: \endlinechar`\^^M \catcode`\^^M=12 \xComment}
832: {\catcode`\^^M=12 \endlinechar=-1 %
833: \gdef\xComment#1^^M{\def\test{#1}\edef\test{\meaning\test}
834: \csarg\ifx{PlainEnd\CurrentComment Test}\test
835: \let\html@next\endgroup
836: \else \csarg\ifx{LaLaEnd\CurrentComment Test}\test
837: \edef\html@next{\endgroup\noexpand\end{\CurrentComment}}
838: \else \csarg\ifx{LaInnEnd\CurrentComment Test}\test
839: \edef\html@next{\endgroup\noexpand\end{\CurrentComment}}
840: \else \let\html@next\xComment
841: \fi \fi \fi \html@next}
842: }
843:
844: \def\includecomment
845: #1{\expandafter\def\csname#1\endcsname{}%
846: \expandafter\def\csname end#1\endcsname{}}
847: \def\excludecomment
848: #1{\expandafter\def\csname#1\endcsname{\ThrowAwayComment{#1}}%
849: {\escapechar=-1\relax
850: \edef\tmp{\string\\end#1}%
851: \csarg\xdef{PlainEnd#1Test}{\meaning\tmp}%
852: \edef\tmp{\string\\end\string\{#1\string\}}%
853: \csarg\xdef{LaLaEnd#1Test}{\meaning\tmp}%
854: \edef\tmp{\string\\end \string\{#1\string\}}%
855: \csarg\xdef{LaInnEnd#1Test}{\meaning\tmp}%
856: }}
857:
858: \excludecomment{comment}
859: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
860: % end Comment.sty
861: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
862:
863: %
864: % Alternative code by Robin Fairbairns, 22 September 1997
865: % revised to cope with % and unnested { }, by Ross Moore, 4 July 1998
866: %
867: \def\raw@catcodes{\catcode`\%=12 \catcode`\{=12 \catcode`\}=12}
868: \newcommand\@gobbleenv{\bgroup\raw@catcodes
869: \let\reserved@a\@currenvir\@gobble@nv}
870: \bgroup
871: \def\expansionhead{\gdef\@gobble@nv@i##1}
872: \def\expansiontail{{\def\reserved@b{##1}\@gobble@nv@ii}}
873: \raw@catcodes\relax
874: \expandafter\expansionhead\expandafter}\expansiontail
875: \egroup
876: \long\gdef\@gobble@nv#1\end#2{\@gobble@nv@i}
877: %\long\def\@gobble@nv#1\end#2{\def\reserved@b{#2}%
878: \def\@gobble@nv@ii{%
879: \ifx\reserved@a\reserved@b
880: \edef\reserved@a{\egroup\noexpand\end{\reserved@a}}%
881: \expandafter\reserved@a
882: \else
883: \expandafter\@gobble@nv
884: \fi}
885:
886: \renewcommand{\excludecomment}[1]{%
887: \csname newenvironment\endcsname{#1}{\@gobbleenv}{}}
888:
889: %%% RAW HTML
890: %
891: % Enclose raw HTML between a \begin{rawhtml} and \end{rawhtml}.
892: % The html environment ignores its body
893: %
894: \excludecomment{rawhtml}
895:
896:
897: %%% HTML ONLY
898: %
899: % Enclose LaTeX constructs which will only appear in the
900: % HTML output and will be ignored by LaTeX with
901: % \begin{htmlonly} and \end{htmlonly}
902: %
903: \excludecomment{htmlonly}
904: % Shorter version
905: \newcommand{\html}[1]{}
906:
907: % for images.tex only
908: \excludecomment{imagesonly}
909:
910: %%% LaTeX ONLY
911: % Enclose LaTeX constructs which will only appear in the
912: % DVI output and will be ignored by latex2html with
913: %\begin{latexonly} and \end{latexonly}
914: %
915: \newenvironment{latexonly}{}{}
916: % Shorter version
917: \newcommand{\latex}[1]{#1}
918:
919:
920: %%% LaTeX or HTML
921: % Combination of \latex and \html.
922: % Say \latexhtml{this should be latex text}{this html text}
923: %
924: %\newcommand{\latexhtml}[2]{#1}
925: \long\def\latexhtml#1#2{#1}
926:
927:
928: %%% tracing the HTML conversions
929: % This alters the tracing-level within the processing
930: % performed by latex2html by adjusting $VERBOSITY % $
931: % (see latex2html.config for the appropriate values)
932: %
933: \newcommand{\htmltracing}[1]{}
934: \newcommand{\htmltracenv}[1]{}
935:
936:
937: %%% \strikeout for HTML only
938: % uses <STRIKE>...</STRIKE> tags on the argument
939: % LaTeX just gobbles it up.
940: \newcommand{\strikeout}[1]{}
941:
942: %%% \htmlurl and \url
943: % implement \url as the simplest thing, if not already defined
944: % let \htmlurl#1 be equivalent to it
945: %
946: \def\htmlurlx#1{\begin{small}\texttt{#1}\end{small}}%
947: \expandafter\ifx\csname url\endcsname\relax
948: \let\htmlurl=\htmlurlx \else \let\htmlurl=\url \fi
949:
950: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
951: %%% JCL - stop input here if LaTeX2e is not present
952: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
953: %
954: % this portion has been moved to the end of the file by Ray Plante
955: % for use within adassconf.sty.
956: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
957: %
958: % commented out by Ray Plante for use within adassconf.sty
959: %
960: % \makeatother
961: % \endinput
962:
963: % Modifications:
964: %
965: % (The listing of Initiales see Changes)
966:
967: % $Log: adassconf.sty,v $
968: % Revision 1.2 2003/06/06 18:56:05 payne
969: % updated the editor list
970: %
971: % Revision 1.1.1.1 2003/06/06 17:42:50 payne
972: % initial upload
973: %
974: % Revision 1.5 2003/04/16 23:01:02 payne
975: % Made titlemark default to title. That means titlemark is only needed if
976: % the title is too long to fit in the header, and that titlemark must come
977: % AFTER the title.
978: %
979: % And I removed the slug and header dependence on finalstyle, so that the
980: % are printed, so we can ask authors to put in titlemark and authormark
981: % commands.
982: %
983: % Revision 1.4 2003/04/16 00:10:08 payne
984: % Changes for typesetting urls.
985: %
986: % Revision 1.2 2003/02/24 23:16:17 payne
987: % Rearranged papers so that invited papers come first in each part. Put
988: % the final volume number in the style file, fixed some addresses in the
989: % participant list, and corrected the number of invited papers in the
990: % proceedings from 7 to 8.
991: %
992: % Revision 1.1.1.1 2003/02/21 16:45:30 payne
993: % Initial upload
994: %
995: % Revision 1.28 1999/07/14 20:52:42 rplante
996: % additional functions to support HTML version and external linking
997: %
998: % Revision 1.27 1999/07/09 17:20:08 rplante
999: % tweaked to help support electronic version
1000: %
1001: % Revision 1.26 1999/04/09 21:35:05 dmehring
1002: % R.~Albrecht -> R.\ Albrecht
1003: %
1004: % Revision 1.25 1999/04/09 20:52:55 dmehring
1005: % H.~Jacoby -> H.\ Jacoby so line would break
1006: %
1007: % Revision 1.24 1999/04/09 14:41:46 rplante
1008: % added volume number
1009: %
1010: % Revision 1.23 1999/04/05 19:19:45 dmehring
1011: % diddled \adass* macros again
1012: %
1013: % Revision 1.22 1999/04/02 20:42:12 rplante
1014: % tweaked \tighten
1015: %
1016: % Revision 1.21 1999/04/02 18:08:06 rplante
1017: % tighten description lists; add tighten macro
1018: %
1019: % Revision 1.20 1999/04/01 22:52:58 dmehring
1020: % added "Vol." to \spie macro
1021: %
1022: % Revision 1.19 1999/04/01 22:25:49 dmehring
1023: % added "Vol." back to adass macros
1024: %
1025: % Revision 1.18 1999/04/01 22:05:34 dmehring
1026: % changed \def\vol@author{D.\ Mehringer, R.\ L.\ Plante, and D.\ A.\ Roberts, eds.}
1027: % to \def\vol@author{D.\ M.\ Mehringer, R.\ L.\ Plante, and D.\ A.\ Roberts, eds.}
1028: % changed \def\cpr@year{1994} to \def\cpr@year{1999}
1029: %
1030: % Revision 1.17 1999/04/01 18:30:11 rplante
1031: % fixed epsf scaling bug
1032: %
1033: % Revision 1.16 1999/03/30 21:41:58 rplante
1034: % fix broken ability to latex individual papers
1035: %
1036: % Revision 1.15 1999/03/25 19:44:54 rplante
1037: % reset figure and table numbers with each article
1038: %
1039: % Revision 1.14 1999/03/25 18:28:42 rplante
1040: % counter resets, page number control, appearance of part in toc
1041: %
1042: % Revision 1.13 1999/03/24 16:06:22 rplante
1043: % support paper titles and authors in table of contents
1044: %
1045: % Revision 1.12 1999/03/19 22:35:36 rplante
1046: % more tweaking for book
1047: %
1048: % Revision 1.11 1999/03/19 19:36:05 rplante
1049: % tweaked paspbook
1050: %
1051: % Revision 1.10 1999/03/19 18:21:26 rplante
1052: % updated for proceedings volume
1053: %
1054: % Revision 1.9 1999/03/18 20:28:14 dmehring
1055: % changed phys rev macros so they now have spaces
1056: %
1057: % Revision 1.8 1999/03/15 19:33:17 dmehring
1058: % made small changes to adass macros
1059: %
1060: % Revision 1.7 1999/03/10 22:45:54 dmehring
1061: % added \ibid macro (produces horizontal line for a reference which has an
1062: % identical author list the the previous reference)
1063: %
1064: % Revision 1.6 1999/03/10 20:36:15 dmehring
1065: % and yet another SPIE macro modification
1066: %
1067: % Revision 1.5 1999/03/10 20:32:15 dmehring
1068: % modified SPIE macro
1069: %
1070: % Revision 1.4 1999/03/10 20:30:32 dmehring
1071: % added SPIE macro
1072: %
1073: % Revision 1.3 1999/03/10 00:17:27 dmehring
1074: % changed Ser. Vol. to Proc. in \adass* macros
1075: %
1076: % Revision 1.2 1999/03/10 00:03:08 dmehring
1077: % edited \adass* macros to change editors first names to initials
1078: % also added a couple of commas
1079: %
1080: % Revision 1.1 1999/03/09 23:45:03 droberts
1081: % Initial revision
1082: %
1083: % Revision 1.31 1998/07/07 14:15:41 RRM
1084: % -- new commands \htmlsetstyle and \htmladdtostyle
1085: %
1086: % Revision 1.30 1998/07/04 02:42:22 RRM
1087: % -- cope with catcodes of % { } in rawhtml/comment/htmlonly environments
1088: %
1089: % Revision 1.29 1998/06/23 13:33:23 RRM
1090: % -- use \begin{small} with the default for URLs
1091: %
1092: % Revision 1.28 1998/06/21 09:38:39 RRM
1093: % -- implement \htmlurl to agree with \url if already defined
1094: % or loaded subsequently (LaTeX-2e only)
1095: % -- get LaTeX to print the revision number when loading
1096: %
1097: % Revision 1.27 1998/06/20 15:13:10 RRM
1098: % -- \TeX is already protected in recent versions of LaTeX
1099: % so \DeclareRobust doesn't work --- causes looping
1100: % -- \part and \subparagraph need not be defined in some styles
1101: %
1102: % Revision 1.26 1998/06/01 08:36:49 latex2html
1103: % -- implement optional argument for \endsegment
1104: % -- made the counter value output from \DumpPtr more robust
1105: %
1106: % Revision 1.25 1998/05/09 05:43:35 latex2html
1107: % -- conditionals for avoiding undefined counters
1108: %
1109: % Revision 1.23 1998/02/26 10:32:24 latex2html
1110: % -- use \providecommand for \latextohtml
1111: % -- implemented \HTMLcode to do what \HTML did previously
1112: % \HTML still works, unless already defined by another package
1113: % -- fixed problems remaining with undefined \chapter
1114: % -- defined \endsegment
1115: %
1116: % Revision 1.22 1997/12/05 11:38:18 RRM
1117: % -- implemented an optional argument to \begin for style-sheet info.
1118: % -- modified use of an optional argument with sectioning-commands
1119: %
1120: % Revision 1.21 1997/11/05 10:28:56 RRM
1121: % -- replaced redefinition of \@htmlrule with \htmlrulestar
1122: %
1123: % Revision 1.20 1997/10/28 02:15:58 RRM
1124: % -- altered the way some special html-macros are defined, so that
1125: % star-variants are explicitly defined for LaTeX
1126: % -- it is possible for these to occur within images.tex
1127: % e.g. \htmlinfostar \htmlrulestar \tableofchildlinksstar
1128: %
1129: % Revision 1.19 1997/10/11 05:47:48 RRM
1130: % -- allow the dummy {tex2html_nowrap} environment in LaTeX
1131: % use it to make its contents be evaluated in environment order
1132: %
1133: % Revision 1.18 1997/10/04 06:56:50 RRM
1134: % -- uses Robin Fairbairns' code for ignored environments,
1135: % replacing the previous comment.sty stuff.
1136: % -- extensions to the \tableofchildlinks command
1137: % -- extensions to the \htmlinfo command
1138: %
1139: % Revision 1.17 1997/07/08 11:23:39 RRM
1140: % include value of footnote counter in .ptr files for segments
1141: %
1142: % Revision 1.16 1997/07/03 08:56:34 RRM
1143: % use \textup within the \latextohtml macro
1144: %
1145: % Revision 1.15 1997/06/15 10:24:58 RRM
1146: % new command \htmltracenv as environment-ordered \htmltracing
1147: %
1148: % Revision 1.14 1997/06/06 10:30:37 RRM
1149: % - new command: \htmlborder puts environment into a <TABLE> cell
1150: % with a border of specified width, + other attributes.
1151: % - new commands: \HTML for setting arbitrary HTML tags, with attributes
1152: % \HTMLset for setting Perl variables, while processing
1153: % \HTMLsetenv same as \HTMLset , but it gets processed
1154: % as if it were an environment.
1155: % - new command: \latextohtml --- to set the LaTeX2HTML name/logo
1156: % - fixed some remaining problems with \segmentcolor & \segmentpagecolor
1157: %
1158: % Revision 1.13 1997/05/19 13:55:46 RRM
1159: % alterations and extra options to \hypercite
1160: %
1161: % Revision 1.12 1997/05/09 12:28:39 RRM
1162: % - Added the optional argument to \htmlhead, also in \DumpCounters
1163: % - Implemented \HTMLset as a no-op in LaTeX.
1164: % - Fixed a bug in accessing the page@color settings.
1165: %
1166: % Revision 1.11 1997/03/26 09:32:40 RRM
1167: % - Implements LaTeX versions of \externalcite and \hypercite commands.
1168: % Thanks to Uffe Engberg and Stephen Simpson for the suggestions.
1169: %
1170: % Revision 1.10 1997/03/06 07:37:58 RRM
1171: % Added the \htmltracing command, for altering $VERBOSITY . %$
1172: %
1173: % Revision 1.9 1997/02/17 02:26:26 RRM
1174: % - changes to counter handling (RRM)
1175: % - shuffled around some definitions
1176: % - changed \htmlrule of 209 mode
1177: %
1178: % Revision 1.8 1997/01/26 09:04:12 RRM
1179: % RRM: added optional argument to sectioning commands
1180: % \htmlbase sets the <BASE HREF=...> tag
1181: % \htmlinfo and \htmlinfo* allow the document info to be positioned
1182: %
1183: % Revision 1.7 1997/01/03 12:15:44 L2HADMIN
1184: % % - fixes to the color and natbib interfaces
1185: % % - extended usage of \hyperref, via an optional argument.
1186: % % - extended use comment environments to allow shifting expansions
1187: % % e.g. within \multicolumn (`bug' reported by Luc De Coninck).
1188: % % - allow optional argument to: \htmlimage, \htmlhead,
1189: % % \htmladdimg, \htmladdnormallink, \htmladdnormallinkfoot
1190: % % - added new commands: \htmlbody, \htmlnohead
1191: % % - added new command: \tableofchildlinks
1192: %
1193: % Revision 1.6 1996/12/25 03:04:54 JCL
1194: % added patches to segment feature from Martin Wilck
1195: %
1196: % Revision 1.5 1996/12/23 01:48:06 JCL
1197: % o introduced the environment makeimage, which may be used to force
1198: % LaTeX2HTML to generate an image from the contents.
1199: % There's no magic, all what we have now is a defined empty environment
1200: % which LaTeX2HTML will not recognize and thus pass it to images.tex.
1201: % o provided \protect to the \htmlrule commands to allow for usage
1202: % within captions.
1203: %
1204: % Revision 1.4 1996/12/21 19:59:22 JCL
1205: % - shuffled some entries
1206: % - added \latexhtml command
1207: %
1208: % Revision 1.3 1996/12/21 12:22:59 JCL
1209: % removed duplicate \htmlrule, changed \htmlrule back not to create a \hrule
1210: % to allow occurrence in caption
1211: %
1212: % Revision 1.2 1996/12/20 04:03:41 JCL
1213: % changed occurrence of \makeatletter, \makeatother
1214: % added new \htmlrule command both for the LaTeX2.09 and LaTeX2e
1215: % sections
1216: %
1217: %
1218: % jcl 30-SEP-96
1219: % - Stuck the commands commonly used by both LaTeX versions to the top,
1220: % added a check which stops input or reads further if the document
1221: % makes use of LaTeX2e.
1222: % - Introduced rrm's \dumpcurrentcolor and \bodytext
1223: % hws 31-JAN-96 - Added support for document segmentation
1224: % hws 10-OCT-95 - Added \htmlrule command
1225: % jz 22-APR-94 - Added support for htmlref
1226: % nd - Created
1227: %
1228: %
1229: % end html.sty
1230: %
1231: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1232: %
1233: % the following section contains extra macros and enhancements for use
1234: % by the ADASS conference proceedings.
1235: %
1236: % \typeout{Loading ADASS VIII macros}
1237: \def\paspheader{
1238: \ps@myheadings\let\ps@title=\ps@paspcstitle
1239: \@twosidetrue\@mparswitchtrue
1240: }
1241: \def\paspreprint{\@finalstyletrue
1242: \ps@myheadings\let\ps@title=\ps@pasprptitle
1243: \@twosidetrue\@mparswitchtrue
1244: }
1245: \def\paspbook{\@finalstyletrue\paspheader}
1246: \let\adassconfstyloaded\relax
1247: %\paspbook
1248:
1249: \def\pasp@authortocentry#1{\relax}
1250:
1251: %-----------------------------------------------------------------------
1252: % Paper ID Code
1253: %-----------------------------------------------------------------------
1254: % This identifies the paper and provides a label for cross-referencing
1255: % between papers in the proceedings.
1256:
1257: \def\thepaperID{}
1258: \def\paperID#1{\gdef\thepaperID{#1}\label{#1}}
1259:
1260: %-----------------------------------------------------------------------
1261: % Contact Information
1262: %-----------------------------------------------------------------------
1263: % This information will not appear in the paper but will be used by
1264: % the editors in case they need to contact the author
1265:
1266: \def\contact#1{\relax}
1267: \def\email#1{\relax}
1268:
1269: %-----------------------------------------------------------------------
1270: % Author Index Specification
1271: %-----------------------------------------------------------------------
1272: % These macros specify how each author name should appear in the
1273: % author index.
1274:
1275: \def\paindex#1{\relax}
1276: \def\aindex#1{\relax}
1277:
1278: %-----------------------------------------------------------------------
1279: % Subject Index keywords
1280: %-----------------------------------------------------------------------
1281: % Keywords are used for creating the subject index; however, they do
1282: % not appear in the individual papers. There is no required syntax;
1283: % however, the convention for post-processing is to delimit the terms
1284: % with commas. Complex terms may optionally be broken into major and
1285: % minor terms with form MAJOR: MINOR.
1286:
1287: % already defined above
1288: % \def\keywords#1{\relax}
1289: \def\sindex#1{\relax}
1290:
1291: %-----------------------------------------------------------------------
1292: % Page marks
1293: %-----------------------------------------------------------------------
1294: % These macros help define the slugs that go at the top of each page
1295:
1296: \def\authormark#1{\def\leftmark{#1}}
1297: \def\titlemark#1{\def\rightmark{#1}}
1298:
1299: %-----------------------------------------------------------------------
1300: % References
1301: %-----------------------------------------------------------------------
1302:
1303: \def\sectprop#1#2{\relax}
1304: \let\newextlabel=\newlabel
1305:
1306: \let\std@ref=\ref
1307: \let\std@pageref=\pageref
1308: \def\If@MacroDef#1#2#3{\ifx#1\relax #2\else #3\fi}
1309: \def\cond@setextref#1{\expandafter\If@MacroDef\csname r@#1\endcsname%
1310: {\@setextref{#1}}{\relax}}
1311: \def\@setextref#1{\protected@write\@auxout{}{\string\extlabel{#1}}}
1312: \def\ref#1{\std@ref{#1}\protect\cond@setextref{#1}}
1313: \def\pageref#1{\std@pageref{#1}\protect\cond@setextref{#1}}
1314:
1315: \def\extlabel#1{\relax}
1316: \def\paperref#1{\if@finalstyle\std@pageref{#1}\@setextref{#1}\else[#1]\fi}
1317:
1318: %
1319: % adjustments to html macros
1320: %
1321: \def\makeusletter{\catcode`\_=11} \def\makeussubscript{\catcode`\_=8}
1322: \def\beginurlcodes{\makeusletter%
1323: \def~{\raisebox{-0.2\normalbaselineskip}{\char126}}}
1324: \def\formatURL#1{\htmlurl{#1}\egroup}
1325: \def\footURL#1{\footnote{\htmlurl{#1}}\egroup}
1326: \def\gobbleURL#1{\egroup}
1327:
1328: \newcommand{\htmladdnormallinkfoot}[1]{#1\bgroup\beginurlcodes\footURL}
1329: \newcommand{\htmladdnormallink}[1]{#1\bgroup\beginurlcodes\gobbleURL}
1330: % \renewcommand{\htmladdimg}{\bgroup\beginurlcodes\gobbleURL}
1331: \newcommand{\makeURL}{\bgroup\beginurlcodes\formatURL}
1332: \newcommand{\htmladdURL}{\bgroup\beginurlcodes\formatURL}
1333:
1334: % Tighten up lists
1335: %
1336: \newcounter{tictr}
1337: \renewenvironment{itemize}{%
1338: \begin{list}{%
1339: \mbox{$\bullet$}}{%
1340: \usecounter{tictr}\setlength{\itemsep}{0.0pt}\setlength{\parsep}{0.0pt}
1341: \setlength{\topsep}{0.0pt} \def\makelabel##1{\hss\llap{##1}}
1342: }}{\end{list}}
1343: \newcounter{tectr}
1344: \renewenvironment{enumerate}{%
1345: \begin{list}{%
1346: \arabic{tectr}.}{%
1347: \usecounter{tectr}\setlength{\itemsep}{0.0pt}\setlength{\parsep}{0.0pt}
1348: \setlength{\topsep}{0.0pt} \def\makelabel##1{\hss\llap{##1}}
1349: }}{\end{list}}
1350:
1351: \newcommand\tighten{%
1352: \def\section{\@startsection {section}{1}{\z@}%
1353: {-3.2ex plus -1ex minus -.8ex}%
1354: {2.2ex plus .2ex}%
1355: {\normalsize\bf}}
1356: \def\subsection{\@startsection{subsection}{2}{\z@}%
1357: {-1.7ex plus -1ex minus -.5ex}%
1358: {1.1ex plus .2ex}%
1359: {\normalsize\bf}}
1360: \def\endabstract{\par\egroup\vspace*{0.8\baselineskip}}
1361: \renewenvironment{description}
1362: {\list{}{\labelwidth\z@ \itemindent-\leftmargin
1363: \setlength{\itemsep}{1ex}\setlength{\parsep}{0ex}
1364: \let\makelabel\descriptionlabel}}
1365: {\endlist}
1366: }
1367:
1368: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1369: %
1370: % This must be last in this ADASS section!
1371: %
1372: \InputIfFileExists{\jobname.ax2}%
1373: {\typeout{^^JLoading reprint style ^^J}}{\relax}
1374:
1375: %
1376: %
1377: % end ADASS specific definitions
1378: %
1379: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1380: %
1381: % this section contains LaTeX2e-specific code from html.sty. This is
1382: % not used by adassconf.sty v 8.x but is included for possible
1383: % migration to LaTeX2e in the future.
1384: %
1385:
1386: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1387: %%% JCL - stop input here if LaTeX2e is not present
1388: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1389:
1390: \ifx\if@compatibility\undefined
1391: %LaTeX209
1392: \makeatother\relax\expandafter\endinput
1393: \fi
1394: \if@compatibility
1395: %LaTeX2e in LaTeX209 compatibility mode
1396: \makeatother\relax\expandafter\endinput
1397: \fi
1398:
1399: %\let\real@TeXlogo = \TeX
1400: %\DeclareRobustCommand{\TeX}{\relax\real@TeXlogo}
1401:
1402: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1403: %
1404: % Start providing LaTeX2e extension:
1405: % This is currently:
1406: % - additional optional argument for \htmladdimg
1407: % - support for segmented documents
1408: %
1409:
1410: %\ProvidesPackage{html}
1411: % [1996/12/22 v1.1 hypertext commands for latex2html (nd, hws, rrm)]
1412: \ProvidesPackage{adassconf}
1413: [1998/06/21 v1.31 hypertext commands for latex2html (nd, hws, rrm)]
1414:
1415:
1416: %%% bind \htmlurl to \url if that is later loaded
1417: %
1418: \expandafter\ifx\csname url\endcsname\relax
1419: \AtBeginDocument{\@ifundefined{url}{}{\let\htmlurl=\url}}\fi
1420:
1421: %%%%MG
1422:
1423: % This command takes as argument a URL pointing to an image.
1424: % The image will be embedded in the HTML document but will
1425: % be ignored in the dvi and ps files. The optional argument
1426: % denotes additional HTML tags.
1427: %
1428: % Example: \htmladdimg[ALT="portrait" ALIGN=CENTER]{portrait.gif}
1429: %
1430: \renewcommand{\htmladdimg}[2][]{}
1431:
1432: %%% HTMLRULE for LaTeX2e
1433: % This command adds a horizontal rule and is valid even within
1434: % a figure caption.
1435: %
1436: % This command is best used with LaTeX2e and HTML 3.2 support.
1437: % It is like \hrule, but allows for options via key--value pairs
1438: % as follows: \htmlrule[key1=value1, key2=value2, ...] .
1439: % Use \htmlrule* to suppress the <BR> tag.
1440: % Eg. \htmlrule[left, 15, 5pt, "none", NOSHADE] produces
1441: % <BR CLEAR="left"><HR NOSHADE SIZE="15">.
1442: % Renew the necessary part.
1443: \renewcommand{\htmlrulestar}[1][all]{}
1444:
1445: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1446: %
1447: % renew some definitions to allow optional arguments
1448: %
1449: % The description of the options is missing, as yet.
1450: %
1451: \renewcommand{\latextohtml}{\textup{\LaTeX2\texttt{HTML}}}
1452: %\renewcommand{\htmladdnormallinkfoot}[3][]{#2\footnote{#3}}
1453: \renewcommand{\htmladdnormallink}[3][]{#2}
1454: \renewcommand{\htmlbody}[1][]{}
1455: \renewcommand{\hyperref}[1][ref]{\hyperrefx[#1]}
1456: \renewcommand{\hypercite}[1][int]{\hypercitex[#1]}
1457: \renewcommand{\htmlref}[3][]{#2}
1458: \renewcommand{\htmlcite}[1]{#1\htmlcitex}
1459: \newcommand{\htmlcitex}[2][]{{\def\tmp{#1}\ifx\tmp\@empty\else~[#1]\fi}}
1460: \renewcommand{\htmlimage}[2][]{}
1461: \renewcommand{\htmlborder}[2][]{}
1462:
1463:
1464: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1465: %
1466: % HTML HTMLset HTMLsetenv
1467: %
1468: % These commands do nothing in LaTeX, but can be used to place
1469: % HTML tags or set Perl variables during the LaTeX2HTML processing;
1470: % They are intended for expert use only.
1471:
1472: \newcommand{\HTMLcode}[2][]{}
1473: \ifx\undefined\HTML\newcommand{\HTML}[2][]{}\else
1474: \typeout{*** Warning: \string\HTML\space had an incompatible definition ***}%
1475: \typeout{*** instead use \string\HTMLcode\space for raw HTML code ***}%
1476: \fi
1477: \newcommand{\HTMLset}[3][]{}
1478: \newcommand{\HTMLsetenv}[3][]{}
1479:
1480: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1481: %
1482: % The following commands pertain to document segmentation, and
1483: % were added by Herbert Swan <dprhws@edp.Arco.com> (with help from
1484: % Michel Goossens <goossens@cern.ch>):
1485: %
1486: %
1487: % This command inputs internal latex2html tables so that large
1488: % documents can to partitioned into smaller (more manageable)
1489: % segments.
1490: %
1491: \newcommand{\internal}[2][internals]{}
1492:
1493: %
1494: % Define a dummy stub \htmlhead{}. This command causes latex2html
1495: % to define the title of the start of a new segment. It is not
1496: % normally placed in the user's document. Rather, it is passed to
1497: % latex2html via a .ptr file written by \segment.
1498: %
1499: \newcommand{\htmlhead}[3][]{}
1500:
1501: % In the LaTeX2HTML version this will eliminate the title line
1502: % generated by a \segment command, but retains the title string
1503: % for use in other places.
1504: %
1505: \newcommand{\htmlnohead}{}
1506:
1507:
1508: % In the LaTeX2HTML version this put a URL into a <BASE> tag
1509: % within the <HEAD>...</HEAD> portion of a document.
1510: %
1511: \newcommand{\htmlbase}[1]{}
1512:
1513:
1514: % Include style information into the stylesheet; e.g. CSS
1515: %
1516: \newcommand{\htmlsetstyle}[3][]{}
1517: \newcommand{\htmladdtostyle}[3][]{}
1518:
1519:
1520: %
1521: % The dummy command \endpreamble is needed by latex2html to
1522: % mark the end of the preamble in document segments that do
1523: % not contain a \begin{document}
1524: %
1525: \newcommand{\startdocument}{}
1526:
1527:
1528: % \tableofchildlinks, \htmlinfo
1529: % by Ross Moore --- extensions dated 27 September 1997
1530: %
1531: % These do nothing in LaTeX but for LaTeX2HTML they mark
1532: % where the table of child-links and info-page should be placed,
1533: % when the user wants other than the default.
1534: % \tableofchildlinks % put mini-TOC at this location
1535: % \tableofchildlinks[off] % not on current page
1536: % \tableofchildlinks[none] % not on current and subsequent pages
1537: % \tableofchildlinks[on] % selectively on current page
1538: % \tableofchildlinks[all] % on current and all subsequent pages
1539: % \htmlinfo % put info-page at this location
1540: % \htmlinfo[off] % no info-page in current document
1541: % \htmlinfo[none] % no info-page in current document
1542: % *-versions omit the preceding <BR> tag.
1543: %
1544: \newcommand{\tableofchildlinks}{%
1545: \@ifstar\tableofchildlinksstar\tableofchildlinksstar}
1546: \newcommand{\tableofchildlinksstar}[1][]{}
1547:
1548: \newcommand{\htmlinfo}{\@ifstar\htmlinfostar\htmlinfostar}
1549: \newcommand{\htmlinfostar}[1][]{}
1550:
1551:
1552: % This redefines \begin to allow for an optional argument
1553: % which is used by LaTeX2HTML to specify `style-sheet' information
1554:
1555: \let\realLaTeX@begin=\begin
1556: \renewcommand{\begin}[1][]{\realLaTeX@begin}
1557:
1558:
1559: %
1560: % Allocate a new set of section counters, which will get incremented
1561: % for "*" forms of sectioning commands, and for a few miscellaneous
1562: % commands.
1563: %
1564:
1565: \newcounter{lpart}
1566: \newcounter{lchapter}[part]
1567: \@ifundefined{c@chapter}%
1568: {\let\Hchapter\relax \newcounter{lsection}[part]}%
1569: {\let\Hchapter=\chapter \newcounter{lsection}[chapter]}
1570: \newcounter{lsubsection}[section]
1571: \newcounter{lsubsubsection}[subsection]
1572: \newcounter{lparagraph}[subsubsection]
1573: \newcounter{lsubparagraph}[paragraph]
1574: %\newcounter{lequation}
1575:
1576: %
1577: % Redefine "*" forms of sectioning commands to increment their
1578: % respective counters.
1579: %
1580: \let\Hpart=\part
1581: %\let\Hchapter=\chapter
1582: \let\Hsection=\section
1583: \let\Hsubsection=\subsection
1584: \let\Hsubsubsection=\subsubsection
1585: \let\Hparagraph=\paragraph
1586: \let\Hsubparagraph=\subparagraph
1587: \let\Hsubsubparagraph=\subsubparagraph
1588:
1589: \ifx\c@subparagraph\undefined
1590: \newcounter{lsubsubparagraph}[lsubparagraph]
1591: \else
1592: \newcounter{lsubsubparagraph}[subparagraph]
1593: \fi
1594:
1595: %
1596: % The following definitions are specific to LaTeX2e:
1597: % (They must be commented out for LaTeX 2.09)
1598: %
1599: \expandafter\ifx\csname part\endcsname\relax\else
1600: \renewcommand{\part}{\@ifstar{\stepcounter{lpart}%
1601: \bgroup\def\tmp{*}\H@part}{\bgroup\def\tmp{}\H@part}}\fi
1602: \newcommand{\H@part}[1][]{\def\tmp@a{#1}\check@align
1603: \expandafter\egroup\expandafter\Hpart\tmp}
1604:
1605: \ifx\Hchapter\relax\else
1606: \def\chapter{\resetsections \@ifstar{\stepcounter{lchapter}%
1607: \bgroup\def\tmp{*}\H@chapter}{\bgroup\def\tmp{}\H@chapter}}\fi
1608: \newcommand{\H@chapter}[1][]{\def\tmp@a{#1}\check@align
1609: \expandafter\egroup\expandafter\Hchapter\tmp}
1610:
1611: \renewcommand{\section}{\resetsubsections
1612: \@ifstar{\stepcounter{lsection}\bgroup\def\tmp{*}%
1613: \H@section}{\bgroup\def\tmp{}\H@section}}
1614: \newcommand{\H@section}[1][]{\def\tmp@a{#1}\check@align
1615: \expandafter\egroup\expandafter\Hsection\tmp}
1616:
1617: \renewcommand{\subsection}{\resetsubsubsections
1618: \@ifstar{\stepcounter{lsubsection}\bgroup\def\tmp{*}%
1619: \H@subsection}{\bgroup\def\tmp{}\H@subsection}}
1620: \newcommand{\H@subsection}[1][]{\def\tmp@a{#1}\check@align
1621: \expandafter\egroup\expandafter\Hsubsection\tmp}
1622:
1623: \renewcommand{\subsubsection}{\resetparagraphs
1624: \@ifstar{\stepcounter{lsubsubsection}\bgroup\def\tmp{*}%
1625: \H@subsubsection}{\bgroup\def\tmp{}\H@subsubsection}}
1626: \newcommand{\H@subsubsection}[1][]{\def\tmp@a{#1}\check@align
1627: \expandafter\egroup\expandafter\Hsubsubsection\tmp}
1628:
1629: \renewcommand{\paragraph}{\resetsubparagraphs
1630: \@ifstar{\stepcounter{lparagraph}\bgroup\def\tmp{*}%
1631: \H@paragraph}{\bgroup\def\tmp{}\H@paragraph}}
1632: \newcommand\H@paragraph[1][]{\def\tmp@a{#1}\check@align
1633: \expandafter\egroup\expandafter\Hparagraph\tmp}
1634:
1635: \ifx\Hsubparagraph\relax\else\@ifundefined{subparagraph}{}{%
1636: \renewcommand{\subparagraph}{\resetsubsubparagraphs
1637: \@ifstar{\stepcounter{lsubparagraph}\bgroup\def\tmp{*}%
1638: \H@subparagraph}{\bgroup\def\tmp{}\H@subparagraph}}}\fi
1639: \newcommand\H@subparagraph[1][]{\def\tmp@a{#1}\check@align
1640: \expandafter\egroup\expandafter\Hsubparagraph\tmp}
1641:
1642: \ifx\Hsubsubparagraph\relax\else\@ifundefined{subsubparagraph}{}{%
1643: \def\subsubparagraph{%
1644: \@ifstar{\stepcounter{lsubsubparagraph}\bgroup\def\tmp{*}%
1645: \H@subsubparagraph}{\bgroup\def\tmp{}\H@subsubparagraph}}}\fi
1646: \newcommand\H@subsubparagraph[1][]{\def\tmp@a{#1}\check@align
1647: \expandafter\egroup\expandafter\Hsubsubparagraph\tmp}
1648:
1649: \def\check@align{\def\empty{}\ifx\tmp@a\empty
1650: \else\def\tmp@b{center}\ifx\tmp@a\tmp@b\let\tmp@a\empty
1651: \else\def\tmp@b{left}\ifx\tmp@a\tmp@b\let\tmp@a\empty
1652: \else\def\tmp@b{right}\ifx\tmp@a\tmp@b\let\tmp@a\empty
1653: \else\expandafter\def\expandafter\tmp@a\expandafter{\expandafter[\tmp@a]}%
1654: \fi\fi\fi \def\empty{}\ifx\tmp\empty\let\tmp=\tmp@a \else
1655: \expandafter\def\expandafter\tmp\expandafter{\expandafter*\tmp@a}%
1656: \fi\fi}
1657: %
1658: \def\resetsections{\setcounter{section}{0}\setcounter{lsection}{0}%
1659: \reset@dependents{section}\resetsubsections }
1660: \def\resetsubsections{\setcounter{subsection}{0}\setcounter{lsubsection}{0}%
1661: \reset@dependents{subsection}\resetsubsubsections }
1662: \def\resetsubsubsections{\setcounter{subsubsection}{0}\setcounter{lsubsubsection}{0}%
1663: \reset@dependents{subsubsection}\resetparagraphs }
1664: %
1665: \def\resetparagraphs{\setcounter{lparagraph}{0}\setcounter{lparagraph}{0}%
1666: \reset@dependents{paragraph}\resetsubparagraphs }
1667: \def\resetsubparagraphs{\ifx\c@subparagraph\undefined\else
1668: \setcounter{subparagraph}{0}\fi \setcounter{lsubparagraph}{0}%
1669: \reset@dependents{subparagraph}\resetsubsubparagraphs }
1670: \def\resetsubsubparagraphs{\ifx\c@subsubparagraph\undefined\else
1671: \setcounter{subsubparagraph}{0}\fi \setcounter{lsubsubparagraph}{0}}
1672: %
1673: \def\reset@dependents#1{\begingroup\let \@elt \@stpelt
1674: \csname cl@#1\endcsname\endgroup}
1675: %
1676: %
1677: % Define a helper macro to dump a single \secounter command to a file.
1678: %
1679: \newcommand{\DumpPtr}[2]{%
1680: \count255=\arabic{#1}\def\dummy{dummy}\def\tmp{#2}%
1681: \ifx\tmp\dummy\def\ctr{#1}\else
1682: \def\ctr{#2}\advance\count255 by \arabic{#2}\fi
1683: \immediate\write\ptrfile{%
1684: \noexpand\setcounter{\ctr}{\number\count255}}}
1685: %\expandafter\noexpand\expandafter\setcounter\expandafter{\ctr}{\number\count255}}}
1686:
1687: %
1688: % Define a helper macro to dump all counters to the file.
1689: % The value for each counter will be the sum of the l-counter
1690: % actual LaTeX section counter.
1691: % Also dump an \htmlhead{section-command}{section title} command
1692: % to the file.
1693: %
1694: \newwrite\ptrfile
1695: \def\DumpCounters#1#2#3#4{%
1696: \begingroup\let\protect=\noexpand
1697: \immediate\openout\ptrfile = #1.ptr
1698: \DumpPtr{part}{lpart}%
1699: \ifx\Hchapter\relax\else\DumpPtr{chapter}{lchapter}\fi
1700: \DumpPtr{section}{lsection}%
1701: \DumpPtr{subsection}{lsubsection}%
1702: \DumpPtr{subsubsection}{lsubsubsection}%
1703: \DumpPtr{paragraph}{lparagraph}%
1704: \DumpPtr{subparagraph}{lsubparagraph}%
1705: \DumpPtr{equation}{dummy}%
1706: \DumpPtr{footnote}{dummy}%
1707: \def\tmp{#4}\ifx\tmp\@empty
1708: \immediate\write\ptrfile{\noexpand\htmlhead{#2}{#3}}\else
1709: \immediate\write\ptrfile{\noexpand\htmlhead[#4]{#2}{#3}}\fi
1710: \dumpcitestatus \dumpcurrentcolor
1711: \immediate\closeout\ptrfile
1712: \endgroup }
1713:
1714:
1715: %% interface to natbib.sty
1716:
1717: \def\dumpcitestatus{}
1718: \def\loadcitestatus{\def\dumpcitestatus{%
1719: \ifciteindex\immediate\write\ptrfile{\noexpand\citeindextrue}%
1720: \else\immediate\write\ptrfile{\noexpand\citeindexfalse}\fi }%
1721: }
1722: \@ifpackageloaded{natbib}{\loadcitestatus}{%
1723: \AtBeginDocument{\@ifpackageloaded{natbib}{\loadcitestatus}{}}}
1724:
1725:
1726: %% interface to color.sty
1727:
1728: \def\dumpcurrentcolor{}
1729: \def\loadsegmentcolors{%
1730: \let\real@pagecolor=\pagecolor
1731: \let\pagecolor\segmentpagecolor
1732: \let\segmentcolor\color
1733: \ifx\current@page@color\undefined \def\current@page@color{{}}\fi
1734: \def\dumpcurrentcolor{\bgroup\def\@empty@{{}}%
1735: \expandafter\def\expandafter\tmp\space####1@{\def\thiscol{####1}}%
1736: \ifx\current@color\@empty@\def\thiscol{}\else
1737: \expandafter\tmp\current@color @\fi
1738: \immediate\write\ptrfile{\noexpand\segmentcolor{\thiscol}}%
1739: \ifx\current@page@color\@empty@\def\thiscol{}\else
1740: \expandafter\tmp\current@page@color @\fi
1741: \immediate\write\ptrfile{\noexpand\segmentpagecolor{\thiscol}}%
1742: \egroup}%
1743: \global\let\loadsegmentcolors=\relax
1744: }
1745:
1746: % These macros are needed within images.tex since this inputs
1747: % the <segment>.ptr files for a segment, so that counters are
1748: % colors are synchronised.
1749: %
1750: \newcommand{\segmentpagecolor}[1][]{%
1751: \@ifpackageloaded{color}{\loadsegmentcolors\bgroup
1752: \def\tmp{#1}\ifx\@empty\tmp\def\next{[]}\else\def\next{[#1]}\fi
1753: \expandafter\segmentpagecolor@\next}%
1754: {\@gobble}}
1755: \def\segmentpagecolor@[#1]#2{\def\tmp{#1}\def\tmpB{#2}%
1756: \ifx\tmpB\@empty\let\next=\egroup
1757: \else
1758: \let\realendgroup=\endgroup
1759: \def\endgroup{\edef\next{\noexpand\realendgroup
1760: \def\noexpand\current@page@color{\current@color}}\next}%
1761: \ifx\tmp\@empty\real@pagecolor{#2}\def\model{}%
1762: \else\real@pagecolor[#1]{#2}\def\model{[#1]}%
1763: \fi
1764: \edef\next{\egroup\def\noexpand\current@page@color{\current@page@color}%
1765: \noexpand\real@pagecolor\model{#2}}%
1766: \fi\next}
1767: %
1768: \newcommand{\segmentcolor}[2][named]{\@ifpackageloaded{color}%
1769: {\loadsegmentcolors\segmentcolor[#1]{#2}}{}}
1770:
1771: \@ifpackageloaded{color}{\loadsegmentcolors}{\let\real@pagecolor=\@gobble
1772: \AtBeginDocument{\@ifpackageloaded{color}{\loadsegmentcolors}{}}}
1773:
1774:
1775: % Define the \segment[align]{file}{section-command}{section-title} command,
1776: % and its helper macros. This command does four things:
1777: % 1) Begins a new LaTeX section;
1778: % 2) Writes a list of section counters to file.ptr, each
1779: % of which represents the sum of the LaTeX section
1780: % counters, and the l-counters, defined above;
1781: % 3) Write an \htmlhead{section-title} command to file.ptr;
1782: % 4) Inputs file.tex.
1783:
1784: \newcommand{\segment}{\@ifstar{\@@htmls}{\@@html}}
1785: %\tracingall
1786: \newcommand{\@endsegment}[1][]{}
1787: \let\endsegment\@endsegment
1788: \newcommand{\@@htmls}[1][]{\@@htmlsx{#1}}
1789: \newcommand{\@@html}[1][]{\@@htmlx{#1}}
1790: \def\@@htmlsx#1#2#3#4{\csname #3\endcsname* {#4}%
1791: \DumpCounters{#2}{#3*}{#4}{#1}\input{#2}}
1792: \def\@@htmlx#1#2#3#4{\csname #3\endcsname {#4}%
1793: \DumpCounters{#2}{#3}{#4}{#1}\input{#2}}
1794: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1795: %%% Addition ADASS XIII (FO)
1796: %%% This macro contains both reference and page number
1797: \def\adassref#1#2{#2}
1798: %%% Just a marker
1799: \def\ok{}
1800: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1801: