Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move simple commands to .sty file #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
290 changes: 2 additions & 288 deletions cls/aastex62.cls
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

\def\currversion{6.2}

\usepackage{astro}

%%
%% These files are distributed
%% WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down Expand Up @@ -1516,214 +1518,6 @@ the#1\endcsname}
\addtocounter{figure}{\m@ne}%
}%

\newcommand\phn{\phantom{0}}%
\newcommand\phd{\phantom{.}}%
\newcommand\phs{\phantom{$-$}}%
\newcommand\phm[1]{\phantom{#1}}%
\let\la=\lesssim % For Springer A&A compliance...
\let\ga=\gtrsim
\newcommand\sq{\mbox{\rlap{$\sqcap$}$\sqcup$}}%
\newcommand\arcdeg{\mbox{$^\circ$}}%
\newcommand\arcmin{\mbox{$^\prime$}}%
\newcommand\arcsec{\mbox{$^{\prime\prime}$}}%
\newcommand\fd{\mbox{$.\!\!^{\mathrm d}$}}%
\newcommand\fh{\mbox{$.\!\!^{\mathrm h}$}}%
\newcommand\fm{\mbox{$.\!\!^{\mathrm m}$}}%
\newcommand\fs{\mbox{$.\!\!^{\mathrm s}$}}%
\newcommand\fdg{\mbox{$.\!\!^\circ$}}%
\newcommand\farcm@mss{\mbox{$.\mkern-4mu^\prime$}}%
\let\farcm\farcm@mss
\newcommand\farcs@mss{\mbox{$.\!\!^{\prime\prime}$}}%
\let\farcs\farcs@mss
\newcommand\fp{\mbox{$.\!\!^{\scriptscriptstyle\mathrm p}$}}%
\newcommand\micron{\mbox{$\mu$m}}%
\def\farcm@apj{%
\mbox{.\kern -0.7ex\raisebox{.9ex}{\scriptsize$\prime$}}%
}%
\def\farcs@apj{%
\mbox{%
\kern 0.13ex.%
\kern -0.95ex\raisebox{.9ex}{\scriptsize$\prime\prime$}%
\kern -0.1ex%
}%
}%


\newcommand\ion[2]{#1$\;${%
\ifx\@currsize\normalsize\small \else
\ifx\@currsize\small\footnotesize \else
\ifx\@currsize\footnotesize\scriptsize \else
\ifx\@currsize\scriptsize\tiny \else
\ifx\@currsize\large\normalsize \else
\ifx\@currsize\Large\large
\fi\fi\fi\fi\fi\fi
\rmfamily\@Roman{#2}}\relax}%

\renewcommand\case[2]{\mbox{$\frac{#1}{#2}$}}%
\renewcommand\slantfrac{\case}%
\newcommand\onehalf{\slantfrac{1}{2}}%
\newcommand\onethird{\slantfrac{1}{3}}%
\newcommand\twothirds{\slantfrac{2}{3}}%
\newcommand\onequarter{\slantfrac{1}{4}}%
\newcommand\threequarters{\slantfrac{3}{4}}%
\newcommand\ubvr{\mbox{$U\!BV\!R$}}%% UBVR system
\newcommand\ub{\mbox{$U\!-\!B$}}% % U-B
\newcommand\bv{\mbox{$B\!-\!V$}}% % B-V
\renewcommand\vr{\mbox{$V\!-\!R$}}% % V-R ++
\newcommand\ur{\mbox{$U\!-\!R$}}% % U-R

%% need this change so that it works correctly in tables:
{\catcode`\$=\active
\gdef\nodata{ ~$\cdots$~ }}%

\newcommand\diameter{\ooalign{\hfil/\hfil\crcr\mathhexbox20D}}%
\newcommand\degr{\arcdeg}%
\newcommand\Sun{\sun}%
\newcommand\Sol{\sun}%
\newcommand\sun{\odot}%
\newcommand\Mercury{\astro{\char1}}% Mercury symbol, "1"
\newcommand\Venus{\astro{\char2}}% Venus symbol, "2"
\newcommand\Earth{\earth}%
\newcommand\Terra{\earth}%
\newcommand\earth{\oplus}%
\newcommand\Mars{\astro{\char4}}% Mars symbol, "4"
\newcommand\Jupiter{\astro{\char5}}% Jupiter symbol, "5"
\newcommand\Saturn{\astro{\char6}}% Saturn symbol, "6"
\newcommand\Uranus{\astro{\char7}}% Uranus symbol, "7"
\newcommand\Neptune{\astro{\char8}}% Neptune symbol, "8"
\newcommand\Pluto{\astro{\char9}}% Pluo symbol, "9"
\newcommand\Moon{\astro{\char10}}% Moon symbol, "M"
\newcommand\Luna{\Moon}%
\newcommand\Aries{\astro{\char11}}%
\newcommand\VEq{\Aries}% vernal equinox (Aries)
\newcommand\Taurus{\astro{\char12}}%
\newcommand\Gemini{\astro{\char13}}%
\newcommand\Cancer{\astro{\char14}}%
\newcommand\Leo{\astro{\char15}}%
\newcommand\Virgo{\astro{\char16}}%
\newcommand\Libra{\astro{\char17}}%
\newcommand\AEq{\Libra}% autumnal equinox (Libra)
\newcommand\Scorpius{\astro{\char18}}%
\newcommand\Sagittarius{\astro{\char19}}%
\newcommand\Capricornus{\astro{\char20}}%
\newcommand\Aquarius{\astro{\char21}}%
\newcommand\Pisces{\astro{\char22}}%


\newcommand\sbond{\chem@bnd{\@sbnd}}%
\newcommand\dbond{\chem@bnd{\@dbnd}}%
\newcommand\tbond{\chem@bnd{\@tbnd}}%
\def\chem@bnd#1{%
{%
\kern.1em\relax
\setbox\z@\hbox{M}%
\dimen@ii.8em\relax
\p@=.1em\relax
\dimen@.5\ht\z@\dimen@i-\dimen@
\advance\dimen@1.5\p@\advance\dimen@i-1.0\p@
#1%
\kern.1em\relax
}%
}%
\def\@sbnd{%
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
}%
\def\@dbnd{%
\advance\dimen@-0.5\p@\advance\dimen@i0.5\p@
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\hskip-\dimen@ii
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
}%
\def\@tbnd{%
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\hskip-\dimen@ii
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\hskip-\dimen@ii
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
}%

\newcommand\anchor[2]{#2}%
\renewcommand\url{\@dblarg\@url}%
\def\@url[#1]{\anchor{#1}}%

\let\jnl@style=\rmfamily
\def\ref@jnl#1{{\jnl@style#1}}%
\newcommand\aj{\ref@jnl{AJ}}% % Astronomical Journal
\newcommand\araa{\ref@jnl{ARA\&A}}% % Annual Review of Astron and Astrophys
\renewcommand\apj{\ref@jnl{ApJ}}% % Astrophysical Journal ++
\newcommand\apjl{\ref@jnl{ApJL}} % Astrophysical Journal, Letters
\newcommand\apjs{\ref@jnl{ApJS}}% % Astrophysical Journal, Supplement
\renewcommand\ao{\ref@jnl{ApOpt}}% % Applied Optics ++
\newcommand\apss{\ref@jnl{Ap\&SS}}% % Astrophysics and Space Science
\newcommand\aap{\ref@jnl{A\&A}}% % Astronomy and Astrophysics
\newcommand\aapr{\ref@jnl{A\&A~Rv}}% % Astronomy and Astrophysics Reviews
\newcommand\aaps{\ref@jnl{A\&AS}}% % Astronomy and Astrophysics, Supplement
\newcommand\azh{\ref@jnl{AZh}}% % Astronomicheskii Zhurnal
\newcommand\baas{\ref@jnl{BAAS}}% % Bulletin of the AAS
\newcommand\icarus{\ref@jnl{Icarus}}% % Icarus
\newcommand\jrasc{\ref@jnl{JRASC}}% % Journal of the RAS of Canada
\newcommand\memras{\ref@jnl{MmRAS}}% % Memoirs of the RAS
\newcommand\mnras{\ref@jnl{MNRAS}}% % Monthly Notices of the RAS
\renewcommand\pra{\ref@jnl{PhRvA}}% % Physical Review A: General Physics ++
\renewcommand\prb{\ref@jnl{PhRvB}}% % Physical Review B: Solid State ++
\renewcommand\prc{\ref@jnl{PhRvC}}% % Physical Review C ++
\renewcommand\prd{\ref@jnl{PhRvD}}% % Physical Review D ++
\renewcommand\pre{\ref@jnl{PhRvE}}% % Physical Review E ++
\renewcommand\prl{\ref@jnl{PhRvL}}% % Physical Review Letters
\newcommand\pasp{\ref@jnl{PASP}}% % Publications of the ASP
\newcommand\pasj{\ref@jnl{PASJ}}% % Publications of the ASJ
\newcommand\qjras{\ref@jnl{QJRAS}}% % Quarterly Journal of the RAS
\newcommand\skytel{\ref@jnl{S\&T}}% % Sky and Telescope
\newcommand\solphys{\ref@jnl{SoPh}}% % Solar Physics
\newcommand\sovast{\ref@jnl{Soviet~Ast.}}% % Soviet Astronomy
\newcommand\ssr{\ref@jnl{SSRv}}% % Space Science Reviews
\newcommand\zap{\ref@jnl{ZA}}% % Zeitschrift fuer Astrophysik
\renewcommand\nat{\ref@jnl{Nature}}% % Nature
\newcommand\iaucirc{\ref@jnl{IAUC}}% % IAU Cirulars
\newcommand\aplett{\ref@jnl{Astrophys.~Lett.}}% % Astrophysics Letters
\newcommand\apspr{\ref@jnl{Astrophys.~Space~Phys.~Res.}}% % Astrophysics Space Physics Research
\newcommand\bain{\ref@jnl{BAN}}% % Bulletin Astronomical Institute of the Netherlands
\newcommand\fcp{\ref@jnl{FCPh}}% % Fundamental Cosmic Physics
\newcommand\gca{\ref@jnl{GeoCoA}}% % Geochimica Cosmochimica Acta
\newcommand\grl{\ref@jnl{Geophys.~Res.~Lett.}}% % Geophysics Research Letters
\renewcommand\jcp{\ref@jnl{JChPh}}% % Journal of Chemical Physics
\newcommand\jgr{\ref@jnl{J.~Geophys.~Res.}}% % Journal of Geophysics Research
\newcommand\jqsrt{\ref@jnl{JQSRT}}% % Journal of Quantitiative Spectroscopy and Radiative Trasfer
\newcommand\memsai{\ref@jnl{MmSAI}}% % Mem. Societa Astronomica Italiana
\newcommand\nphysa{\ref@jnl{NuPhA}}% % Nuclear Physics A
\newcommand\physrep{\ref@jnl{PhR}}% % Physics Reports
\newcommand\physscr{\ref@jnl{PhyS}}% % Physica Scripta
\newcommand\planss{\ref@jnl{Planet.~Space~Sci.}}% % Planetary Space Science
\newcommand\procspie{\ref@jnl{Proc.~SPIE}}% % Proceedings of the SPIE

\newcommand\actaa{\ref@jnl{AcA}}% % Acta Astronomica
\newcommand\caa{\ref@jnl{ChA\&A}}% % Chinese Astronomy and Astrophysics
\newcommand\cjaa{\ref@jnl{ChJA\&A}}% % Chinese Journal of Astronomy and Astrophysics
\newcommand\jcap{\ref@jnl{JCAP}}% % Journal of Cosmology and Astroparticle Physics
\newcommand\na{\ref@jnl{NewA}}% % New Astronomy
\newcommand\nar{\ref@jnl{NewAR}}% % New Astronomy Review
\newcommand\pasa{\ref@jnl{PASA}}% % Publications of the Astron. Soc. of Australia
\newcommand\rmxaa{\ref@jnl{RMxAA}}% % Revista Mexicana de Astronomia y Astrofisica

%% added feb 9, 2016
\newcommand\maps{\ref@jnl{M\&PS}}% Meteoritics and Planetary Science
\newcommand\aas{\ref@jnl{AAS Meeting Abstracts}}% American Astronomical Society Meeting Abstracts
\newcommand\dps{\ref@jnl{AAS/DPS Meeting Abstracts}}% American Astronomical Society/Division for Planetary Sciences Meeting Abstracts



\let\astap=\aap
\let\apjlett=\apjl
\let\apjsupp=\apjs
\let\applopt=\ao

\newcommand\ulap[1]{\vbox\@to\z@{{\vss#1}}}%
\newcommand\dlap[1]{\vbox\@to\z@{{#1\vss}}}%


\newcounter{table@save}

Expand Down Expand Up @@ -5917,86 +5711,6 @@ on page

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% From earlier version of AASTeX, for usefulness and
%% backward compatibility, with some requested additions

\let\jnl@style=\rmfamily
\def\ref@jnl#1{{\jnl@style#1}}%

%%%
\renewcommand\memsai{\ref@jnl{Mem.~Soc.~Astron.~Italiana}}%
% Mem. Societa Astronomica Italiana
%% longer version:
\newcommand\memsocai{Mem. Societ\`a Astronomica Italiana}
\newcommand\aspconf{Ast. Soc. of the Pac. Conference Series}

\let\astap=\aap
\let\apjlett=\apjl
\let\apjsupp=\apjs
\let\applopt=\ao

%%% More useful commands from Earlier version of Aastex:
\let\la=\lesssim % For Springer A&A compliance...
\let\ga=\gtrsim

\let\farcm\farcm@mss
\let\farcs\farcs@mss

\def\farcm@apj{%
\mbox{.\kern -0.7ex\raisebox{.9ex}{\scriptsize$\prime$}}%
}%

\def\farcs@apj{%
\mbox{%
\kern 0.13ex.%
\kern -0.95ex\raisebox{.9ex}{\scriptsize$\prime\prime$}%
\kern -0.1ex%
}%
}%

\def\chem@bnd#1{%
{%
\kern.1em\relax
\setbox\z@\hbox{M}%
\dimen@ii.8em\relax
\p@=.1em\relax
\dimen@.5\ht\z@\dimen@i-\dimen@
\advance\dimen@1.5\p@\advance\dimen@i-1.0\p@
#1%
\kern.1em\relax
}%
}%
\def\@sbnd{%
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
}%
\def\@dbnd{%
\advance\dimen@-0.5\p@\advance\dimen@i0.5\p@
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\hskip-\dimen@ii
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
}%
\def\@tbnd{%
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\hskip-\dimen@ii
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
\advance\dimen@-1.5\p@\advance\dimen@i1.5\p@
\hskip-\dimen@ii
\vrule\@height\dimen@\@depth\dimen@i\@width\dimen@ii\nobreak
}%

\renewcommand\LaTeX{%
\leavevmode
L%
\raise.42ex\hbox{%
\count@=\the\fam
$\fam\count@\scriptstyle\kern-.3em A$%
}%
\kern-.15em\TeX
}%

%% added Feb 2, 2016, redefining definition of \caption made with hyperref
%% package. Making \caption[] be the default, to prevent sending caption
Expand Down
Binary file modified docs/aassymbols.pdf
Binary file not shown.
Loading