2
# /======================================================= #
3
# | revtex3_support.sty - Implementation for LaTeXML | #
5
# |=======================================================| #
6
# | Part of LaTeXML : http://dlmf.nist.gov/LaTeXML/ | #
7
# | Copyright (c) 2008 arXMLiv group | #
8
# | Catalin David <c.david@jacobs-university.de> | #
9
# | Released to Public Domain | #
10
# =======================================================/ #
12
package LaTeXML::Package::Pool;
16
DeclareOption('amsfonts', sub{ RequirePackage('amsfonts'); });
17
DeclareOption('amssymb', sub{ RequirePackage('amssymb'); });
18
DeclareOption('amsmath', sub{ RequirePackage('amsmath'); });
21
RequirePackage('revtex4_support');
23
#======================================================================
24
# The following are additional or different definitions from revtex4_support
26
RawTeX('\newif\ifpreprintsty\newif\ifsecnumbers\newif\ifsegabssty');
27
# \overlay seems to be yet another of these stacked things...
29
DefMacro('\eqsecnum',''); # ?
30
DefMacro('\tightenlines','');
31
DefMacro('\wideabs',''); # wide abstract? takes an arg, but avoid reading it
33
# Hmm, this seems to allow random chunks of text within;
34
# it really only specifies the numbering, not alignment or ...
35
DefEnvironment('{mathletters}',
36
# "<ltx:equationgroup>#body</ltx:equationgroup>",
38
afterDigestBegin=>sub {
39
my($stomach,$whatsit)=@_;
40
my %eqn = RefStepCounter('equation');
41
AssignValue(SAVED_EQUATION_NUMBER=>LookupValue('\c@equation'));
42
ResetCounter('equation');
43
DefMacro('\theequation',UnTeX($eqn{refnum}).'\alph{equation}');
44
DefMacro('\theequation@ID',UnTeX($eqn{id}).'.\@equation@ID');
47
AssignValue('\c@equation',LookupValue('SAVED_EQUATION_NUMBER'),'global'); });
49
#**********************************************************************