~ubuntu-branches/ubuntu/oneiric/latexml/oneiric

« back to all changes in this revision

Viewing changes to lib/LaTeXML/Package/revtex3_support.sty.ltxml

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-06-09 08:15:06 UTC
  • Revision ID: james.westby@ubuntu.com-20100609081506-1asj0n4u3w4q6jem
Tags: upstream-0.7.0
ImportĀ upstreamĀ versionĀ 0.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- CPERL -*-
 
2
# /======================================================= #
 
3
# |  revtex3_support.sty - Implementation for LaTeXML     | #
 
4
# |                                                       | #
 
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
# =======================================================/ #
 
11
 
 
12
package LaTeXML::Package::Pool;
 
13
use strict;
 
14
use LaTeXML::Package;
 
15
 
 
16
DeclareOption('amsfonts', sub{ RequirePackage('amsfonts'); });
 
17
DeclareOption('amssymb',  sub{ RequirePackage('amssymb'); });
 
18
DeclareOption('amsmath',  sub{ RequirePackage('amsmath'); });
 
19
ProcessOptions();
 
20
 
 
21
RequirePackage('revtex4_support');
 
22
 
 
23
#======================================================================
 
24
# The following are additional or different definitions from revtex4_support
 
25
 
 
26
RawTeX('\newif\ifpreprintsty\newif\ifsecnumbers\newif\ifsegabssty');
 
27
# \overlay seems to be yet another of these stacked things...
 
28
# \vereq also
 
29
DefMacro('\eqsecnum','');       # ?
 
30
DefMacro('\tightenlines','');
 
31
DefMacro('\wideabs','');        # wide abstract? takes an arg, but avoid reading it
 
32
 
 
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>",
 
37
               "#body",
 
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');
 
45
               },
 
46
               afterDigest =>sub{ 
 
47
                 AssignValue('\c@equation',LookupValue('SAVED_EQUATION_NUMBER'),'global'); });
 
48
 
 
49
#**********************************************************************
 
50
 
 
51
1;