# -*- CPERL -*-
# /=======================================================\ #
# |  epl.cls - Implementation for LaTeXML                 | #
# |                                                       | #
# |=======================================================| #
# |  Part of LaTeXML : http://dlmf.nist.gov/LaTeXML/      | #
# | Copyright (c) 2006 arXMLiv group                      | #
# | Released under the GNU Public License                 | #
# \=======================================================/ #

package LaTeXML::Package::Pool;
use strict;
use LaTeXML::Package;

LoadClass('article'); 
# all used in relation with some other macros:
RequirePackage('hyperref');
RequirePackage('graphicx');
RequirePackage('bm');
RequirePackage('cite');

# all of these just carry font information.
DefConstructor('\Name{}',"<ltx:text class='bibName'>#1</ltx:text>");
DefConstructor('\Review{}',"<ltx:text class='bibReview'>#1</ltx:text>");
DefConstructor('\Vol{}',"<ltx:text class='bibVol'>#1</ltx:text>");
DefConstructor('\Year{}',"<ltx:text class='bibYear'>#1</ltx:text>");
DefConstructor('\Page{}',"<ltx:text class='bibPagge'>#1</ltx:text>");
DefConstructor('\Pages{}',"<ltx:text class='bibPages'>#1</ltx:text>");
DefConstructor('\Book{}',"<ltx:text class='bibBook'>#1</ltx:text>");
DefConstructor('\Publ{}',"<ltx:text class='bibPubl'>#1</ltx:text>");
DefConstructor('\Editor{}',"<ltx:text class='bibEditor'>#1</ltx:text>");
DefConstructor('\Section{}',"<ltx:text class='bibSection'>#1</ltx:text>");

# front matter
DefConstructor('\pacs{}{}',"<ltx:text class='classification'>PACS. #1 -- #2.</ltx:text>");
DefConstructor('\DOI{}',"<ltx:text class='DOI'>DOI: #1</ltx:text>");
# no decorations
DefConstructor('\shorttitle{}',"");
DefConstructor('\shortauthor{}',"");

RawTeX('\let\And\and
\newcommand{\REVIEW}[4]{\Review{#1} \Vol{#2} \Year{#3} \Page{#4}}
\newcommand{\SAME}[3]{\Vol{#1} \Year{#2} \Page{#3}}');


# no decorations
DefConstructor('\titlerunning',"");
DefConstructor('\authorrunning',"");
DefConstructor('\frontmatter',"");
DefConstructor('\mainmatter',"");
DefConstructor('\backmatter',"");
DefConstructor('\institute',"");

# frontmatter stuff
DefConstructor('\@institute{}',"^ <ltx:contact role='institute'>#1</ltx:contact>", bounded=>1);
DefMacro('\institute{}','\@add@to@frontmatter{ltx:creator}{\@affiliation{#1}}');
DefConstructor('\inst{}','(1)');


# acknowledgements
DefMacro('\acknowledgmentsname', '***');

DefMacro('\acknowledgements', sub {
		(T_CS('\section'), T_OTHER('*'), T_BEGIN,
		 T_CS('\acknowledgmentsname'), T_END); });
Let('\acknowledgments', '\acknowledgements');


#**********************************************************************
1;

