The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

# -*- mode: Perl -*-
# /=====================================================================\ #
# | emulateapj | #
# | Implementation for LaTeXML | #
# |=====================================================================| #
# | Part of LaTeXML: | #
# | Public domain software, produced as part of work done by the | #
# | United States Government & not subject to copyright in the US. | #
# |---------------------------------------------------------------------| #
# | Thanks to the arXMLiv group for initial implementation | #
# | Released to the Public Domain | #
# |---------------------------------------------------------------------| #
# | Bruce Miller <bruce.miller@nist.gov> #_# | #
# \=========================================================ooo==U==ooo=/ #
package LaTeXML::Package::Pool;
use strict;
use warnings;
use LaTeXML::Package;
#**********************************************************************
# Except \fig, that collides in arXiv:astro-ph/0002091
my $saved_fig = LookupDefinition(T_CS('\fig'));
# Seems to be equivalent.
RequirePackage('aastex', withoptions => 1);
RequirePackage('epsf');
# ... Well, almost...
DefMacroI('\LongTables', undef, '');
Let('\BeginEnvironment', '\begin');
Let('\EndEnvironment', '\end');
# if we had a \fig, reinstate it
if ($saved_fig) {
$STATE->installDefinition($saved_fig, 'global');
AssignValue('\fig:locked' => 1, 'global'); }
# Hopefully, nobody is using these for real...
DefMacro('\BeforeBegin{}{}', '');
DefMacro('\BeforeEnd{}{}', '');
DefMacro('\AfterBegin{}{}', '');
DefMacro('\AfterEnd{}{}', '');
DefMacro('\ApjSectionMarkInTitle{}', '{#1.\ }');
DefMacro('\ApjSectionpenalty', '0');
DefMacro('\AppendixApjSectionMarkInTitle{}', '{#1.\ }');
DefMacro('\NullCom{}', '');
DefMacroI('\apjsecfont', undef, '\small');
DefMacroI('\lastfootnote', undef, '\small');
DefMacroI('\lastpagefootnote', undef, '\small');
DefMacroI('\lastpagefootnotes', undef, '\small');
DefMacro('\tableheadfrac{}', '');
DefMacro('\tabletypesize{}', '');
Let('\tablefontsize', '\tabletypesize');
DefMacro('\subtitle', '');
DefMacro('\submitted{}', '\@add@frontmatter{ltx:date}[role=submitted]{#1}');
DefMacro('\journalinfo{}', '\@add@frontmatter{ltx:note}[role=journal]{#1}');
DefMacro('\keywordsname', 'Subject headings');
# Vertical analogs of llap, rlap
DefMacro('\ulap{}', '\hbox{#1}');
DefMacro('\dlap{}', '\hbox{#1}');
Let('\tabcaption', '\caption');
DefMacro('\format@title@section{}', '\lx@tag[][.\space]{\thesection}#1');
DefMacro('\format@title@subsection{}', '\lx@tag[][.\space]{\thesubsection}#1');
DefMacro('\format@title@figure{}', '\lx@tag[][.\@@emdash\space]{\lx@fnum@@{figure}}#1');
DefMacro('\format@title@table{}', '\lx@tag{\lx@fnum@@{table}}#1');
# #======================================================================
1;