LaTeXML
view release on metacpan or search on metacpan
lib/LaTeXML/Package/amsbook.cls.ltxml view on Meta::CPAN
# -*- mode: Perl -*-
# /=====================================================================\ #
# | amsbook | #
# | 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 | #
# | http://arxmliv.kwarc.info/ | #
# | Released to the Public Domain | #
# |---------------------------------------------------------------------| #
# | Bruce Miller <bruce.miller@nist.gov> #_# | #
# | http://dlmf.nist.gov/LaTeXML/ (o o) | #
# \=========================================================ooo==U==ooo=/ #
package LaTeXML::Package::Pool;
use strict;
use warnings;
use LaTeXML::Package;
foreach my $option (qw(a4paper letterpaper landscape portrait
oneside twoside draft final e-only
titlepage notitlepage
openright openany onecolumn twocolumn
nomath noamsfonts psamsfonts
centertags tbtags
8pt 9pt 10pt 11pt 12pt
makeidx)) {
DeclareOption($option, undef); }
AssignMapping('DOCUMENT_CLASSES', ltx_leqno => 1); # Default is left!
DeclareOption('leqno', sub { AssignMapping('DOCUMENT_CLASSES', ltx_leqno => 1); });
DeclareOption('reqno', sub { AssignMapping('DOCUMENT_CLASSES', ltx_leqno => undef); });
DeclareOption('fleqn', sub { AssignMapping('DOCUMENT_CLASSES', ltx_fleqn => 1); });
ProcessOptions();
# I think all options are (non)handled above, so don't need to pass any.
LoadClass('book');
RequirePackage('ams_support');
# #======================================================================
# # Sec 8 Monograph Formatting:
# \documentclass{..}
# preamble
# \begin{document}
# \frontmatter
DefPrimitive('\frontmatter', undef); # Do we need this?
# frontmatter stuff
# \maketitle
# \include various preface, introduction, etc
# \mainmatter
DefPrimitive('\mainmatter', undef);
# \include various chapters, appendices
# \backmatter
DefPrimitive('\backmatter', undef);
# commands for bibliography, indices
# \end{document}
# Couple of internals that get used in arXiv:
DefMacro('\@listI', '\leftmargin\leftmargini \parsep\z@skip
\topsep\listisep \itemsep\z@skip
\listparindent\normalparindent');
Let('\@listi', '\@listI');
Let('\enddescription', '\endlist');
Let('\upn', '\textup');
RawTeX(<<'EOL');
\newskip\listisep
\listisep\smallskipamount
EOL
# #======================================================================
1;
( run in 1.096 second using v1.01-cache-2.11-cpan-d8267643d1d )