manus_continuum_granular1

manuscript files for first continuum-till paper
git clone git://src.adamsgaard.dk/manus_continuum_granular1
Log | Files | Refs Back to index

agujournal2019.cls (40688B)


      1 \def\currversion{April 16, 2019}
      2 
      3   %****************************************************************%
      4   %*                                                              *%
      5   %*  AGU Class File for all AGU Journals                         *%
      6   %*                                                              *%
      7   %*  Written by Amy Hendrickson                                  *%
      8   %*  TeXnology Inc.: 617 738-8029                                *%
      9   %*  amyh@texnology.com                                          *%
     10   %*  http://www.texnology.com                                    *%
     11   %*                                                              *%
     12   %****************************************************************%
     13 
     14 %%% Updates by Dangerous Curve  typesetting@dangerouscurve.org
     15 %%%
     16 %%%  2017-07-14
     17 %%%      (Changes marked DC)
     18 %%%
     19 %%%      Use BibLaTeX for change to APA style.
     20 %%%      Removed tracking-changes code.
     21 %%%
     22 %%%
     23 %%%  2017-12-16
     24 %%%
     25 %%%    Remove biblatex.
     26 %%%    Use apacite instead of agufull08,
     27 
     28 %%%  2018-07-17 / NRV
     29 %%%  thanks to John Haiducek for help with citep error
     30 
     31 %%% 2019-01-14 / NRV
     32 %%% Removed natbib, changed instructions for cite commands, added Appendix heading
     33 
     34 %%% 2019-4-16 / NRV
     35 %%% Removed ulem to facilitate trackchanges
     36 %%% Gave user more control over trackchanges options
     37 %%% fixed typo in example citations
     38 
     39 \ProvidesClass{agujournal2019}
     40               [01/14/2019]
     41 
     42 %% SEARCH BELOW FOR THE NUMBER TO FIND PARTICULAR MACRO GROUP
     43 
     44     %% Macro Contents:
     45     %% 0) Usepackage graphicx, colorx, other .sty files which we'll need to have available.
     46 
     47     %% 1) Setting Default Dimensions
     48 
     49     %% 2) Global Parameters
     50 
     51     %% 3) Setting and Using Options
     52 
     53     %% 4) Font Family declarations
     54 
     55     %% 5) Running heads, Footnotes
     56 
     57     %% 6) Title Page: Journal Name,
     58     %%    Title, Authors, Affils, Corresponding Authors, Author Notes, Key Points; abstract
     59 
     60     %% 7) Section Commands
     61 
     62     %% 8) Figure and Table Captions
     63 
     64     %% 9) Listing
     65 
     66     %% 10) Etc.: Hyphenation Library, Quote, Extract
     67 
     68     %% 11) End Article: Appendix, Glossary, Acronyms, Notation, Acknowledgments
     69 
     70     %% 12) Bibliography, References
     71 
     72     %% 13) Track Changes
     73 
     74     %% 14) Supporting Information
     75 
     76 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     77 
     78 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     79 % 0) Bringing in packages that we will need:
     80 
     81 %% Nicer font choice than Computer Modern:
     82 %\RequirePackage{newtxtext,newtxmath}
     83 
     84 %% always will want this available
     85 \RequirePackage{graphicx}
     86 
     87 %% to get illustrations to print, in spite of being in Draft mode:
     88 \setkeys{Gin}{draft=false}
     89 
     90 %% xcolor.sty
     91 \RequirePackage{xcolor}
     92 \RequirePackage{url}
     93 
     94 %% for better track changes
     95 %\RequirePackage{trackchanges}
     96 
     97 %% used for running head which is in light gray
     98 
     99 \definecolor{ltgray}{cmyk}{.12,0,0,.3}
    100 
    101 %% Line numbering
    102 \RequirePackage{lineno}
    103 %% add more space between text and number:
    104 \advance\linenumbersep 12pt
    105 
    106 %% this package makes paragraphs indent after section heads
    107 \RequirePackage{indentfirst}
    108 
    109 
    110 %% \RaggedRight makes the right margin go in and out; if this is commented out
    111 %% the default will be a right justified margin.
    112 \RequirePackage{ragged2e}
    113 \RaggedRightParindent=24pt
    114 \advance\RaggedRightRightskip 24pt
    115 \RaggedRight
    116 
    117 %% Defines \sidewaystable and \sidewaysfigure, preferred by AGU
    118 \RequirePackage{rotating}
    119 \newif\ifturnofflinenums
    120 \let\savesidewaystable\sidewaystable
    121 \let\savesidewaysfigure\sidewaysfigure
    122 %% turns off line numbers in rotated tables and figures, aesthetic consideration,
    123 %% not necessary.
    124 \def\sidewaystable{\turnofflinenumstrue\savesidewaystable\centering}
    125 \def\sidewaysfigure{\turnofflinenumstrue\savesidewaysfigure\centering}
    126 
    127 %%xx Use apacite.  DC
    128 %% Formats bibliography, this .sty file needs to be entered later
    129 % \RequirePackage{natbib}
    130 
    131 %\PassOptionsToPackage{normalem}{ulem}
    132 %\RequirePackage{ulem}
    133 
    134 %% <== End Bringing in Packages
    135 
    136 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    137 % 1) Setting Default Dimensions
    138 
    139   %% Comment
    140   %% parindent= indentation for every new paragraph
    141   %% parskip= distance between paragraphs. Giving `plus .1pt' allows
    142   %% a little stretch between paragraphs. If you don't like this stretch
    143   %% you can set \parskip=0pt
    144 
    145 \parindent=24pt
    146 \parskip=8pt % plus .1pt
    147 
    148   %% Comment
    149   %% \textheight is distance from bottom of text, exclusive of running
    150   %% foot, to top of text, exclusive of running head.
    151 
    152 \textheight = 9.25in
    153   %% Comment
    154   %% \textwidth= Width of text in normal page. Can change this width locally
    155   %% with either \leftskip/\rightskip or change in \hsize, but will
    156   %% still be able to return to the normal width by setting \hsize=\textwidth
    157   %% Running head normally uses \textwidth as its width so that a change
    158   %% in \hsize in text will not change width of running head or feet.
    159 
    160 \textwidth 5.5in
    161 
    162   %% Comment
    163   %% \voffset moves the printed page up or down on the physical page.
    164 \advance\voffset-.25in
    165 
    166   %% Comment
    167   %% \hoffset moves the printed page left or right on the physical page.
    168 \advance\hoffset.35in
    169 
    170   %% Comment
    171   %% Setting page dimensions
    172   %% See p. 84-- 85 in LaTeX Companion, Goosins, Mittlebach and Samarin
    173   %% or p. 555--556 in A Guide to LaTeX, Kopka and Daly, both Addison Wesley
    174   %% books.
    175 
    176   %% \topmargin space between top of page and running head
    177 
    178   %% \headheight height of running head
    179 
    180   %% \headsep  space between running head and text
    181 
    182   %% \topskip  space between top of text and baseline of first line
    183   %%            of text
    184 
    185   %% \footskip space between text and baseline of page number
    186 
    187   %% \columnsep space between two column text
    188 
    189   %% \columnseprule width of optional rule between columns, usually set to 0pt
    190 
    191   %%  \footnotesep Distance between two footnotes
    192 
    193   %%  \skip\footins Distance between text and footnote
    194 
    195   %%  \floatsep Distance between float and another
    196   %%       float for single col floats.
    197 
    198   %%  \textfloatsep Distance between float and text at top
    199   %%                     or bottom of page.
    200 
    201   %%  \intextsep  Distance between float and text if float is mid page
    202   %%                 or mid column
    203 
    204   %%  \dblfloatsep  For float spanning both columns in two column text,
    205   %%  above or below both columns, space between float and and float.
    206 
    207 
    208 \topmargin0pt
    209 \headheight 8pt
    210 \headsep 6pt
    211 \topskip  10pt
    212 \footskip 36pt
    213 
    214 \columnsep 10pt
    215 \columnseprule 0pt
    216 
    217 \footnotesep 6.65pt
    218 \skip\footins 24pt plus .1pt minus .1pt
    219 
    220 \floatsep 12pt plus 2pt minus 2pt
    221 \textfloatsep 36pt plus 2pt minus 4pt
    222 \intextsep 24pt plus 2pt minus 2pt
    223 
    224 \dblfloatsep 12pt plus 2pt minus 2pt
    225 \dbltextfloatsep 20pt plus 2pt minus 4pt
    226 
    227 %% float placement, used by output routine
    228 \@fptop 0pt plus 1fil
    229 \@fpsep 8pt plus 2fil
    230 \@fpbot 0pt plus 1fil
    231 \@dblfptop 0pt plus 1fil
    232 \@dblfpsep 8pt plus 2fil
    233 \@dblfpbot 0pt plus 1fil
    234 
    235   %% When using \marginpar, how wide can marginal note be?
    236 
    237 \marginparwidth .75in
    238 
    239   %% When using \marginpar, how much horizontal space between marginal
    240   %% note and text
    241 
    242   \setlength\marginparsep{40\p@}
    243 
    244   %% When to push marginal note on to next page, minimum vertical space between
    245   %% two marginal notes
    246 
    247 \setlength\marginparpush{5\p@}
    248 
    249   %% space added before trivlist, which is used in many other
    250   %% macros, (for instance, verbatim environment)
    251   %% if macro is called in vertical mode, otherwise only parskip
    252   %% is added. Can set this without stretch if you don't like
    253   %% the stretchy space added.
    254 
    255 \setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
    256 
    257   %% Comment
    258   %% Setting parameters that control float placement
    259   %%
    260   %% \topnumber counter holds the maximum number of
    261   %% floats that can appear on the top of a text page.
    262   %%
    263   %% \topfraction indicates the maximum part of a text page that can be
    264   %%     occupied by floats at the top.
    265   %%
    266   %% \bottomnumber counter holds the maximum number of
    267   %%     floats that can appear on the bottom of a text page.
    268   %%
    269   %% \bottomfraction indicates the maximum part of a text page that can be
    270   %%     occupied by floats at the bottom.
    271   %%
    272   %% \totalnumber indicates the maximum number of floats that can appear on
    273   %%     any text page.
    274   %%
    275   %% \textfraction indicates the minimum part of a text page that has to be
    276   %%     occupied by text.
    277   %%
    278   %% \floatpagefraction indicates the minimum part of a page that has to be
    279   %%     occupied by floating objects before a `float page' is produced.
    280   %%
    281   %% \dbltopnumber counter holds the maximum number of
    282   %%     two column floats that can appear on the top of a two column text
    283   %%     page.
    284   %%
    285   %% \dbltopfraction indicates the maximum part of a two column text page that
    286   %%     can be occupied by two column floats at the top.
    287   %%
    288   %% \dblfloatpagefraction indicates the minimum part of a page that has to be
    289   %%     occupied by two column wide floating objects before a `float
    290   %%     page' is produced.
    291   %%%
    292 
    293 \setcounter{topnumber}{10}
    294 \def\topfraction{.9}
    295 \setcounter{bottomnumber}{10}
    296 \def\bottomfraction{.1}
    297 \setcounter{totalnumber}{10}
    298 \def\textfraction{.2}
    299 \def\floatpagefraction{.5}
    300 \setcounter{dbltopnumber}{2}
    301 \def\dbltopfraction{.7}
    302 \def\dblfloatpagefraction{.5}
    303 
    304   %% Setting Array and Table Spacing
    305   %% distance between columns in array
    306 \setlength\arraycolsep{5\p@}
    307 
    308   %% distance between columns in tabular
    309 \tabcolsep 6pt
    310 
    311   %% width of lines in array
    312 \setlength\arrayrulewidth{.4\p@}
    313 
    314   %% horizontal space between two lines in array
    315 \setlength\doublerulesep{2\p@}
    316 
    317   %% space between two lines in tabular
    318 \setlength\tabbingsep{\labelsep}
    319 
    320   %% Minipage
    321   %% minipage space
    322 \skip\@mpfootins = \skip\footins
    323 
    324   %% Framebox \fbox{} or \framebox{}
    325   %% space between line in framebox and text within it
    326 \setlength\fboxsep{3\p@}
    327 
    328   %% width of ruled line in framebox
    329 \setlength\fboxrule{.4\p@}
    330 
    331 
    332 %%%%%%%%%%%%%%% <<== end dimensions
    333 
    334 % 2) %%% Global parameters ==>>
    335 
    336   %% Makes sure that there will not be any widow or club lines,
    337   %% smaller numbers allow them occassionally, but you probably need
    338   %% these set to 10000 so that there are never any
    339 
    340 \widowpenalty10000
    341 \clubpenalty10000
    342 
    343   %% How many levels deep do you want sections to be numbered-- higher number
    344   %% means more levels will be numbered. Here was are asking only for
    345   %% sections to be numbered, not subsections, or subsubsection etc.
    346 \setcounter{secnumdepth}{4}
    347 
    348 
    349   %% To make left and right page position differently, and have
    350   %% running heads be different on even and odd pages
    351 \@twosidetrue
    352 
    353   %% Marginal notes should be on the left on even numbered pages; on
    354   %% right on odd numbered pages.
    355 \@mparswitchtrue
    356 
    357   %% Starting with one column text
    358 \@twocolumnfalse
    359 
    360   %% openbib will allow separate lines for parts of bibliography
    361   %% entries, default is to run different parts of bib entry into a
    362   %% paragraph form.
    363 
    364 \newif\if@openbib
    365 \@openbibfalse
    366 
    367   %% Conditionals that we can set and use later
    368 \newif\if@openright
    369 \newif\if@mainmatter
    370 \newif\if@restonecol
    371 \newif\if@titlepage
    372 \newif\ifdraft
    373 \newif\ifnumlines
    374 
    375   %% Comment
    376   %% Set Names, to be used later, usually in more than one
    377   %% macro.
    378 \newcommand{\bibname}{Bibliography}
    379 \newcommand{\figurename}{Figure}
    380 \newcommand{\tablename}{Table}
    381 \newcommand{\appendixname}{Appendix}
    382 
    383 %%% <== end global parameters
    384 
    385 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    386 %% 3) Declare Options and Use Default Options
    387 \DeclareOption{draft}{\global\drafttrue}
    388 \DeclareOption{linenumbers}{\global\numlinestrue}
    389 \DeclareOption{final}{\setlength\overfullrule{0pt}\global\draftfalse}
    390 
    391 \ExecuteOptions{letterpaper,10pt,onecolumn,final,openright}
    392 \ProcessOptions
    393 
    394 \ifnumlines
    395 \linenumbers*[1]
    396 \fi
    397 
    398 %% <==== End Setting Options
    399 
    400 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    401 % 4) Font Family Info
    402 
    403 %% Comment
    404 %% When \ifdraft is true it will make the baselineskip = \draftskip
    405 
    406 \newcount\draftskip
    407 \draftskip=20
    408 
    409 \newcommand{\@ptsize}{}
    410 
    411   %% Comment
    412   %% Set font sizes, normal baselineskip, for the range of sizes,
    413   %% changing baselineskip to be larger if draft option is true
    414   %% \setfontsize takes the first arg as the size of the font and
    415   %% the second as the size of the baselineskip
    416   %% \abovedisplayskip and \belowdisplayskip is the space before and
    417   %% after an equation, adjusted in some sizes.
    418 
    419   %% \Huge 25pt
    420   %% \huge 20pt
    421   %% \LARGE 17pt
    422   %% \Large 14pt
    423   %% \large 12pt
    424   %% \normalsize 10 pt font
    425   %% \small 9pt
    426   %% \footnotesize 8pt
    427   %% \scriptsize 7pt font
    428   %% \tiny 5pt font
    429 
    430 
    431 \renewcommand\normalsize{%
    432 \ifdraft
    433    \@setfontsize\normalsize\@xpt{\draftskip}
    434 \else
    435    \@setfontsize\normalsize\@xpt{12}
    436 \fi
    437    \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
    438    \abovedisplayshortskip \z@ \@plus3\p@
    439    \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
    440    \belowdisplayskip \abovedisplayskip
    441    \let\@listi\@listI}
    442 \normalsize
    443 
    444 \newcommand\bignormalsize{\@setfontsize\bignormalsize{10.5pt}{12}}
    445 
    446 \newcommand\small{%
    447 \ifdraft
    448    \@setfontsize\small\@ixpt{\draftskip}%
    449 \else
    450    \@setfontsize\small\@ixpt{14}%
    451 \fi
    452    \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
    453    \abovedisplayshortskip \z@ \@plus2\p@
    454    \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
    455    \def\@listi{\leftmargin\leftmargini
    456                \topsep 4\p@ \@plus2\p@ \@minus2\p@
    457                \parsep 2\p@ \@plus\p@ \@minus\p@
    458                \itemsep \parsep}%
    459    \belowdisplayskip \abovedisplayskip
    460 }
    461 
    462 \newcommand\footnotesize{%
    463 \ifdraft
    464    \@setfontsize\footnotesize\@viiipt{\draftskip}%
    465 \else
    466    \@setfontsize\footnotesize\@viiipt{12}%
    467 \fi
    468    \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
    469    \abovedisplayshortskip \z@ \@plus\p@
    470    \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
    471    \def\@listi{\leftmargin\leftmargini
    472                \topsep 3\p@ \@plus\p@ \@minus\p@
    473                \parsep 2\p@ \@plus\p@ \@minus\p@
    474                \itemsep \parsep}%
    475    \belowdisplayskip \abovedisplayskip
    476 }
    477 
    478 \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
    479 \newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
    480 \newcommand\large{\ifdraft
    481 \@setfontsize\large\@xiipt{\draftskip}
    482 \else
    483 \@setfontsize\large\@xiipt{14}
    484 \fi
    485 }
    486 
    487 \newcommand\Large{\ifdraft
    488 \@setfontsize\Large\@xivpt{\draftskip}
    489 \else
    490 \@setfontsize\Large\@xivpt{18}
    491 \fi}
    492 
    493 \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
    494 \newcommand\huge{\@setfontsize\huge\@xxpt{25}}
    495 \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
    496 
    497 %%%%%%%%%%%%%%%%%%%%%%%%%%
    498 
    499 %% These definitions accomodate older font typeface commands,
    500 %% that are still in use.
    501 
    502 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
    503 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
    504 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
    505 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
    506 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
    507 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
    508 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
    509 \DeclareRobustCommand{\cal}{\@fontswitch{\relax}{\mathcal}}
    510 \DeclareRobustCommand{\mit}{\@fontswitch{\relax}{\mathnormal}}
    511 
    512 %% end font family declarations
    513 %%%%%%%%%%%%%%%%%%%%%%%%
    514 
    515 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    516 %% 5) Running heads and footnotes
    517 
    518 %% Running heads ===>>>
    519 
    520   %% unless we need these, leave these uncommented
    521     \let\@mkboth\@gobbletwo
    522     \let\chaptermark\@gobble
    523     \let\sectionmark\@gobble
    524   %%
    525 
    526 \def\ps@headings{\def\@oddfoot{\centerline{\small --\the\c@page--}}
    527 \let\@evenfoot\@oddfoot
    528 %% \thejournalname set with \journalname{} command; if not you will get a request to set
    529 %% the journal name with \journalname{}
    530 \def\@oddhead{\vbox to 0pt{\vss\centerline{\color{ltgray}\small manuscript
    531 submitted to {\it \thejournalname}}\vskip24pt}}
    532 \let\@evenhead\@oddhead
    533 }
    534 
    535 
    536 
    537 %% After ps@headings is defined, now we use it to activate the definitions
    538 \ps@headings
    539 
    540 %%% Footnotes
    541 
    542   %% save these definitions so that we can use them if
    543   %% we don't like the redefinition
    544 \let\savefootnote\footnote
    545 \let\savefootnotetext\footnotetext
    546 
    547   %%% ruled line above footnote
    548 
    549   \renewcommand{\footnoterule}{%
    550   \kern-3\p@
    551   \hrule width .4\columnwidth
    552   \kern 2.6\p@}
    553 
    554  \let\savefootnoterule\footnoterule
    555 
    556 % turn off footnote rule, line at bottom of page above footnotes
    557   \let\footnoterule\relax
    558 
    559 % can turn it back on by uncommenting
    560 \let\footnoterule\savefootnoterule
    561 
    562 % Making footnote indent 1em
    563 \long\def\@makefntext#1{%
    564 \noindent\hspace*{1em}\@makefnmark\,#1}
    565 
    566 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    567 %% 6) Title Page:
    568    %% Journal Name, running heads;
    569    %% Title, Authors, Affils, Corresponding Authors, Author Notes, Key Points;
    570    %% Starting article with abstract.
    571 
    572 %% Set journal name:
    573 \def\journalname#1{\def\thejournalname{#1}}
    574 \journalname{Please set Journal Name by using {\tt\string\journalname}}
    575 
    576 
    577 %% Article Title
    578 \def\title#1{\global\c@footnote=0\relax%
    579 {\centering \Large\bf #1 \vskip14pt}
    580 \def\thetitle{#1}}
    581 
    582 \def\authors#1{{\centering \normalsize\bf #1\vskip12pt}}
    583 \def\affil#1{$^{#1}$\ignorespaces}
    584 \def\affiliation#1#2{\vskip-.5\parskip\relax{\centering{\footnotesize
    585 $^{#1}$#2\relax}\vskip-\parskip}}
    586 
    587 \def\correspondingauthor#1#2{{\let\@thefnmark\relax\@footnotetext{\noindent\vrule
    588 height 18pt width0pt\relax\hbox to-8pt{}{\small
    589 Corresponding author: #1,
    590 {\tt #2}}}}}
    591 
    592 %% Used to send footnote to bottom of page when entered in \authors{} field.
    593 \def\thanks#1{{\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    594     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    595     \long\def\@makefntext##1{\noindent\hskip-9pt\hb@xt@1.8em{%
    596                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}\footnote{#1}\
    597 		}}
    598 
    599 \def\keypoints{\vskip24pt\vskip1sp\subsection*{Key Points:}
    600 \begin{itemize}}
    601 \def\endkeypoints{\end{itemize}}
    602 
    603 \def\abstract{\newpage\noindent{\bf Abstract}\vskip-\parskip
    604 \global\c@footnote=0\relax%
    605 \noindent\ignorespaces}
    606 \def\endabstract{\vskip18pt}
    607 
    608 %% <== End Title page and Abstract
    609 
    610 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    611 %% 7) Section Commands
    612 
    613 %  SectionCounters, Header Level Counters ===>>
    614 
    615   %% the argument in square brackets is for the command that will reset
    616   %% counter to zero
    617 \newcounter {section}
    618 \newcounter {subsection}[section]
    619 \newcounter {subsubsection}[subsection]
    620 \newcounter {paragraph}[subsubsection]
    621 \newcounter {subparagraph}[paragraph]
    622 
    623 
    624   %% Header Level Counters ==>>
    625   %% Change to any level will change the levels below
    626 
    627 
    628 \renewcommand{\thesection}      {\arabic{section}}
    629 \renewcommand{\thesubsection}   {\thesection.\arabic{subsection}}
    630 \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
    631 \renewcommand{\theparagraph}    {\thesubsubsection.\arabic{paragraph}}
    632 \renewcommand{\thesubparagraph} {\theparagraph.\arabic{subparagraph}}
    633 
    634 \newcommand{\@chapapp}{\chaptername}
    635 
    636   %%% <<== End Header Level Counters
    637 
    638   %% Definition printed here so that you can see what the various arguments are
    639   %% when used for \section, \subsection, etc, below
    640   %% \newcommand{\section}{\@startsection {section}{1}{\z@}...}
    641 
    642 
    643 % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
    644 %            optional * [ALTHEADING]{HEADING}
    645 %    Generic command to start a section.
    646 %    NAME       : e.g., 'subsection'
    647 %    LEVEL      : a number, denoting depth of section -- e.g., chapter=1,
    648 %                 section = 2, etc.
    649 %    INDENT     : Indentation of heading from left margin
    650 %    BEFORESKIP : Absolute value = skip to leave above the heading.
    651 %                 If negative, then paragraph indent of text following
    652 %                 heading is suppressed.
    653 %    AFTERSKIP  : if positive, then skip to leave below heading, else
    654 %                 negative of skip to leave to right of run-in heading.
    655 %    STYLE      : commands to set style
    656 %  If '*' missing, then increments the counter.  If it is present, then
    657 %  there should be no [ALTHEADING] argument.
    658 %  Uses the counter 'secnumdepth' whose value is the highest section
    659 %  level that is to be numbered.
    660 
    661   %% Startsection calls \@sect, the engine that formats each section
    662 
    663   %% the minus dimensions are used to tell LaTeX not to indent
    664   %% the text following the section head
    665   %% (silly, isn't it? but built into LaTeX)
    666   %% You can add things like underline or uppercase to the last arg
    667   %% to get those effects in a section head
    668 
    669 %% adds a little space after the section number, before following text.
    670 \def\@seccntformat#1{\csname the#1\endcsname\ \ }
    671 
    672 \newcommand\section{\@startsection {section}{1}{\z@}%
    673                                    {\ifdraft18pt plus 1pt minus
    674 				   1pt\else 12pt plus 1pt minus 1pt\fi}%
    675                                    {1sp}%
    676                                    {\bignormalsize\bfseries\boldmath}}
    677 
    678 \newcommand\subsection{\@startsection{subsection}{2}{\parindent}%
    679                                    {\ifdraft 12pt\else 8pt\fi}%
    680                                    {1sp}%
    681                                    {\normalfont\bf\boldmath}}
    682 
    683 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\parindent}%
    684                                    {\ifdraft 12pt\else 8pt\fi}%
    685                                    {1sp}%
    686                                    {\normalfont\itshape\bfseries}}
    687 
    688 \newcommand\paragraph{\@startsection{paragraph}{4}{\parindent}%
    689                                     {3pt plus 1pt minus 1pt}%
    690                                     {-1em}%
    691                                     {\normalfont\normalsize\itshape}}
    692 
    693 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
    694                                     {3pt plus 1pt minus 1pt}%
    695                                     {-1em}%
    696                                       {\normalfont\normalsize\itshape}}
    697 
    698   %%% <<=== end section commands
    699 
    700 
    701 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    702 % 8) Figure and Table Captions ==>>>
    703 
    704 \long\def\@caption#1[#2]#3{%
    705   \par
    706   \begingroup
    707     \@parboxrestore
    708     \normalsize
    709 \linenumbers
    710     \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
    711   \endgroup}
    712 \def\@float#1{%
    713   \@ifnextchar[%
    714     {\@xfloat{#1}}%
    715     {\edef\reserved@a{\noexpand\@xfloat{#1}[\csname fps@#1\endcsname]}%
    716      \reserved@a}}
    717 \def\@dblfloat{%
    718   \if@twocolumn\let\reserved@a\@dbflt\else\let\reserved@a\@float\fi
    719   \reserved@a}
    720 
    721   %%  Name of Figure or Table is set with \figurename or \tablename above
    722   %% \@float is what puts the text at the top or bottom of the page
    723   %% \@dblfloat is for floats in two column text
    724 
    725 \newcounter{figure}
    726 \renewcommand{\thefigure}{\arabic{figure}}
    727 
    728 \def\fps@figure{tbp} % position figure at top, bottom, or on its own page
    729 \def\ftype@figure{1} % used for placing float in page
    730 \def\ext@figure{lof} % send info to .lof file
    731 \def\fnum@figure{\figurename~~\thefigure} % \figurename, defined above,
    732                               %% and the current state of figure counter
    733 
    734   %% \begin{figure} calls up float and gives it the {figure} argument,
    735   %% which is then used to call up the definitions above, by using
    736   %% \csname fps@\captype\endcsname, for instance, to get \fps@figure;
    737   %% adjusting the macro to do different things depending on whether
    738   %% figure, table, environment, or other term is used.
    739 
    740 \newenvironment{figure}
    741                {\@float{figure}}
    742                {\end@float}
    743 
    744   %% figure in two column text
    745 \newenvironment{figure*}
    746                {\@dblfloat{figure}}
    747                {\end@dblfloat}
    748 
    749   %% Similar as the sequence of definitions above used for figure
    750 \newcounter{table}
    751 \renewcommand{\thetable}{\@arabic\c@table}
    752 \def\fps@table{tbp}
    753 \def\ftype@table{2}
    754 \def\ext@table{lot}
    755 \def\fnum@table{\tablename~\thetable}
    756 \newenvironment{table}
    757                {\@float{table}}
    758                {\end@float}
    759 \newenvironment{table*}
    760                {\@dblfloat{table}}
    761                {\end@dblfloat}
    762 
    763   %%%%%%%%%%%%%%%%
    764   %% Setting space between caption in table or figure and the
    765   %% table or figure
    766 \newlength\abovecaptionskip
    767 \newlength\belowcaptionskip
    768 \setlength\abovecaptionskip{10\p@}
    769 \setlength\belowcaptionskip{10\p@}
    770 
    771   %% to test in caption to see whether it is a figure or table
    772 \def\xfigure{figure}
    773 
    774   %% Variation on LaTeX code
    775   %% Skips below caption
    776   %% an extra 3pt if it is a table to give extra space between caption
    777   %% and table, since caption for table goes above table.
    778 
    779   %% \sbox\@tempboxa sets a temporary box so that we can measure
    780   %% the width of the caption; if width is greater than .9\hsize
    781   %% then make it format in a paragraph, otherwise center it.
    782 
    783   %% Test to see if it a figure or table: \ifx\@captype\xfigure
    784   %% If figure, \vskip\belowcaptionskip
    785 
    786 \long\def\@makecaption#1#2{%
    787 {\small
    788 \ifx\@captype\xfigure
    789 \vskip\abovecaptionskip\fi
    790 {\ifturnofflinenums\else\ifnumlines\internallinenumbers\fi\fi
    791  \sbox\@tempboxa{\bf#1.\quad \rm #2}%
    792   \ifdim \wd\@tempboxa >.9\hsize
    793 \bf #1.\quad\rm\relax #2\par
    794   \else
    795 {\centering
    796  \bf #1.\rm\quad #2
    797 \vskip1sp}
    798   \fi}
    799 %%
    800 \ifx\@captype\xfigure\else
    801   \vskip\belowcaptionskip\fi
    802 }}
    803 
    804 
    805   %% Code to get text in tables to extend all the way to left and right
    806   %% of table. The LaTeX table macros are made to allow space to the
    807   %% left and the right of tables to accomodate vertical ruled lines. But
    808   %% most publishers don't want vertical ruled lines.  If the authors
    809   %% don't use the ruled lines there would be extra white space without
    810   %% the changes below. This code is very complicated, but you can see
    811   %% the changed part.
    812 
    813 \def\xtable{table}
    814 \def\@array[#1]#2{\setbox\@arstrutbox=\hbox{\vrule
    815      height\arraystretch \ht\strutbox
    816      depth\arraystretch \dp\strutbox
    817      width\z@}\@mkpream{#2}\edef\@preamble{\halign \noexpand\@halignto
    818 \bgroup%
    819 \tabskip\z@\@arstrut\@preamble
    820 \ifx\@captype\xtable\hskip-\tabcolsep\fi  %% <==== Changed
    821 \tabskip\z@ \cr}%
    822 \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox%
    823   \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi%
    824   \bgroup\let\par\relax%
    825   \let\@sharp##\let\protect\relax \lineskip\z@\baselineskip\z@\@preamble}
    826 
    827 
    828   %% Variation on code found in Latex.tex
    829 \def\new@tabacol{\edef\@preamble{\@preamble\hskip0pt}}
    830 
    831 \def\@tabclassz{\ifcase \@lastchclass\@acolampacol%
    832 \or \@ampacol \or
    833    \or \or \@addamp \or \@acolampacol\or \@firstampfalse
    834 \ifx\@captype\xtable \new@tabacol\else\@tabacol \fi%
    835 \fi%
    836 \edef\@preamble{\@preamble%
    837   \ifcase \@chnum%
    838      \hfil\ignorespaces\@sharp\unskip\hfil%
    839      \or \ignorespaces\@sharp\unskip\hfil%
    840      \or \hfil\hskip\z@ \ignorespaces\@sharp\unskip\fi}}
    841 
    842   %% This puts extra space between horizontal lines in tables.
    843   %% If you want to use vertical lines in tables, you should use
    844   %% \savehline rather than \hline, otherwise the vertical and
    845   %% horizontal lines will not abutt.
    846 
    847   %% \noalign is a command that allows the uses to put something
    848   %% between lines in a table.
    849 \let\savehline\hline
    850 \def\hline{\noalign{\vskip3pt}\savehline\noalign{\vskip3pt}}
    851 
    852   %% Simple macro for table notes, that makes sure that there is
    853   %% a little space between the table and the notes, and that they
    854   %% print in footnotesize.
    855 \def\tablenotes{\vskip2pt\footnotesize}
    856 \let\endtablenotes\relax
    857 
    858   %%% <<=== end Figure and Table Captions
    859 
    860 
    861 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    862 
    863 % 9) Listing, ==>>
    864 \def\@listI{\leftmargin\leftmargini
    865             \parsep 0\p@ %\@plus2\p@ \@minus0\p@
    866             \topsep 4\p@ %\@plus2\p@ \@minus0\p@
    867             \itemsep1\p@ %\@plus2\p@ \@minus0\p@
    868 }
    869 \let\@listi\@listI
    870 \@listi
    871 
    872 \def\@listii {\leftmargin\leftmarginii
    873               \labelwidth\leftmarginii
    874               \advance\labelwidth-\labelsep
    875               \topsep    4\p@ \@plus2\p@ \@minus\p@
    876               \parsep    2\p@ \@plus\p@  \@minus\p@
    877               \itemsep   \parsep}
    878 \def\@listiii{\leftmargin\leftmarginiii
    879               \labelwidth\leftmarginiii
    880               \advance\labelwidth-\labelsep
    881               \topsep    2\p@ \@plus\p@\@minus\p@
    882               \parsep    \z@
    883               \partopsep \p@ \@plus\z@ \@minus\p@
    884               \itemsep   \topsep}
    885 \def\@listiv {\leftmargin\leftmarginiv
    886               \labelwidth\leftmarginiv
    887               \advance\labelwidth-\labelsep}
    888 \def\@listv  {\leftmargin\leftmarginv
    889               \labelwidth\leftmarginv
    890               \advance\labelwidth-\labelsep}
    891 \def\@listvi {\leftmargin\leftmarginvi
    892               \labelwidth\leftmarginvi
    893               \advance\labelwidth-\labelsep}
    894 
    895   %% amount left edge of text is indented relative to normal text
    896   %% i is for first level in, ii is for second level in, etc.
    897 \setlength\leftmargini  {28pt}
    898 \setlength\leftmarginii  {11pt}
    899 \setlength\leftmarginiii {1.87em}
    900 \setlength\leftmarginiv  {1.7em}
    901 \setlength\leftmarginv  {1em}
    902 \setlength\leftmarginvi {1em}
    903 
    904 
    905   %% default indentation for first level itemized lists
    906 \setlength\leftmargin    {\leftmargini}
    907 
    908   %% horizontal distance between item and following text
    909 \setlength  \labelsep  {6pt}
    910 
    911   %% how wide should item be?
    912 \setlength  \labelwidth{\leftmargini}
    913 
    914   %% subtract width of label separation
    915 \addtolength\labelwidth{-\labelsep}
    916 
    917   %% more listing defaults
    918 \leftmargin\leftmargini
    919 \labelwidth\leftmargini\advance\labelwidth-\labelsep
    920 
    921 
    922 \@beginparpenalty -\@lowpenalty
    923 \@endparpenalty   -\@lowpenalty
    924 \@itempenalty     -\@lowpenalty
    925 
    926   %% defining listing markers for enumerate
    927 \renewcommand{\theenumi}{\arabic{enumi}}
    928 \renewcommand{\theenumii}{\alph{enumii}}
    929 \renewcommand{\theenumiii}{\roman{enumiii}}
    930 \renewcommand{\theenumiv}{\Alph{enumiv}}
    931 
    932   %% using listing markers for enumerate
    933 \newcommand{\labelenumi}{\theenumi.\hskip-2pt}
    934 \newcommand{\labelenumii}{(\theenumii)}
    935 \newcommand{\labelenumiii}{\theenumiii.}
    936 \newcommand{\labelenumiv}{\theenumiv.}
    937 
    938   %% crossreferencing for listing markers
    939 \renewcommand{\p@enumii}{\theenumi}
    940 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
    941 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
    942 
    943   %% listing markers for itemize (no crossreferencing needed)
    944 \newcommand{\labelitemi}{\raise.4ex\hbox{\tiny$\bullet$}}
    945 \newcommand{\labelitemii}{\normalfont\bfseries --}
    946 \newcommand{\labelitemiii}{$\m@th\ast$}
    947 \newcommand{\labelitemiv}{$\m@th\cdot$}
    948 
    949   %% Setting up description listing environment
    950 \newenvironment{description}
    951                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
    952                         \let\makelabel\descriptionlabel}}
    953                {\endlist}
    954 
    955 \newcommand*{\descriptionlabel}[1]{\hspace\labelsep
    956                                 \normalfont\bfseries #1}
    957 
    958 %%% <<=== end of listing commands
    959 
    960 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    961 %%% 10) ETC.: Month/year, Hyphenation Library, Quote, Quotation, Extract
    962 
    963 %% Month and Year
    964 
    965 % Nice example of \ifcase which takes a counter and activates
    966 % the slot following the counter that matches the same number;
    967 % \month expands to a number, so ifcase will activate the slot
    968 % matching that number. Can use it for setting date in draft
    969 % footnote if desired. Not activated at this time.
    970 
    971 \newcommand{\today}{\ifcase\month\or
    972   January\or February\or March\or April\or May\or June\or
    973   July\or August\or September\or October\or November\or December\fi
    974   \space\number\day, \number\year}
    975 
    976 %  Hyphenation Library
    977 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    978 %% Hyphenation Library, add to this
    979 %% list if desired
    980 
    981 \hyphenation{
    982 dem-o-graph-ics
    983 mi-cro-ec-o-nom-ic
    984 or-gan-i-za-tion
    985 or-gan-i-za-tions
    986 ra-tion-ale
    987 sys-tem-at-i-cal-ly
    988 }
    989 
    990 
    991 %%%% Quote, Quotation, Extract
    992   %% \newenvironment produces a \begin{}..\end{} macro set.
    993   %% \newenvironment{<name of macro>}{<definition for begin macro>}
    994   %% {<definition for end macro>}
    995 
    996   %% For long quotation which runs more than one paragraph,
    997   %% uses list environment to indent text, supplies dummy
    998   %% item, \item[], since one item is required for every listing
    999   %% environment or you will get an error message.
   1000 
   1001   %% quotation indents new paragraphs, while quote does not.
   1002 
   1003 \newenvironment{quotation}
   1004                {\small
   1005 \list{}{\listparindent 1.5em%
   1006                         \itemindent    \listparindent
   1007                         \rightmargin   \leftmargin
   1008                         \parsep        \z@ \@plus\p@}%
   1009                 \item[]}
   1010                {\endlist}
   1011 \newenvironment{quote}
   1012                {\small
   1013 \list{}{\rightmargin\leftmargin}%
   1014                 \item[]}
   1015                {\endlist}
   1016 
   1017   %% If \begin{extract}...\end{extract} is used you will get the same
   1018   %% results as \begin{quotation}...\end{quotation}
   1019 
   1020 \let\extract\quotation
   1021 \let\endextract\endquotation
   1022 
   1023   %% <<== end ETC.: Month/year, Hyphenation Library, Quote, Quotation, Extract
   1024 
   1025 %%%%%%%%%
   1026 % 11) End Article: Appendix, Glossary, Acronyms, Notation, Acknowledgments
   1027 
   1028 % Appendix:
   1029 \newcounter{appendnum}
   1030 
   1031 \newif\ifappendon
   1032 \newif\ifupperappend
   1033 
   1034 \def\appendix{%
   1035 \def\@currentlabel{\Alph{section}:} %xx Doesn't do much.  Missing trailing space.  DC
   1036 \@addtoreset{equation}{section}
   1037 \@addtoreset{table}{section}
   1038 \@addtoreset{figure}{section}
   1039 %%
   1040 \renewcommand{\thesection}{Appendix \Alph{section}} %xx Redefined below (by orginal author, not DC).    DC
   1041 \renewcommand{\theequation}{\Alph{section}\arabic{equation}}
   1042 \renewcommand{\thefigure}{\Alph{section}\arabic{figure}}
   1043 \renewcommand{\thetable}{\Alph{section}\arabic{table}}
   1044 \global\appendontrue\goodbreak
   1045 \global\c@section=0
   1046 \global\c@equation=0
   1047 \def\thesection{Appendix \Alph{section}} %xx What puts the : in \ref.   Taken out now.  DC
   1048 \def\thesubsection{\Alph{section}\@arabic{\c@subsection}}
   1049 \def\thesubsubsection{\thesubsection\@arabic{\c@subsubsection}}
   1050 \def\thesubsubsubsection{\thesubsubsection\@arabic{\c@subsubsection}}
   1051 }
   1052 %%%%% end appendix
   1053 
   1054 %%  Glossary
   1055 \def\glossary{\bgroup
   1056 \section*{Glossary}
   1057 \description
   1058 \def\term##1{\item[##1]}}
   1059 \def\endglossary{\enddescription\vskip12pt\egroup}
   1060 %%
   1061 
   1062 %% Acronyms
   1063 \def\acronyms{\bgroup
   1064 \section*{Acronyms}
   1065 \description
   1066 \def\acro##1{\item[##1]}}
   1067 \def\endacronyms{\enddescription\vskip12pt\egroup}
   1068 
   1069 %% Notation
   1070 \def\notation{\bgroup
   1071 \section*{Notation}
   1072 \description
   1073 \def\notation##1{\item[\boldmath ##1]}}
   1074 \def\endnotation{\enddescription\vskip12pt\egroup}
   1075 
   1076 %% Acknowledgments
   1077 \def\acknowledgments{\vskip12pt\noindent{\bf
   1078 Acknowledgments\vrule depth 6pt
   1079 width0pt\relax}\\*\noindent\ignorespaces}
   1080 
   1081 %%% <<=== end  Appendix, Glossary, Acronyms, Notation, Acknowledgments
   1082 
   1083 
   1084 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   1085 % 12) %% Bibliography, References ===>>
   1086 
   1087 %% Set bibliography style: This brings in agufull08.bst to format
   1088 %% bibliography when using BibTeX.
   1089 %\bibliographystyle{agufull08}
   1090 %
   1091 \bibliographystyle{apacite}
   1092 
   1093 %% In case you want to enter bib entries without using bibtex
   1094 \def\references{\thebibliography{}\item[]}
   1095 \let\endreferences\endthebibliography
   1096 
   1097 \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
   1098 
   1099 \def\@citex[#1]#2{%
   1100   \let\@citea\@empty
   1101   \@cite{\@for\@citeb:=#2\do
   1102     {\@citea\def\@citea{,\penalty\@m\ }%
   1103      \edef\@citeb{\expandafter\@firstofone\@citeb}%
   1104      \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
   1105      \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
   1106        \G@refundefinedtrue
   1107        \@latex@warning
   1108          {Citation `\@citeb' on page \thepage \space undefined}}%
   1109   %%
   1110   %% This is changed from the default so that lengthy citations can
   1111   %% be broken across lines
   1112        {%\hbox{
   1113 \csname b@\@citeb\endcsname%}
   1114 }}}{#1}}
   1115 
   1116 \newdimen\bibindent
   1117 \setlength\bibindent{1.5em}
   1118 
   1119 \def\refname{References}
   1120 \newenvironment{thebibliography}[1]
   1121      {\section*{\refname
   1122         \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
   1123       \list{\@biblabel{\@arabic\c@enumiv}}%
   1124            {\settowidth\labelwidth{\@biblabel{#1}}%
   1125             \leftmargin\labelwidth
   1126             \advance\leftmargin\labelsep
   1127             \@openbib@code
   1128             \usecounter{enumiv}%
   1129             \let\p@enumiv\@empty
   1130             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
   1131       \sloppy
   1132       \clubpenalty4000
   1133       \@clubpenalty \clubpenalty
   1134       \widowpenalty4000%
   1135       \sfcode`\.\@m}
   1136      {\def\@noitemerr
   1137        {\@latex@warning{Empty `thebibliography' environment}}%
   1138       \endlist}
   1139 
   1140 \def\newblock{\hskip .11em\@plus.33em\@minus.07em}
   1141 
   1142 
   1143 
   1144 
   1145 % Formats bibliography, this .sty file needs to be entered here
   1146 
   1147  %
   1148 % When using NatBib, this sets brackets for citations:
   1149 %\renewcommand\NAT@open{(} \renewcommand\NAT@close{)}   %xx Parens by default, but not using anyways.  DC
   1150 
   1151 \RequirePackage{apacite}
   1152 %\RequirePackage{natbib}
   1153 \let\cite\shortcite %xx So get et al. with three authors the first time.
   1154 %\let\citep\shortcite %xx A natbib command.
   1155 %\let\citet\shortcite %xx Ditto.
   1156 \let\citeA\shortciteA %xx Ditto.
   1157 
   1158 
   1159 
   1160 %% end Bibliography, and References
   1161 
   1162 %%%%%%%%%%%%%%%%%%%%%%%%%%xx Removed.  DC
   1163 
   1164 %%% Track Changes
   1165 %%% Amy Hendrickson, Feb 2016
   1166 %
   1167 %\providecolor{trackcolor}{rgb}{1,0,0}
   1168 %\providecolor{explain}{rgb}{.5,0,.5}
   1169 %
   1170 %\newcount\refchangenumber
   1171 %
   1172 %\def\added{\@ifnextchar[{\xadded}{\yadded}}
   1173 %
   1174 %\long\def\xadded[#1]#2{%
   1175 %\ifdraft{\global\advance\refchangenumber by 1\relax%
   1176 %\ifnumlines
   1177 %\xdef\doit{\noexpand\linelabel{\the\refchangenumber}}\doit\else%
   1178 %\xdef\doit{\noexpand\label{\the\refchangenumber}{}{}{}}\doit\fi%
   1179 %\color{trackcolor}(Added: #2)}%%
   1180 %\expandafter\gdef\csname
   1181 %changenum\the\refchangenumber\endcsname{Added: [#1]
   1182 %\textcolor{trackcolor}{#2}, }\else#2\fi}
   1183 %
   1184 %\long\def\yadded#1{%
   1185 %\ifdraft{\global\advance\refchangenumber by 1\relax%
   1186 %\ifnumlines
   1187 %\xdef\doit{\noexpand\linelabel{\the\refchangenumber}}\doit\else%
   1188 %\xdef\doit{\noexpand\label{\the\refchangenumber}{}{}{}}\doit\fi%
   1189 %\color{trackcolor}(Added: #1)}%%
   1190 %\expandafter\gdef\csname changenum\the\refchangenumber\endcsname{Added:
   1191 %\textcolor{trackcolor}{#1}, }\else#1\fi}
   1192 %
   1193 %\def\deleted{\@ifnextchar[{\xdeleted}{\ydeleted}}
   1194 %
   1195 %\long\def\xdeleted[#1]#2{%
   1196 %\ifdraft{\global\advance\refchangenumber by 1\relax%
   1197 %\ifnumlines
   1198 %\xdef\doit{\noexpand\linelabel{\the\refchangenumber}}\doit\else%
   1199 %\xdef\doit{\noexpand\label{\the\refchangenumber}{}{}{}}\doit\fi%
   1200 %\color{trackcolor}(Deleted: \sout{#2})}%%
   1201 %\expandafter\gdef\csname
   1202 %changenum\the\refchangenumber\endcsname{Deleted: [#1]
   1203 %\textcolor{trackcolor}{#2}, }\else#2\fi}
   1204 %
   1205 %\long\def\ydeleted#1{
   1206 %\ifdraft
   1207 %\global\advance\refchangenumber by 1
   1208 %\ifnumlines\xdef\doit{\noexpand\linelabel{\the\refchangenumber}}\doit\else%
   1209 %\xdef\doit{\noexpand\label{\the\refchangenumber}}\doit\fi%
   1210 %{\color{trackcolor}(Deleted: \sout{#1})}%
   1211 %\expandafter\def\csname changenum\the\refchangenumber\endcsname{Deleted:
   1212 %{\color{trackcolor}\sout{#1}}, }\fi}
   1213 %
   1214 %\def\replaced{\@ifnextchar[{\xreplaced}{\yreplaced}}
   1215 %
   1216 %\long\def\xreplaced[#1]#2#3{%
   1217 %\ifdraft
   1218 %\global\advance\refchangenumber by 1
   1219 %\ifnumlines\xdef\doit{\noexpand\linelabel{\the\refchangenumber}}\doit\else%
   1220 %\xdef\doit{\noexpand\label{\the\refchangenumber}}\doit\fi%
   1221 %{\color{trackcolor}(Replaced: \sout{#2}}
   1222 %{\color{black}replaced with:} {\color{trackcolor} #3)}%
   1223 %\expandafter\gdef\csname
   1224 %changenum\the\refchangenumber\endcsname{Replaced: [#1]
   1225 %{\color{trackcolor}\sout{#2}} {\color{black} replaced with:}
   1226 %{\color{trackcolor}#3}, }\else#3\fi}
   1227 %
   1228 %\long\def\yreplaced#1#2{%
   1229 %\ifdraft
   1230 %\global\advance\refchangenumber by 1
   1231 %\ifnumlines\xdef\doit{\noexpand\linelabel{\the\refchangenumber}}\doit\else%
   1232 %\xdef\doit{\noexpand\label{\the\refchangenumber}}\doit\fi%
   1233 %{\color{trackcolor}(Replaced: \sout{#1}}
   1234 %{\color{black}replaced with:} {\color{trackcolor} #2)}%
   1235 %\expandafter\gdef\csname changenum\the\refchangenumber\endcsname{Replaced:
   1236 %{\color{trackcolor}\sout{#1}} {\color{black} replaced with:}
   1237 %{\color{trackcolor}#2}, }\else#2\fi}
   1238 %
   1239 %\global\@mparswitchfalse
   1240 %\def\explain{\@ifnextchar[{\xexplain}{\yexplain}}
   1241 %
   1242 %%%
   1243 %\def\xexplain[#1]#2{\ifdraft\marginpar{\noindent{\color{red}\llap{\boldmath$\leftarrow$}\draftfalse\normalsize
   1244 %\baselineskip=11pt\relax[#1] #2\vskip1sp}}\fi}
   1245 %
   1246 %\def\yexplain#1{\ifdraft\marginpar{\noindent{\color{red}\llap{\boldmath$\leftarrow$}\draftfalse\normalsize
   1247 %\baselineskip=11pt\relax#1\vskip1sp}}\fi}
   1248 %
   1249 %
   1250 %\newcount\listchangenum
   1251 %
   1252 %\def\listofchanges{
   1253 %\clearpage
   1254 %\ifdraft
   1255 %\ifnum\refchangenumber>0
   1256 %\ifnumlines\nolinenumbers\fi
   1257 %\vskip36pt
   1258 %\vtop{\hrule
   1259 %\noindent{\vrule height 9pt width0pt depth 6pt\large\bf List of Changes}
   1260 %\hrule
   1261 %\vskip18pt}
   1262 %\nobreak
   1263 %{\parskip=4pt \parindent-18pt \leftskip=18pt
   1264 %\loop
   1265 %\vskip-1pt\relax
   1266 %\global\advance\listchangenum by 1\relax
   1267 %\expandafter\ifx\csname changenum\the\listchangenum\endcsname\relax
   1268 %\else
   1269 %\csname changenum\the\listchangenum\endcsname\ on page
   1270 %\pageref{\the\listchangenum}%
   1271 %\ifnumlines
   1272 %\setbox0=\hbox{\lineref{\the\listchangenum}}%
   1273 %\ifdim\wd0>20pt%
   1274 %\else%
   1275 %, line\
   1276 %\lineref{\the\listchangenum}%
   1277 %\fi\fi.
   1278 %\repeat}
   1279 %\fi\fi
   1280 %\thispagestyle{empty}
   1281 %}
   1282 %
   1283 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   1284 %% 14) Supporting Information
   1285 \def\supportinginfo#1{\newpage
   1286 {\large\bf\noindent Supporting  Information for\vskip-6pt\noindent``#1''}
   1287 \vskip12pt}
   1288 
   1289 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   1290 %%% Start page numbering, formatting
   1291 
   1292 \pagenumbering{arabic}
   1293 \widowpenalty=10000
   1294 \clubpenalty=10000
   1295 \ifdraft
   1296 \RaggedRight
   1297 \fi
   1298 \endinput
   1299 
   1300 
   1301 
   1302 
   1303 
   1304 
   1305 
   1306 
   1307 
   1308 
   1309 
   1310 
   1311 
   1312