arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/aafixed.cls	2010-04-01 12:23:10.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/sim.cls	2010-04-01 17:48:33.000000000 +0200
@@ -1,5 +1,5 @@
 % This is aa.cls
-% A&A DOCUMENT CLASS -- version 6.0 for LaTeX2e
+% A&A DOCUMENT CLASS -- version 6.1 for LaTeX2e
 %
 % LaTeX document class for Astronomy and Astrophysics journal
 %
@@ -21,13 +21,12 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{aafixed}[2005/06/30 v6.0
+\ProvidesClass{aa}[2006/06/01 v6.1
 ^^JLaTeX document class for Astronomy and Astrophysics journal]
 \newcommand\@ptsize{}
 \newif\if@restonecol
 \newif\if@titlepage
 \@titlepagefalse
-%% June 2005
 \newif\if@longauth
 \@longauthfalse
 \newif\if@online
@@ -36,6 +35,9 @@
 \@rnotefalse
 \newif\if@oldversion
 \@oldversionfalse
+\newif\if@letter
+\@letterfalse
+
 %
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
@@ -66,10 +68,13 @@
    \renewcommand\newblock{\par}}%
 }
 %
-%% June 2005
 \DeclareOption{longauth}{\@longauthtrue}
 \DeclareOption{rnote}{\@rnotetrue}
 \DeclareOption{oldversion}{\@oldversiontrue}
+%% January 2008 - abstract
+\DeclareOption{normal}{\@oldversiontrue}
+\DeclareOption{structabstract}{\@oldversionfalse}
+\DeclareOption{letter}{\@lettertrue}
 %
 \let\if@runhead\iffalse
 \DeclareOption{runningheads}{\let\if@runhead\iftrue}
@@ -90,7 +95,7 @@
 \if\@ptsize 0
 %
    \renewcommand\normalsize{%
-      \@setfontsize\normalsize\@xpt{12}%
+      \@setfontsize\normalsize\@xpt{11}%
       \abovedisplayskip 8.55\p@ \@plus4\p@ \@minus5\p@
       \abovedisplayshortskip \z@ \@plus3\p@
       \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
@@ -98,7 +103,7 @@
       \let\@listi\@listI}
    \normalsize
    \newcommand\small{%
-      \@setfontsize\small\@ixpt{11}%
+      \@setfontsize\small\@ixpt{10}%
       \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
       \abovedisplayshortskip \z@ \@plus2\p@
       \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
@@ -109,7 +114,7 @@
       \belowdisplayskip \abovedisplayskip
    }
    \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
-   \newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
+   \newcommand\tiny{\@setfontsize\tiny\@viiipt\@ixpt}
    \newcommand\large{\@setfontsize\large\@xipt{13}}
    \newcommand\Large{\@setfontsize\Large\@xivpt{16}}
    \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{20}}
@@ -132,7 +137,7 @@
    \setlength\oddsidemargin   {-30\p@}
    \setlength\evensidemargin  {-30\p@}
    \setlength\marginparwidth  {48\p@}
-   \setlength\topmargin{-50pt}
+   \setlength\topmargin{-40pt}
    \setlength\footnotesep{8\p@}
    \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
    \setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
@@ -180,9 +185,8 @@
 %
 \let\footnotesize\small
 %
-\setlength{\textwidth}{180mm}
-\setlength{\textheight}{694pt}
-\setlength{\voffset}{50pt}
+\setlength{\textwidth}{184mm}
+\setlength{\textheight}{705pt}
 %
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
@@ -255,11 +259,9 @@
 \newdimen\headlineindent             % dimension for space between
 \headlineindent=1.166cm              % number and text of headings.
 \def\andname{and}
-\def\keywordname{{\sffamily\bfseries Key words.}}
+\def\keywordname{Key words.}
 \def\lastandname{, and}
 \def\mailname{{\it Correspondence to\/}:}
-\def\keywords{\par\addvspace\baselineskip\noindent\keywordname\
-\ignorespaces}
 \def\email#1{{e-mail: \tt#1}}
 % Used only by the publisher
 \def\AASection#1{}
@@ -283,7 +285,6 @@

 \let\@date\undefined

-%% June 2005
 \if@oldversion
 \long\def\abstract#1{\gdef\@abstract{#1}}
 \else
@@ -300,15 +301,18 @@
          {\sffamily\itshape Results.}\
          \if!#4! \@latex@error{The forth heading "Results" is mandatory in the abstract}{}
            {\it The forth heading "Results" is mandatory in the abstract}\\
-            \else\advance\number@fw@rds+1\pickupw@rd#4\\\let\WC@go\relax\fi
-         \if!#5! \else\advance\number@fw@rds+1{\sffamily\itshape Conclusions.}\ \pickupw@rd#5\let\WC@go\relax\fi
-         \ifnum\number@fw@rds>1400
+            \else\advance\number@fw@rds+1\pickupw@rd#4\let\WC@go\relax\fi
+         \if!#5! \else\\\advance\number@fw@rds+1{\sffamily\itshape Conclusions.}\ \pickupw@rd#5\let\WC@go\relax\fi
+         \ifnum\number@fw@rds>400
          \@latex@error{Around \number\number@fw@rds\space words in the abstract instead of 300}{}
          \else\relax\fi}}
 \fi

-%% June 2005
 \def\keywords#1{\gdef\@keywords{#1}}
+%% January 2007
+\def\topics#1{\gdef\@topics{#1}}
+\def\@topics{}
+

 \def\institute#1{\gdef\@institute{#1}}

@@ -391,7 +395,6 @@
      \noindent\hbox to\parindent{\hss$\m@th^{\@thefnmark}$ }##1}%
 }

-%% June 2005
 \newcommand\errorref{\@latex@error{Citations are not allowed in the abstract}{}}
 \newenvironment{stopref}{\let\cite\errorref\let\citet\errorref\let\citep\errorref}{}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -409,7 +412,6 @@

 \def\maketitle{\par
 \ch@ckobl{journalname}{Noname}
-%% June 2005
 \ch@ckobl{date}{Preprint online version: \today}
 \ch@ckobl{title}{A title should be given}
 \ch@ckobl{author}{Name(s) and initial(s) of author(s) should be given}
@@ -420,7 +422,6 @@
 \ch@ckoblabs{abstract}{An abstract should be given}{An abstract should be given}
 {An abstract should be given}{An abstract should be given}{An abstract should be given}
 \fi
-%%June 2005
 \ch@ckobl{keywords}{Keywords should be given}
 \begingroup
     \begin{stopref}
@@ -492,7 +493,6 @@
        {\def\and{\noexpand\protect\noexpand\and}%
        \protected@xdef\@author{\@author}}
     \fi
-%% June 2005
     \global\setbox\authrun=\hbox{\small\unboldmath\@author\unskip:
                                  \unhbox\titrun\if@rnote~\itshape\rnotname\fi}%
     \ifdim\wd\authrun>\instindent
@@ -522,7 +522,8 @@
  \global\let\@title\@empty
  \global\let\@subtitle\@empty
  \global\let\@abstract\@empty
-%% June 2005
+%%January 2007
+ \global\let\@topics\@empty
  \global\let\@keywords\@empty
  \global\let\keywords\relax
  \global\let\title\relax
@@ -540,17 +541,13 @@
 {\fontsize{18}{21}\selectfont\sffamily\bfseries Astrophysics}
 \end{tabular}}\copy254}

-%% June 2005
 \def\makeheadbox{{
 \hbox to\textwidth{%
 \if!\@idline!
 \hbox to0pt{\vbox{\hsize=40cc
 \baselineskip=12pt\hrule\hbox
 {\vrule\kern3pt\vbox{\kern3pt
-%\hb@xt@ 40cc{{\sl\@journalname}\ manuscript no.~\jobname
-%\hfill\copyright~ESO~\the\year}
-\hb@xt@ 40cc{A\&A 475, 169--185 consolidated with Erratum A\&A 499, 45
-  (changes in red)\hfill}
+\hb@xt@ 40cc{{\sl\@journalname}\ manuscript no.~\jobname \hfill\copyright~ESO~\the\year}
 \if!\@msnr!\hbox{\today}\else
 \hb@xt@ 30cc{\hfil\strut\LARGE\bfseries\smash{\@msnr}}\fi
 \kern3pt}\hfil\kern3pt\vrule}\hrule}\hss}\hfill
@@ -570,26 +567,36 @@
  \if@normhead
     \setbox\authrun=\vbox\bgroup
  \fi
- \begin{center}
+%% January 2007
+ \if!\@topics!\vskip32pt\else
   \vskip24pt
+ {\fontsize{12}{14}\selectfont\sffamily {\itshape \@topics} \hfill \fontsize{17}{20}\selectfont\sffamily Special feature}
+ \vskip12pt
+ \fi
+ \begin{center}
+%% Januray 2007
+%% \vskip24pt
+ \if@letter{\large \lettername}\fi
  {\LARGE \sffamily\bfseries\boldmath
   \hrule\@height\logodepth\@width\z@
   \pretolerance=10000
+  \vspace*{-12pt}
+  \pretolerance=10000
  \if!\@headnote!\else
    \noindent
    {\normalfont\itshape\ignorespaces\@headnote\par}\vskip 3.5mm
  \fi
   \noindent\ignorespaces
   \@title
-%% June 2005
   \if@rnote \\ \itshape \rnotename \fi
-  \par}\vskip 14pt\relax
+  \par}
+ \vskip 8pt\relax
  \if!\@subtitle!\else
    {\Large \sffamily\bfseries\boldmath
    \pretolerance=10000
-   \noindent\ignorespaces\@subtitle \par}\vskip 14pt
+   \noindent\ignorespaces\@subtitle \par}\vskip 10pt
  \fi
- \lineskip .5em
+%% \lineskip .5em
  \setbox0=\vbox{\setcounter{auth}{1}\def\and{\stepcounter{auth} }%
                 \hfuzz=2\textwidth\def\thanks##1{}\@author}%
  \value{inst}=\value{auth}%
@@ -599,8 +606,9 @@
  \vskip6pt
 \small\rm
  \if@longauth {\it (Affiliations can be found after the references)}  \else
+ \leftskip=.8cm\rightskip=\leftskip
  \institutename\fi
- \vskip 12pt \noindent\@date
+ \vskip 8pt \noindent\@date
  \if!\@dedic!\else
     \par
     \normalsize\it
@@ -608,7 +616,7 @@
     \noindent\@dedic
  \fi
  \if@longauth \end{center} \fi
- \vskip 12pt
+ \vskip 8pt
  \small\rm
  \if!\@abstract!\else
  \begin{center}
@@ -616,7 +624,8 @@
   \end{center}
   \@abstract
  \fi
- \vskip 12pt
+ \vskip 6pt
+ \small\rm
  \if!\@keywords!\else
  \noindent{\sffamily\bfseries\keywordname}\ \@keywords
  \fi
@@ -725,9 +734,9 @@
 \def\section{\@startsection{section}{1}{\z@}%
     {-16dd plus-4pt minus-4pt}{6dd}{\large\sffamily\bfseries}}
 \def\subsection{\@startsection{subsection}{2}{\z@}%
-    {-16dd}{6dd}{\large\sffamily\itshape}}
+    {-16dd}{6dd}{\normalsize\sffamily\itshape}}
 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
-    {-16dd}{6dd}{\large\sffamily}}
+    {-16dd}{6dd}{\normalsize\sffamily}}
 \def\paragraph{\@startsection{paragraph}{4}{\z@}%
     {-16dd}{-1pt}{\normalsize\sffamily}}

@@ -896,7 +905,6 @@
 \def\squareforqed{\hbox{\rlap{$\sqcap$}$\sqcup$}}
 \def\qed{\ifmmode\else\unskip\quad\fi\squareforqed}
 %
-%% June 2005 - a space between #1 and #2 has been added
 \newdimen\figgap\figgap=1cc
 \long\def\@makesidecaption#1#2{%
    \parbox[b]{\@tempdima}{\captionstyle{\floatlegendstyle
@@ -935,8 +943,20 @@
     \@makesidecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
   \endgroup}
 %
+% Online material
+\long\def\onlfig#1#2{\AtEndDocument{\Online\setcounter{figure}{#1}\addtocounter{figure}{-1}#2}\setcounter{figure}{#1}}
+\long\def\onltab#1#2{\AtEndDocument{\Online\setcounter{table}{#1}\addtocounter{table}{-1}#2}\setcounter{table}{#1}}
+\long\def\onllongtab#1#2{\AtEndDocument{\Online\setlength{\LTcapwidth}{\textwidth}\setcounter{table}{#1}%
+\addtocounter{table}{-1}\onecolumn#2\twocolumn}\setcounter{table}{#1}}
+\long\def\onllongtabL#1#2{\AtEndDocument{\Online\setlength{\LTcapwidth}{\textheight}\setcounter{table}{#1}%
+\addtocounter{table}{-1}\onecolumn#2\twocolumn}\setcounter{table}{#1}}
+\long\def\longtab#1#2{\setlength{\LTcapwidth}{\textwidth}%
+\setcounter{table}{#1}\addtocounter{table}{-1}\onecolumn#2\twocolumn\setcounter{table}{#1}}
+\long\def\longtabL#1#2{\setlength{\LTcapwidth}{\textheight}%
+\setcounter{table}{#1}\addtocounter{table}{-1}\onecolumn#2\twocolumn\setcounter{table}{#1}}
+%
 % Define \acknowledgements
-\def\acknowledgements{\par\addvspace{6pt}\small\rm
+\def\acknowledgements{\par\addvspace{6pt}\tiny\rm
 \trivlist\item[\hskip\labelsep{\em Acknowledgements.\/}]}
 \def\endacknowledgements{\endtrivlist\addvspace{6pt}}
 %
@@ -990,11 +1010,14 @@
      \fi
     }
 \fi
-\newcommand\appendix{\par
+% Appendix
+\newcounter{append}
+\setcounter{append}{0}
+\newenvironment{appendix}{\par
 \def\@hangfrom##1{\setbox\@tempboxa\hbox{{##1}}%
       \hangindent \parindent\noindent\box\@tempboxa}
 \def\@seccntformat##1{\csname theap##1\endcsname\hskip\betweenumberspace}
-  \setcounter{section}{0}%
+  \setcounter{section}{\value{append}}%
   \setcounter{subsection}{0}%
   \setcounter{figure}{0}%
   \setcounter{table}{0}%
@@ -1014,6 +1037,19 @@
   \setcounter{figure}{0}%
   \def\thefigure{\@Alph\c@section\@arabic\c@auth\alph{figure}}%
   \def\resetsubfig{\setcounter{figure}{\value{auth}}}}}
+{
+  \setcounter{section}{0}%
+  \setcounter{subsection}{0}%
+  \setcounter{figure}{0}%
+  \setcounter{table}{0}%
+  \renewcommand\thesection{\c@section}%
+  \renewcommand\thesubsection{\@arabic\c@subsection}%
+  \renewcommand\thesubsubsection{\@arabic\c@subsubsection}%
+  \renewcommand\theequation{\@arabic\c@equation}%
+  \renewcommand\thefigure{\@arabic\c@figure}%
+  \renewcommand\thetable{\@arabic\c@table}%
+  \addtocounter{append}{1}
+}
 %
 \setlength\arraycolsep{2.5\p@}
 \setlength\tabcolsep{6\p@}
@@ -1047,10 +1083,10 @@
 \def\ext@table{lot}
 \def\fnum@table{\tablename~\thetable}
 \newenvironment{table}
-               {\@float{table}}
+               {\small\@float{table}}
                {\end@float}
 \newenvironment{table*}
-               {\@dblfloat{table}}
+               {\small\@dblfloat{table}}
                {\end@dblfloat}

 \def \@floatboxreset {%
@@ -1099,7 +1135,7 @@
    \vskip\tabcapgap
  \fi}
 % Define `acknowledgement' environment
-\def\acknowledgement{\par\addvspace{17pt}\small\rm
+\def\acknowledgement{\par\addvspace{17pt}\tiny\rm
 \trivlist\item[\hskip\labelsep
 {\it\ackname}]}
 \def\endacknowledgement{\endtrivlist\addvspace{6pt}}
@@ -1183,7 +1219,7 @@
 \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
 \newenvironment{thebibliography}[1]
      {\begingroup\section*{{\normalsize\refname}
-        \@mkboth{\refname}{\refname}}\small
+        \@mkboth{\refname}{\refname}}\tiny
       \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\bibindent
@@ -1194,8 +1230,9 @@
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
       \sloppy\clubpenalty4000\widowpenalty4000%
       \sfcode`\.\@m}
-%% June 2005
-     {\endlist\par\endgroup \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}}%
+     {\endlist\par\endgroup\if@longauth\kern6pt\hrule\kern6pt\institutename\@longauthfalse\fi
+      \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}}%
+

 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
 \let\@openbib@code\@empty
@@ -1256,10 +1293,10 @@
 \newcommand\tablename{Table}
 \newcommand\partname{Part}
 \newcommand\appendixname{Appendix}
-%% June 2005
 \newcommand\abstractname{ABSTRACT}
 \newcommand\rnotename{(Research Note)}
 \newcommand\rnotname{(RN)}
+\newcommand\lettername{\textsc{Letter to the Editor}}
 \newcommand\ackname{Acknowledgements.}
 \newcommand\noteaddname{Note added in proof}
 \newcommand\today{}
@@ -1267,7 +1304,7 @@
   January\or February\or March\or April\or May\or June\or
   July\or August\or September\or October\or November\or December\fi
   \space\number\day, \number\year}
-\setlength\columnsep{4mm}
+\setlength\columnsep{12pt}
 \setlength\columnseprule{0\p@}
 \frenchspacing
 \clubpenalty=10000
@@ -1281,7 +1318,7 @@
   \def\baselinestretch{1.5}
   \let\AALogo\relax
   \onecolumn
-  \AtEndDocument{\listofobjects}%
+  \AtEndDocument{\listofobjects}
 \else
 \if@onecolumn
 \onecolumn
@@ -1448,7 +1485,6 @@
 to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}
 {\setbox0=\hbox{$\scriptscriptstyle\rm C$}\hbox{\hbox
 to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}}}
-%%% June 2002
 \def\bbbq{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm
 Q$}\hbox{\raise
 0.05\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}
@@ -1604,11 +1640,8 @@
 \let\applopt=\ao
 %
 \uchyph=0
-%% June 2005
-\AtEndDocument{\listofobjects
-\if@online\else\if@longauth\hrule\kern6pt\institutename\fi\fi}
-\long\def\Online{
-\@onlinetrue\if@longauth\hrule\kern6pt\institutename\fi
+%
+\long\def\Online{\if@online\else\@onlinetrue
 \clearpage
 \def\ps@Onlheadings{%
     \let\@oddfoot\@empty\let\@evenfoot\@empty
@@ -1620,10 +1653,42 @@
     }
 \setcounter{page}{1}
 \pagestyle{Onlheadings}
-\twocolumn[\vspace*{4cm}\noindent{\sffamily\bfseries\Huge\centerline{Online Material}}]
-\vfill
-\clearpage
-}
+%% 2008
+%% \twocolumn[\vspace*{4cm}\noindent{\sffamily\bfseries\Huge\centerline{Online Material}}]
+%% \vfill
+%% \clearpage
+\fi}
+\AtBeginDocument{\@ifpackageloaded{natbib}{\let\bibpreamble\relax\newcommand{\bibfont}{\tiny}%
+\renewenvironment{thebibliography}[1]{%
+ \bibsection\parindent \z@\bibpreamble\bibfont\list
+   {\@biblabel{\arabic{NAT@ctr}}}{\@bibsetup{#1}%
+    \setcounter{NAT@ctr}{0}}%
+    \ifNAT@openbib
+      \renewcommand\newblock{\par}
+    \else
+      \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
+    \fi
+    \sloppy\clubpenalty4000\widowpenalty4000
+    \sfcode`\.=1000\relax
+    \let\citeN\cite \let\shortcite\cite
+    \let\citeasnoun\cite
+ }{\if@longauth\kern6pt\hrule\kern6pt\institutename\@longauthfalse\fi\def\@noitemerr{%
+  \PackageWarning{natbib}
+     {Empty `thebibliography' environment}}%
+  \endlist\vskip-\lastskip}}{}
+\@ifpackageloaded{longtable}{%
+\def\LT@makecaption#1#2#3{%
+  \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
+    \small\sbox\@tempboxa{#1{{\bfseries#2.} }#3}%
+    \ifdim\wd\@tempboxa>\hsize
+      #1{{\bfseries#2.} }#3%
+    \else
+      \hbox to\hsize{\box\@tempboxa\hfil}%
+    \fi
+    \endgraf\vskip\baselineskip}%
+  \hss}}}}{}
+}%AtBeginDocument
+%
 \endinput
 %%
 %% End of file `aa.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns