diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-29 03:01:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-29 03:01:08 +0000 |
commit | 84ead792ae29b5dcefb36517d42178c278b8cb9b (patch) | |
tree | a259dd45fe4ddea8c28e6f12cb04897178d2c5d9 /macros | |
parent | 4d43c69d8ce1c8e128aa59c4eb19189219ac8b3d (diff) |
CTAN sync 202008290301
Diffstat (limited to 'macros')
16 files changed, 4267 insertions, 16 deletions
diff --git a/macros/latex/contrib/oup-authoring-template/README b/macros/latex/contrib/oup-authoring-template/README new file mode 100644 index 0000000000..9226d6cecd --- /dev/null +++ b/macros/latex/contrib/oup-authoring-template/README @@ -0,0 +1,23 @@ +This is OUP's new document class file for typesetting journal articles, +"oup-authoring-template.cls". + +oup-authoring-template.cls is based upon the standard LaTeX document class +article.cls. It uses natbib.sty for bibliographical references. + +The file manifest.txt provides a list of the files in the oup-authoring-template +bundle. The following are the main files available: +- oup-authoring-template.tex, Sample template file to start with a new article +- oup-authoring-template.pdf, Sample pdf using the option contemporary, large layout. Please modify the options appropriately in the tex file to get different layouts. +- oup-authoring-template.cls is the class file + +The documentation file is oup-authoring-template-doc.tex in the doc directory. To +compile it: +latex oup-authoring-template-doc.tex + +Also, oup-authoring-template-doc.pdf is available in the doc directory. + +Copyright 2020 OXFORD UNIVERSITY PRESS. + +Documentation and supporting packages are released under the +LATEX Project Public Licence, either version 1.3 or any later +version.
\ No newline at end of file diff --git a/macros/latex/contrib/oup-authoring-template/doc/oup-authoring-template-doc.pdf b/macros/latex/contrib/oup-authoring-template/doc/oup-authoring-template-doc.pdf Binary files differnew file mode 100644 index 0000000000..fdeebcf01a --- /dev/null +++ b/macros/latex/contrib/oup-authoring-template/doc/oup-authoring-template-doc.pdf diff --git a/macros/latex/contrib/oup-authoring-template/doc/oup-authoring-template-doc.tex b/macros/latex/contrib/oup-authoring-template/doc/oup-authoring-template-doc.tex new file mode 100644 index 0000000000..d4e6eedc8a --- /dev/null +++ b/macros/latex/contrib/oup-authoring-template/doc/oup-authoring-template-doc.tex @@ -0,0 +1,424 @@ +%% +%% Copyright 2020 OXFORD UNIVERSITY PRESS +%% +%% This file is part of the 'oup-authoring-template Bundle'. +%% --------------------------------------------- +%% +%% It may be distributed under the conditions of the LaTeX Project Public +%% License, either version 1.2 of this license or (at your option) any +%% later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% The list of all files belonging to the 'oup-authoring-template Bundle' is +%% given in the file `manifest.txt'. +%% +%% Template article for OXFORD UNIVERSITY PRESS's document class `oup-authoring-template' +%% with bibliographic references +%% +\documentclass{article} + +\usepackage{xspace} +\usepackage{fancyvrb} +\usepackage{hyperref} + + +\begin{document} + +\title{\bfseries User Manual\\ +OUP Journals---Authoring template} + +\author{Copyright Oxford University Press 2020\\ +\small Prepared by SPi \TeX\ Support} + + +\maketitle + +\tableofcontents + +\section{Introduction } +Oxford University Press has developed this authoring template to help authors in preparing articles. Authors are encouraged to use this template to produce \LaTeX\ manuscripts which conform to OUP Journal styles. This document is a manual for authors to help using this template during article preparation. It features general guidelines and contains descriptions regarding various elements that can be used while preparing manuscripts. Authors are requested to refer to the file ``readme.pdf'' for details of files available for reference. + +Please utilize the OUP authoring template to the maximum, rather than adding further packages. If you need extra structural mark-up, please provide a note to the compositor on the same. Packages that only ``enhance'' the layout are not recommended. The same applies to newly introduced macros. Please concentrate on logical mark-up instead of formatting. This will ease the production process and avoids misinterpretation of your \LaTeX\ code. + +This documentation is not intended to give an introduction to \LaTeX. For questions concerning \TeX\ systems/installations or the \LaTeX\ mark-up language in general, please visit \url{http://tug.ctan.org/} or any other \TeX\ user group worldwide. The essential reference for \LaTeX\ is Mittelbach F., Goossens M. (2004) \textit{The \LaTeX\ Companion. 2nd edn.}, but there are many other good books about \LaTeX. + +\section{Quick reference guide} +\begin{itemize} +\item How to download and install - \url{https://miktex.org/download} +\item Any system requirements - \url{https://miktex.org/kb/prerequisites-2-9} +\item Quick steps to get started - \url{http://users.dickinson.edu/~richesod/latex/latexcheatsheet.pdf}\newline +\url{http://wch.github.io/latexsheet/latexsheet.pdf}\newline +\url{https://www.overleaf.com/learn} +\end{itemize} + +\section{How to start and prepare your article } +It is assumed that you possess basic knowledge of \LaTeX. Unless using \LaTeX\ online (for example via Overleaf.com) ensure that you have \LaTeX2e version installed on your computer. We suggest employing a recent \TeX installation: the most important distribution at the time of writing being MiK\TeX\ 2.9. You are provided with a class file ``oup-authoring-template.cls''. This template can be kept with your manuscript files. Note that the class file depends on the following packages which are standard and are available along with \LaTeX installation: + +\begin{center}\begin{tabular}{|l|l|l|l|l|}\hline +graphicx & multirow & amsmath & amssymb & amsfonts \\\hline +array & flushend & stfloats & color & xcolor \\\hline +rotating & chngpage & totcount & fix-cm & algorithm \\\hline +algorithmicx & algpseudocode & listings & url & crop \\\hline +\end{tabular}\end{center} + +Apart from the above-listed packages, the following additional packages are used in the class file for providing add-on functionalities to the template: + +\begin{center}\begin{tabular}{|c|c|c|c|c|}\hline +subfloat & subfig & appendix & hyperref & footnote \\\hline +mathrsfs & natbib & wrapfig & amsthm & apacite \\\hline +\end{tabular}\end{center} + +To learn more about the underlying packages, please read the respective documentations (try, e.g., texdoc [package name] at your shell prompt or visit \url{http://tug.ctan.org/}). + +\medskip + +\noindent You are given with sample tex file: oup-authoring-template.tex + +\medskip + +Based on your journal style, we would suggest you to use the corresponding sample template file to start your manuscript preparation; other templates available in the package can be removed. Please save a copy of the template file before you start editing the file as per your requirement. These samples contain the lines for calling class files, the preamble area, and the start/end of document where major sample elements required for an article are placed. Comments are included for each element and are self-explanatory. You can add your actual manuscript content in place of these sample elements. The standard structure of each element for an article is explained in detail in the following sections. + + +To use OUP authoring template, put all the package files in your working directory, edit the file ``sample template file'' in your preferred text editor, and run \LaTeX\ as usual. The resulting layout is similar but not identical to the layout of the final article. + +Please note that you are not responsible for any final page layout. It is not necessary (and is even sometimes undesirable) to do any fine-tuning with commands like \verb+\break+, \verb+\pagebreak+, \verb+\vspace+, \verb+\clearpage+, etc. Please use semantic mark-up as far as possible and avoid additional formatting commands. + + +\section{Package features and some important settings} + +\subsection{Language} +English is the default language used for typesetting rules. + +\subsection{Fonts} +Please refrain from using custom fonts. + +\medskip + +\noindent Text fonts: Unlike the final published version, the authoring template uses non-commercial fonts: Computer Modern. These fonts are free version of the PostScript standard fonts and are supplied as part of all standard \TeX\ distributions. + +\medskip + +\noindent Math fonts: The standard Computer Modern math fonts are used. + +\section{Preamble} +The preamble part comes between the document class line---\newline\verb+\documentclass{...}+---and the beginning of your document---\verb+\begin{document}+. Use this preamble area to include additional packages and customized macros if any. + +\section{Details on document class options} + +\begin{enumerate} +\item[a.] Options available to select three different types of layout: +\begin{itemize} +\item Modern +\item Traditional +\item Contemporary +\end{itemize} +\item[b.] Options available to select three different paper sizes: +\begin{itemize} +\item Large +\item Medium +\item Small +\end{itemize} +\item[c.] namedate --- for authoryear citation style; default reference citation style is numbered reference style +\item[d.] webpdf --- for cropped paper size in the PDF output +\item[e.] unnumsec --- to get unnumbered section heads +\end{enumerate} + +\section{Major structures/elements} + +Article contents are divided into three main elements—front matter, main matter, and back matter. The elements preceding the \verb+\maketitle+ tag are considered as front matter elements and the elements placed below the \verb+\maketitle+ tag are main matter elements. Elements found after the section ``Conclusion'' are considered as back matter elements. + +\begin{center}\tabcolsep2pt\fontsize{6}{9}\selectfont\begin{tabular}{|l|l|l|}\hline +\textbf{Front matter}& \textbf{Main matter}& \textbf{Back matter}\\ +\hline +\verb+\title{...}+& \verb+\section{...}+& \verb+\begin{appendices}...\end{appendices}+\\\hline +\verb+\author{...}+& \verb+\subsection{...}+& \verb+\bibliographystyle{...}+\\\hline +\verb+\authormark{...}+& \verb+\subsubsection{...}+& \verb+\bibliography{...}+\\\hline +\verb+\address{...}+& \verb+\paragraph{...}+& \verb+\begin{biography}{...}{...}\end{biography}+\\\hline +\verb+\corresp[]{...}+& \verb+\begin{algorithm}...\end{algorithm}+& \\\hline +\verb+\received{...}{...}{...}+& \verb+\begin{lstlisting}...\end{lstlisting}+& \\\hline +\verb+\revised{...}{...}{...}+& \verb+\begin{table}...\end{table}+& \\\hline +\verb+\accepted{...}{...}{...}+& \verb+\begin{figure}...\end{figure}+& \\\hline +\verb+\abstract{...}+& \verb+\begin{enumerate}...\end{enumerate}+& \\\hline +\verb+\keywords{...}+& \verb+\begin{unlist}...\end{unlist}+& \\\hline +\verb+\boxedtext{...}+& \verb+\begin{itemize}...\end{itemize}+& \\\hline +\verb+\editor{...}+& \verb+\begin{theorem}...\end{theorem}+& \\\hline +\verb+ \maketitle+& \verb+\begin{proposition}...\end{proposition}+& \\\hline + & \verb+\begin{example}...\end{example}+& \\\hline + & \verb+\begin{definition}...\end{definition}+& \\\hline + & \verb+\begin{proof}...\end{proof}+& \\\hline +& \verb+\begin{equation}...\end{equation}+& \\ +\hline +\end{tabular}\end{center} + + +\section{Front matter elements } +Required elements may vary depending on the journal to which you plan to submit. Check the instructions on the journal’s webpage carefully. The tagging details of article opener elements are as follows: +\begin{enumerate} +\item \verb+\title[<short-form-of-article-title>]{<article-title>} + + +This tag contains two parameters, first one is optional and the second argument is mandatory. By default, the article title is printed as running heads on both odd/even pages. In case of lengthy article title, provide the short form of article title in the optional argument. + +\item \verb+\author[<address-num>]{<author-name>}+---to be used for the authors other than the corresponding author. + +\verb+\author[<address-num>,$\ast$]{<author-name>}+---to be used for the corresponding author who is nominated as being responsible for the\break manuscript as it moves through the entire publication process. He is the “time keeper” during each phase of the publication process and the primary contact between the journal and all the other authors of the paper. + +\item \verb+\address[<sequence>]{<address-details>}+---affiliation/address details are provided inside this tag. In case of multiple addresses, just provide sequential Arabic numerals in the optional argument of this tag. This numeral is used to denote the affiliation for the respective authors. In case of single author/address, this optional argument can be ignored. For example, refer below: + +\verb+\author{...}+ + +\verb+\address{...}+ + +\item \verb+\corresp[$\ast$]{...}+— provide corresponding author's email id inside this tag. + +\item The other tags listed below are self-explanatory. Note the `received', `revised' and `accepted' dates are placeholders for the final publication: these can be left blank: + +{\tabcolsep3pt\fontsize{7}{10}\selectfont\begin{tabular}{|l|l|l|l|l|} \hline +\verb+\orgdiv{. . .}+ & \verb+\orgname{. . .}+ & \verb+\orgaddress{. . .}+ & \verb+\country{. . .}+ & \verb+\postcode{. . .}+ \\ \hline +\verb+\street{. . .}+ & \verb+\city{. . .}+ & \verb+\state{. . .}+ & \verb+\abstract{. . .}+ & \verb+\keywords{. . .}+ \\ \hline +\verb+\received{. . .}+ & \verb+\revised{. . .}+ & \verb+\accepted{. . .}+ & & \\ \hline +\end{tabular}} + +\item \verb+\maketitle+---this tag is mandatory to print the front matter elements in the output. + +\end{enumerate} + + +\section{Main matter elements } +\subsection{Section headings} +The template allows four levels of headings in different styles: + +\medskip + +\verb+\section{<First level heading>} + + +\verb+\subsection{<Second level heading>} + + +\verb+\subsubsection{<Third level heading>}+ + +\verb+\paragraph{<Fourth level heading>} + + +\medskip + +\noindent To get unnumbered level heads, provide ``unnumsec'' option to\newline \verb+\documentclass[unnumsec]{oup-authoring-template}+. + +\subsection{Mathematical formulae} + +As ``amsmath'' package provides various features for displayed equations and other mathematical constructs and you are strongly encouraged to use the mark-ups provided by this package. If possible, avoid using manual skips to align an equation. + +\subsection{Figures and Tables} +The standard interface for graphic inclusion is the \verb+\includegraphics+ command provided by the graphicx package. The ``draft'' option provided by this package locally switches to draft mode, i.e. does not include the graphic, but leaves the correct space, and prints the filename. This option may be used to save the processing time during compilation. Note that the \verb+\graphicspath+ command allows you to declare one or more folders where the graphicx package looks for the image files; hence, it is not necessary to write the path into each \verb+\includegraphics+ command. + +The format used for numbered ``figures/tables'' is similar to the basic \LaTeX\ format: + +\begin{verbatim} +\begin{figure}[t] +\centering +\includegraphics{<image-file-name>} +\caption{<figure caption text>}\label{...} +\end{figure} +\end{verbatim} + +In case of double column layout, the above format puts figure captions/images to a single column width. To get spanned images, we need to provide the environment +\verb+\begin{figure*}...\end{figure*}+. + +For the purpose of the sample, we have included the width of images in the optional argument of the \verb+\includegraphics+ tag. Please ignore this. + +Images exceeding the text width should be set as rotated images. For this, we need to use \verb+\begin{sidewaysfigure}...\end{sidewaysfigure}+ instead of the \verb+\begin{figure}...\end{figure}+ environment. In case of double column layout, this format puts figure captions/images to single column width. To get spanned rotated images, use\newline \verb+\begin{sidewaysfigure*}...\end{sidewaysfigure*}+. + +If the journal requires that you include a graphical abstract, include this as an unnumbered figure directly after the text abstract with no caption, but adding the \verb+\caption+ package to the preamble and including the image as follows (note the file name for the graphical abstract): + +\begin{verbatim} +\begin{figure}[t] +\centering +\includegraphics{graphical_abstract.jpg} +\captionsetup{labelformat=empty} +\caption{} +\label{...} +\end{figure} +\end{verbatim} + +The format for table is as follows: + +\begin{verbatim} +\begin{table}[<float-position>] +\begin{center} +\begin{minipage}{<specify-table-width>} +\caption{...}\label{<table-label>} +\begin{tabular}{<column-alignment-preamble>} +\toprule +... & ... & ... & ... \\ +\midrule +... & ... & ... & ...\footnotemark{1} \\ +... & ... & ... & ... \\ +... & ... & ... & ...\footnotemark{2} \\ +\botrule +\end{tabular} +\footnotetext{...} +\footnotetext[1]{...} +\footnotetext[2]{...} +\end{minipage} +\end{center} +\end{table} +\end{verbatim} + +Command to be used for rotated tables: + +\begin{verbatim} +\begin{sidewaystable}...\end{sidewaystable} +\end{verbatim} + +To span tables across columns in double column layout: + +\begin{verbatim} +\begin{table*}...\end{table*} +\end{verbatim} + +To span rotated tables across columns in double column layout: + +\begin{verbatim} +\begin{sidewaystable*}...\end{sidewaystable*} +\end{verbatim} + +\subsection{Lists} +The default list commands available in \LaTeX\ can be used to set different types of lists: + +\begin{enumerate} +\item numbered: \verb+\begin{enumerate}...\end{enumerate}+ +\item[] first level—Arabic numerals; +\item[]second level—lowercase alphabet; +\item[]third level—lowercase roman numerals; +\item unnumbered: \verb+\begin{unlist}...\end{unlist}+ +\item custom list: \verb+\begin{itemize}...\end{itemize}+ +\item[]first level—bulleted; +\item[]second level—bulleted. +\end{enumerate} +Nested lists are allowed for numbered and custom lists. + +\subsection{Theorem-like environments} + +For theorem like environments, we require ``amsthm'' package. There are three types of predefined theorem styles—thmstyleone, thmstyletwo, and thmstylethree. The below table shows the output details for each style: +\begin{center}\begin{tabular}{|l|p{22pc}|} +\hline thmstyleone &Numbered, theorem head in bold font and theorem text in italic style\\ +\hline +thmstyletwo & Numbered, theorem head in italic font and theorem text in roman style\\ +\hline +thmstylethree & Numbered, theorem head in bold font and theorem text in roman style\\ +\hline +\end{tabular}\end{center} +As per the output requirement, the corresponding new theorem style should be defined in the preamble area. For example, if you require a ``Proposition'' environment to be set with ``thmstyletwo,'' then we need to include the below lines in the preamble area: + +\begin{verbatim} +\theoremstyle{thmstyletwo} +\newtheorem{proposition}{Proposition} +\end{verbatim} + +Refer to the ``amsthm'' package documentation for more details about the additional features available for new theorem styles. As well as the above, a predefined ``proof'' environment is available. This environment prints the ``Proof'' head in italic style and ``body text'' in Roman style with an open square at the end of each proof environment. + +\begin{verbatim} +\begin{proof}...\end{proof} +\end{verbatim} + +\subsection{Footnotes} + +Footnotes are produced with the standard \LaTeX\ command \verb+\footnote{<Some text>}+. This typesets a numerical flag at the location of the footnote command and places the footnote text at the bottom of the page. + +\subsection{Algorithms, Program codes, and Listings} + +The packages ``algorithm,'' ``algorithmicx,'' and ``algpseudocode'' are used for setting algorithms in \LaTeX. For algorithms, use the below format: + +\begin{verbatim} +\begin{algorithm} +\caption{<alg-caption>}\label{<alg-label>} +\begin{algorithmic}[1] +... +\end{algorithmic} +\end{algorithm} +\end{verbatim} +Refer the above-listed package documentation for more details before setting algorithms. + +To set program codes, the ``program'' package is required and the command to be used is \verb+\begin{program}...\end{program}+. + +The command \verb+\begin{lstlisting}...\end{lstlisting}+ is used to set ``verbatim'' like environments. Refer to the "lstlisting" package documentation for more details. + +\subsection{Cross references} + +\LaTeX\ is able to automatically insert hypertext links within a document: + +\begin{itemize} +\item the \verb+\ref{}+ command adds a clickable link to the referred object; +\item the \verb+\label{}+ command automatically inserts a target; +\end{itemize} + +\subsection{Cross citations } +To make a citation in the text, use \verb+\citep{...}+ for a parenthetical citation (Jones et al., 1990), \verb+\citet{...}+ for a textual one, as Jones et al. (1990). Both \verb+\citep+ and \verb+\citet+ are defined by ``natbib'' and are thus not standard. The standard \LaTeX\ command \verb+\cite+ should be avoided, because it behaves like \verb+\citet+ for author–year citations, but like \verb+\citep+ for numerical ones. There also exist the starred versions \verb+\citet*+ and \verb+\citep*+ that print the full author list, and not just the abbreviated one. All of these may take one or two optional arguments to add some text before and after the citation: + +\begin{center}\begin{tabular}{|l|l|}\hline +\verb+\citet{jon90}+& \verb+Jones et al. (1990) +\\\hline +\verb+\citet[chap.~2]{jon90}+& \verb+Jones et al. (1990, chap. 2) +\\\hline +\verb+\citep{jon90}+& \verb+(Jones et al., 1990) +\\\hline +\verb+\citep[chap.~2]{jon90}+& \verb+(Jones et al., 1990, chap. 2) +\\ \hline +\verb+\citep[see][]{jon90}+& \verb+(see Jones et al., 1990) +\\\hline +\verb+\citep[see][chap.~2]{jon90}+& \verb+(see Jones et al., 1990, chap. 2) +\\\hline +\verb+\citet*{jon90}+& \verb+Jones, Baker, and Williams (1990) +\\\hline +\verb+\citep*{jon90}+& \verb+(Jones, Baker, and Williams, 1990)+\\ +\hline +\end{tabular}\end{center} +Please refer to the ``natbib'' package documentation for guidance on other citation commands. + +\section{Back matter elements } +\subsection{Appendices} +This section is set with a \verb+\begin{appendices}...\end{appendices}+ environment. All the other commands used to set section heads, tables, and figures inside this section remain the same as the main body text. + + +\subsection{References} +The basic bibliography environment is accepted for setting a reference section: + +\begin{verbatim} +\begin{thebibliography}{9} +\bibitem{bib1} ... +\bibitem{bib2} ... +\end{thebibliography} +\end{verbatim} +However, BiB\TeX\ is the preferred format for references. BiB\TeX\ automates most of the work involved in references for articles. Using BiB\TeX\ options, both citations and references can be automatically updated to the preferred reference style. That is, you need not apply reference style tags for each element manually; it promotes structured writing. Basically, BiB\TeX\ works with two parts of the references: \textit{content} and \textit{style}. The \textit{content} is stored separately in a plain text database file called .bib, in which each entry is structured to distingiush diferent types of entries and fields. The \textit{style} and presentation of the database content are processed with the help of BiB\TeX\ program using a style file called .bst (bibliography style file). + +You are requested to use the sample bib file ``reference.bib'' provided as a base for preparing your own .bib file. For the ``author-year'' citation style, use ``abbrvnat'' bst and for ``numbered'' citation style use ``plain'' bst, by adding the following instructions to the preamble. + +\begin{enumerate} +\item author-year citation style = \verb+\bibliographystyle{abbrvnat}+ +\item numbered citation style = \verb+\bibliographystyle{unsrt}+ +\end{enumerate} + +Then include your .bib file at the end of your document as shown below: +\begin{verbatim} +\bibliography{<bib-file-without-extension>} +\end{verbatim} +To generate the .bbl file, you should only need to compile \LaTeX/PDF\LaTeX once, then BIB\TeX, then \LaTeX/PDF\LaTeX twice more. The resulting bibliography is ready for typesetting with all formatting tags rendered according to the chosen reference style. For more details, please visit \url{http://www.bibtex.org}. +\section{Author biography} +If this section is required by the journal, please use the below command: +\begin{verbatim} +\begin{biography} +{\includegraphics{<image-file>}} +{\author{<author-Name>} biography-text} +\end{biography} +\end{verbatim} + +\section{Author supports} +General support for \LaTeX\ related questions can be obtained from the Internet newsgroup comp.text.tex. Frequently asked questions are available in various web sites dealing with \LaTeX. + + +\section{Revision History} + +\begin{tabular}{|l|l|l|l|} +\hline +Revision State & Revision Date & Version Number & Revision History\\ +\hline + 00 & 16 March, 2020 & Version 1.0 & \\ + \hline +\end{tabular} + + + + +\end{document} diff --git a/macros/latex/contrib/oup-authoring-template/manifest.txt b/macros/latex/contrib/oup-authoring-template/manifest.txt new file mode 100644 index 0000000000..139c288b0b --- /dev/null +++ b/macros/latex/contrib/oup-authoring-template/manifest.txt @@ -0,0 +1,39 @@ +%% +%% Copyright 2020 OXFORD UNIVERSITY PRESS +%% +%% This file is part of the 'oup-authoring-template Bundle'. +%% --------------------------------------------- +%% +%% It may be distributed under the conditions of the LaTeX Project Public +%% License, either version 1.2 of this license or (at your option) any +%% later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% The list of all files belonging to the 'oup-authoring-template Bundle' is +%% given in the file `manifest.txt'. +%% +%% Template article for OXFORD UNIVERSITY PRESS's document class `oup-authoring-template' +%% with bibliographic references +%% + +% CONTENTS OF THE OUP-AUTHORING-TEMPLATE BUNDLE % +================================================= + +Directory oup-authoring-template/ + +oup-authoring-template.tex + article template for a document with author-year and numbered citation + +manifest.txt + this file + +README + small readme documentation + +Directory oup-authoring-template/doc/ + +oup-authoring-template-doc.tex -- LaTeX source file of documentation +oup-authoring-template-doc.pdf -- documentation for oup-authoring-template.cls + diff --git a/macros/latex/contrib/oup-authoring-template/oup-authoring-template.cls b/macros/latex/contrib/oup-authoring-template/oup-authoring-template.cls new file mode 100644 index 0000000000..52a0142230 --- /dev/null +++ b/macros/latex/contrib/oup-authoring-template/oup-authoring-template.cls @@ -0,0 +1,2401 @@ +%% +%% Copyright 2020 OXFORD UNIVERSITY PRESS +%% +%% This file is part of the 'oup-authoring-template Bundle'. +%% --------------------------------------------- +%% +%% It may be distributed under the conditions of the LaTeX Project Public +%% License, either version 1.2 of this license or (at your option) any +%% later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% The list of all files belonging to the 'oup-authoring-template Bundle' is +%% given in the file `manifest.txt'. +%% +%% Template article for OXFORD UNIVERSITY PRESS's document class `oup-authoring-template' +%% with bibliographic references +%% + +\newcommand\classname{oup-authoring-template} +\newcommand\lastmodifieddate{2020/02/18} +\newcommand\versionnumber{1.0} + +\NeedsTeXFormat{LaTeX2e}[2001/06/01] +\ProvidesClass{\classname}[\lastmodifieddate\space\versionnumber] + +% Are we printing crop marks? +\newif\if@cropmarkson \@cropmarksontrue +\newif\if@modern\global\@modernfalse +\newif\if@traditional\global\@traditionalfalse +\newif\if@contemporary\global\@contemporaryfalse +% +\newif\if@large\global\@largefalse +\newif\if@medium\global\@mediumfalse +\newif\if@small\global\@smallfalse +% +\newif\if@unnumsec\global\@unnumsecfalse +\newif\if@final\global\@finalfalse +\newif\if@weblink\@weblinkfalse +\newif\if@proof\global\@prooffalse% + +\if@compatibility\else +\DeclareOption{namedate}{\PassOptionsToPackage{authoryear,round}{natbib}} +\DeclareOption{draft}{\PassOptionsToPackage{draft}{graphicx}} +\DeclareOption{b4paper}{\PassOptionsToPackage{b4}{crop}} +\DeclareOption{centre}{\PassOptionsToPackage{center}{crop}} +\DeclareOption{crop}{\PassOptionsToPackage{cam}{crop}\global\@cropmarksontrue} +\DeclareOption{nocrop}{\PassOptionsToPackage{off}{crop}\global\@cropmarksonfalse} +\DeclareOption{info}{\PassOptionsToPackage{info}{crop}} +\DeclareOption{noinfo}{\PassOptionsToPackage{noinfo}{crop}} +\DeclareOption{final}{\global\@finaltrue} +\DeclareOption{unnumsec}{\global\@unnumsectrue} +% +\DeclareOption{webpdf}{\@weblinktrue} +% +\DeclareOption{modern}{\global\@moderntrue} +\DeclareOption{traditional}{\global\@traditionaltrue} +\DeclareOption{contemporary}{\global\@contemporarytrue} +% +\DeclareOption{large}{\global\@largetrue} +\DeclareOption{medium}{\global\@mediumtrue} +\DeclareOption{small}{\global\@smalltrue} +\fi +\ExecuteOptions{b4paper,centre,info}% +\ProcessOptions + +\if@modern + \if@large + \setlength{\paperheight}{278.83truemm} + \setlength{\paperwidth}{215.78truemm} + \else + \if@medium + \setlength{\paperheight}{245.96truemm} + \setlength{\paperwidth}{188.88truemm} + \else + \if@small + \setlength{\paperheight}{234truemm} + \setlength{\paperwidth}{156truemm} + \else + \setlength{\paperheight}{146truemm} + \setlength{\paperwidth}{189truemm} + \fi + \fi +\fi +\else +\if@traditional + \if@large + \setlength{\paperheight}{278.83truemm} + \setlength{\paperwidth}{215.78truemm} + \else + \if@medium + \setlength{\paperheight}{245.96truemm} + \setlength{\paperwidth}{188.88truemm} + \else + \setlength{\paperheight}{234truemm} + \setlength{\paperwidth}{156truemm} + \fi + \fi +\else +\if@contemporary + \if@large + \setlength{\paperheight}{275.84truemm} + \setlength{\paperwidth}{209.80truemm} + \else + \if@medium + \setlength{\paperheight}{245.96truemm} + \setlength{\paperwidth}{188.88truemm} + \else + \if@small + \setlength{\paperheight}{234truemm} + \setlength{\paperwidth}{156truemm} + \else + \setlength{\paperheight}{146truemm} + \setlength{\paperwidth}{189truemm} + \fi + \fi + \fi +\else + \setlength{\paperheight}{278.83truemm} + \setlength{\paperwidth}{215.78truemm} +\fi\fi\fi + +% Load all necessary packages +\RequirePackage{crop} +\RequirePackage{graphicx} +\RequirePackage{caption} +\RequirePackage{amsmath} +\RequirePackage{array} +\RequirePackage{color} +\RequirePackage{xcolor} +\RequirePackage{amssymb} +\RequirePackage{flushend} +\RequirePackage{stfloats} +\RequirePackage[figuresright]{rotating} +\RequirePackage{chngpage} +\RequirePackage{totcount} +\RequirePackage{fix-cm} + +%\RequirePackage[LY1,mtbold]{mathtime}2015 +\def\sffamilyfont{\sffamily} +\def\sffamilyfontitalic{\sffamily\itshape\selectfont} +\def\sffamilyfontbold{\sffamily\bfseries\selectfont} +\def\sffamilyfontbolditalic{\sffamily\bfseries\itshape\selectfont} +\def\sffamilyfontcn{\sffamily\fontseries{m}\fontshape{n}\selectfont} +\def\sffamilyfontcnitalic{\sffamily\fontseries{m}\fontshape{it}\selectfont} +\def\sffamilyfontcnbold{\sffamily\bfseries\selectfont} +\def\sffamilyfontcnbolditalic{\sffamily\fontseries{b}\fontshape{it}\selectfont} + +% Not sure if needed. +\newcommand\@ptsize{0} + +% Set twoside printing +\@twosidetrue + +% Marginal notes are on the outside edge +\@mparswitchfalse + +\reversemarginpar + +\if@modern + \if@large + \renewcommand\normalsize{% + \@setfontsize\normalsize{8bp}{11pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \else + \if@medium + \renewcommand\normalsize{% + \@setfontsize\normalsize{8.5bp}{11.5pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \else + \if@small + \renewcommand\normalsize{% + \@setfontsize\normalsize{8.5bp}{12pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \else + \fi + \fi + \fi +\else +\if@traditional + \if@large + \renewcommand\normalsize{% + \@setfontsize\normalsize{9bp}{11.5pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \else + \if@medium + \renewcommand\normalsize{% + \@setfontsize\normalsize{8.5bp}{10pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \else + \renewcommand\normalsize{% + \@setfontsize\normalsize{10.5bp}{12.5pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \fi + \fi +\else +\if@contemporary + \if@large + \renewcommand\normalsize{% + \@setfontsize\normalsize{7.5bp}{10.5pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \else + \renewcommand\normalsize{% + \@setfontsize\normalsize{7.5bp}{10.5pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} + \fi +\else + \renewcommand\normalsize{% + \@setfontsize\normalsize{8.5bp}{12pt}% + \abovedisplayskip 11\p@ \@plus2\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} +\fi +\fi +\fi +\normalsize +\let\@bls\baselineskip + +\newcommand\small{% + \@setfontsize\small{7}{10}% + \abovedisplayskip 10\p@ minus 3\p@ + \belowdisplayskip \abovedisplayskip + \abovedisplayshortskip \z@ plus 2\p@ + \belowdisplayshortskip 4\p@ plus 2\p@ minus2\p@ + \def\@listi{\topsep 4.5\p@ plus 2\p@ minus 1\p@ + \itemsep \parsep + \topsep 4\p@ plus 2\p@ minus 2\p@}} + +\newcommand\footnotesize{% + \@setfontsize\footnotesize{8}{10}% + \abovedisplayskip 6\p@ minus 3\p@ + \belowdisplayskip\abovedisplayskip + \abovedisplayshortskip \z@ plus 3\p@ + \belowdisplayshortskip 6\p@ plus 3\p@ minus 3\p@ + \def\@listi{\topsep 3\p@ plus 1\p@ minus 1\p@ + \parsep 2\p@ plus 1\p@ minus 1\p@\itemsep \parsep}} + +\def\scriptsize{\@setfontsize\scriptsize{6.5pt}{9.5pt}} +\def\tiny{\@setfontsize\tiny{5pt}{7pt}} +\def\large{\@setfontsize\large{11.5pt}{12pt}} +\def\Large{\@setfontsize\Large{14pt}{16}} +\def\LARGE{\@setfontsize\LARGE{15pt}{17pt}} +\def\huge{\@setfontsize\huge{22pt}{22pt}} +\def\Huge{\@setfontsize\Huge{30pt}{30pt}} + +\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} +\DeclareOldFontCommand{\sf}{\normalfont\sffamilyfont}{\mathsf} +\DeclareOldFontCommand{\sfit}{\normalfont\sffamily\itshape}{\mathsf} +\DeclareOldFontCommand{\sfb}{\normalfont\sffamilyfontbold}{\mathsf} +\DeclareOldFontCommand{\sfbi}{\normalfont\sffamily\bfseries\itshape}{\mathsf} +\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt} +\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} +\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit} +\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl} +\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} + +% Crop Here +\def\oddsideskip{48pt}% +\def\evensideskip{56pt}% + +\newdimen\croppaperwidth +\newdimen\croppaperheight +\setlength{\croppaperwidth}{\paperwidth} +\setlength{\croppaperheight}{\paperheight} +\if@weblink%% +\else% + \addtolength{\croppaperwidth}{28truemm}% + \addtolength{\croppaperheight}{28truemm}% +\fi% + \CROP@size{\croppaperwidth}{\croppaperheight}% +% +\if@weblink%% +\else +\renewcommand*\CROP@@ulc{% + \begin{picture}(0,0) + \unitlength\p@\thinlines + \put(-40,0){\line(1,0){30.65}} + \put(0,42){\line(0,-1){30.65}} + \end{picture}% +} +\renewcommand*\CROP@@urc{% + \begin{picture}(0,0) + \unitlength\p@\thinlines + \put(41,0){\line(-1,0){30.65}} + \put(0,42){\line(0,-1){30.65}} + \end{picture}% +} +\renewcommand*\CROP@@llc{% + \begin{picture}(0,0) + \unitlength\p@\thinlines + \put(-40,0){\line(1,0){30.65}} + \put(0,-40){\line(0,1){30.65}} + \end{picture}% +} +\renewcommand*\CROP@@lrc{% + \begin{picture}(0,0) + \unitlength\p@\thinlines + \put(41,0){\line(-1,0){30.65}} + \put(0,-40){\line(0,1){30.65}} + \end{picture}% +} +% +\renewcommand*\CROP@@info{{% + \global\advance\CROP@index\@ne + \def\x{\discretionary{}{}{\hbox{\kern.5em--\kern.5em}}}% + \advance\paperwidth-20\p@ + \dimen@10pt + \ifx\CROP@pagecolor\@empty + \else + \advance\dimen@\CROP@overlap + \fi + \hb@xt@\z@{% + \hss + \vbox to\z@{% + %\centering + \hsize\paperwidth + \vss + \normalfont + \normalsize + \expandafter\csname\CROP@font\endcsname{\ifodd\c@page\hfill\else\hspace*{\evensideskip}\fi\if@proof\noindent\fboxsep1\p@\fbox{\fboxsep2\p@\fbox{\@oupdraftcopy}}\else\fi\ifodd\c@page\hspace*{\oddsideskip}\else\fi}%\noindent\fbox{\fboxsep2\p@\fbox{\@oupdraftcopy}} + \vskip\dimen@ + }% + \hss + }% +}} +% +\crop[cam]% +\fi% +% +\newdimen\Croppdfwidth +\newdimen\Croppdfheight +\newdimen\Trimpdfwidth +\newdimen\Trimpdfheight +\Croppdfwidth=\croppaperwidth +\Croppdfheight=\croppaperheight +\advance\Croppdfwidth by -0.71mm +\advance\Croppdfheight by -0.92mm +\Trimpdfwidth=\paperwidth +\Trimpdfheight=\paperheight +\advance\Trimpdfwidth by -0.59mm +\advance\Trimpdfheight by -0.88mm +% +\newdimen\CP@toff@wd +\newdimen\CP@toff@ht +% +\newdimen\CP@boff@wd +\newdimen\CP@boff@ht +% +\newdimen\CP@crop@wd +\newdimen\CP@crop@ht +% +\newdimen\CP@bled@wd +\newdimen\CP@bled@ht +% +\newdimen\CP@trim@wd +\newdimen\CP@trim@ht +% +\def\str@yes{yes} +\def\SetCrop#1#2{% + \gdef\IsCropSet{yes} + \global\CP@crop@wd=#1\relax + \global\CP@crop@ht=#2\relax} +\def\SetTrim#1#2{% + \gdef\IsTrimSet{yes} + \global\CP@trim@wd=#1\relax + \global\CP@trim@ht=#2\relax} +\def\SetBleed#1#2{% + \gdef\IsBleedSet{yes} + \global\CP@bled@wd=#1\relax + \global\CP@bled@ht=#2\relax} +% +\everyjob\expandafter{% + \the\everyjob + \typeout{% + \filename\space <\filedate>^^J + Version: v\fileversion^^J + LaTeX macros for setting Page Box parameters + }% + \IfFileExists{\filename.cfg}{% + \begingroup\@@input\@filef@und\endgroup + }{% + \typeout{No File: \filename.cfg}% + }% + \IfFileExists{\jobname.cfg}{% + \begingroup\@@input\@filef@und\endgroup + }{% + \typeout{No File: \jobname.cfg}% + }% +} +% +\if@weblink%%% + \SetCrop{\Trimpdfwidth}{\Trimpdfheight}% + \SetTrim{\Trimpdfwidth}{\Trimpdfheight}% + \SetBleed{0mm}{0mm}% +\else% + \SetCrop{\Croppdfwidth}{\Croppdfheight}% + \SetTrim{\Trimpdfwidth}{\Trimpdfheight}% + \SetBleed{3mm}{3mm}% +\fi +% +% +\def\do@pagebox@calc{% + \CP@toff@wd=\CP@crop@wd + \advance\CP@toff@wd by -\CP@trim@wd + \divide\CP@toff@wd by \tw@ +% + \CP@toff@ht=\CP@crop@ht + \advance\CP@toff@ht by -\CP@trim@ht + \divide\CP@toff@ht by \tw@ +% + \advance\CP@trim@wd by \CP@toff@wd + \advance\CP@trim@ht by \CP@toff@ht +% + \CP@boff@wd=\CP@toff@wd + \advance\CP@boff@wd by -\CP@bled@wd +% + \CP@boff@ht=\CP@toff@ht + \advance\CP@boff@ht by -\CP@bled@ht +% + \advance\CP@bled@wd by \CP@trim@wd + \advance\CP@bled@ht by \CP@trim@ht +} +% +\def\pdf@page@parameters{% + \ifx\IsCropSet\str@yes + [{ThisPage} << /CropBox [0 0 \strip@pt\CP@crop@wd\space \strip@pt\CP@crop@ht] >> /PUT pdfmark + [{ThisPage} << /MediaBox[0 0 \strip@pt\CP@crop@wd\space \strip@pt\CP@crop@ht] >> /PUT pdfmark + \fi + \ifx\IsTrimSet\str@yes + [{ThisPage} << /TrimBox [\strip@pt\CP@toff@wd\space \strip@pt\CP@toff@ht\space \strip@pt\CP@trim@wd\space \strip@pt\CP@trim@ht] >> /PUT pdfmark + \fi + \ifx\IsBleedSet\str@yes + [{ThisPage} << /BleedBox[\strip@pt\CP@boff@wd\space \strip@pt\CP@boff@ht\space \strip@pt\CP@bled@wd\space \strip@pt\CP@bled@ht] >> /PUT pdfmark + \fi +} +% +\def\shipout@PageObjects{% + \special{ps: \pdf@page@parameters}% +} +%% +\AtBeginDocument{% + \do@pagebox@calc + \let\org@begindvi\@begindvi + \def\@begindvi{% + \shipout@PageObjects + \org@begindvi + \global\let\@begindvi\rest@dvi@pages + }% +} +\let\rest@dvi@pages\shipout@PageObjects +% Crop End here + +\setlength\lineskip{1\p@} +\setlength\normallineskip{1\p@} +\renewcommand\baselinestretch{} +\setlength\parskip{0\p@} +\setlength\parindent{12pt} +\setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@} +\setlength\medskipamount{6\p@ \@plus 2\p@} +\setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@} +\@lowpenalty 51 +\@medpenalty 151 +\@highpenalty 301 +\clubpenalty 10000 +\widowpenalty 10000 +\displaywidowpenalty 100 +\predisplaypenalty 10000 +\postdisplaypenalty 2500 +\interlinepenalty 0 +\brokenpenalty 10000 +\lefthyphenmin=3 +\righthyphenmin=3 + +\if@modern + \if@large + \setlength\headheight{16\p@} + \setlength\topmargin{2.6pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{8\p@} + \setlength\footskip{16\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{171.5mm} + \setlength\textheight{60\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{5.25pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-5.25pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-1in} + \setlength\columnsep{1.5pc} + \setlength\columnseprule{0\p@} + \else + \if@medium + \setlength\headheight{16\p@} + \setlength\topmargin{2.44pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{6.2\p@} + \setlength\footskip{0\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{150.3mm} + \setlength\textheight{51\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.57pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-5.25pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-.89in} + \setlength\columnsep{14.5pt} + \setlength\columnseprule{0\p@} + \else + \if@small + \setlength\headheight{16\p@} + \setlength\topmargin{2.25pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{8.6\p@} + \setlength\footskip{16\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{117.5mm} + \setlength\textheight{45\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.57pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-5.25pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-.89in} + \setlength\columnsep{14.5pt} + \setlength\columnseprule{0\p@} + \else + \fi + \fi + \fi +\else +\if@traditional + \if@large + \setlength\headheight{16\p@} + \setlength\topmargin{2.92pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{12.9\p@} + \setlength\footskip{16\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{482pt} + \setlength\textheight{55\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.475pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-4.475pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-1in} + \setlength\columnsep{1pc} + \setlength\columnseprule{0\p@} + \else + \if@medium + \setlength\headheight{16\p@} + \setlength\topmargin{1.58pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{16.15\p@} + \setlength\footskip{16\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{434pt} + \setlength\textheight{59\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.45pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-4.45pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-1in} + \setlength\columnsep{18pt} + \setlength\columnseprule{0\p@} + \else + \setlength\headheight{16\p@} + \setlength\topmargin{1.58pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{17.7\p@} + \setlength\footskip{16\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{337pt} + \setlength\textheight{45\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.45pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-4.45pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-1in} + \setlength\columnsep{18pt} + \setlength\columnseprule{0\p@} + \fi + \fi +\else +\if@contemporary + \if@large + \setlength\headheight{16\p@} + \setlength\topmargin{2.24pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{13.8\p@} + \setlength\footskip{16\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{488.5pt} + \setlength\textheight{63\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.55pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-4.475pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-1in} + \setlength\columnsep{18pt} + \setlength\columnseprule{0\p@} + \else + \if@medium + \setlength\headheight{16\p@} + \setlength\topmargin{2.44pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{6.2\p@} + \setlength\footskip{0\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{150.3mm} + \setlength\textheight{56\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.57pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-5.25pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-.89in} + \setlength\columnsep{14.5pt} + \setlength\columnseprule{0\p@} + \else + \if@small + \setlength\headheight{16\p@} + \setlength\topmargin{2.25pc} + \addtolength\topmargin{-1in} + \setlength\topskip{10\p@} + \setlength\headsep{8.6\p@} + \setlength\footskip{16\p@} + \setlength\maxdepth{.5\topskip} + \setlength\textwidth{117.5mm} + \setlength\textheight{52\baselineskip} + \setlength\marginparsep{3\p@} + \setlength\marginparpush{3\p@} + \setlength\marginparwidth{35\p@} + \setlength\oddsidemargin{4.57pc} + \addtolength\oddsidemargin{-1in} + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-\textwidth} + \addtolength\@tempdima{-5.25pc} + \setlength\evensidemargin{\@tempdima} + \addtolength\evensidemargin{-.89in} + \setlength\columnsep{14.5pt} + \setlength\columnseprule{0\p@} + \else + \fi + \fi + \fi +\else +\fi +\fi +\fi + +\addtolength\textheight{\topskip} +\setlength\footnotesep{9\p@} +\setlength{\skip\footins}{12\p@ \@plus 6\p@ \@minus 1\p@} +\setcounter{totalnumber}{10} +\setcounter{topnumber}{5} +\setcounter{bottomnumber}{5} +\renewcommand\topfraction{.9} +\renewcommand\bottomfraction{.9} +\renewcommand\textfraction{.06} +\renewcommand\floatpagefraction{.94} +\renewcommand\dbltopfraction{.9} +\renewcommand\dblfloatpagefraction{.9} +\setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@} +\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@} +\setlength\intextsep {18\p@ \@plus 2\p@ \@minus 2\p@} +\setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@} +\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@} + +\setlength\@fptop{0\p@} +\setlength\@fpsep{12\p@ \@plus 1fil} +\setlength\@fpbot{0\p@} + +\setlength\@dblfptop{0\p@} +\setlength\@dblfpsep{12\p@ \@plus 1fil} +\setlength\@dblfpbot{0\p@} + +\DeclareMathSizes{5} {5} {5} {5} +\DeclareMathSizes{6} {6} {5} {5} +\DeclareMathSizes{7} {7} {5} {5} +\DeclareMathSizes{8} {8} {6} {5} +\DeclareMathSizes{9} {9} {6.5} {5} +\DeclareMathSizes{10} {10} {7.5} {5} +\DeclareMathSizes{12} {12} {9} {7} + +\def\ps@headings + {% + \let\@oddfoot\@empty% + \let\@evenfoot\@empty% + \if@traditional + \if@large + \def\@evenhead{\vbox{\hbox to \textwidth{\fontsize{9.5bp}{12}\selectfont + {\textbf{\thepage}}{\hspace*{9pt}{\textbullet}\hspace*{9pt}}{\itshape\strut\leftmark}\hfill}}}% + \def\@oddhead{\vbox{\hbox to \textwidth{\fontsize{9.5bp}{12}\selectfont + \hfill{{\itshape\strut\rightmark}}{\hspace*{9pt}{\textbullet}\hspace*{9pt}}{\textbf{\thepage}}}% + }}% + \else + \if@medium + \def\@evenhead{\vbox{\hbox to \textwidth{\fontsize{9.5bp}{12}\selectfont + {\fontsize{9bp}{12}\selectfont\textbf{\thepage}}{\hspace*{9pt}{\textbullet}\hspace*{9pt}}{\itshape\strut\leftmark}\hfill}}}% + \def\@oddhead{\vbox{\hbox to \textwidth{\fontsize{9.5bp}{12}\selectfont + \hfill{{\itshape\strut\rightmark}}{\hspace*{9pt}{\textbullet}\hspace*{9pt}}{\fontsize{9bp}{12}\selectfont\textbf{\thepage}}}% + }}% + \else + \def\@evenhead{\vbox{\hbox to \textwidth{\fontsize{9.5bp}{12}\selectfont + {\fontsize{9bp}{12}\selectfont\textbf{\thepage}}{\hspace*{9pt}{\textbullet}\hspace*{9pt}}{\itshape\strut\leftmark}\hfill}}}% + \def\@oddhead{\vbox{\hbox to \textwidth{\fontsize{9.5bp}{12}\selectfont + \hfill{{\itshape\strut\rightmark}}{\hspace*{9pt}{\textbullet}\hspace*{9pt}}{\fontsize{9bp}{12}\selectfont\textbf{\thepage}}}% + }}% + \fi + \fi + \else + \if@contemporary + \def\@evenhead{\vbox{\hbox to \textwidth{\fontsize{7.8bp}{10}\selectfont\color{jnlclr} + {\hspace*{1pc}{\selectfont\thepage}}\hspace*{8pt}\raisebox{-1.5pt}{\rule{.3pt}{8pt}}\hspace*{8pt}{\strut\leftmark}\hfill}\vspace{5\p@}{\color{black!15}\rule{\textwidth}{2\p@}}}}% + \def\@oddhead{\vbox{\hbox to \textwidth{\hfill\fontsize{7.8bp}{10}\selectfont\color{jnlclr} + {{\strut\rightmark}}\hspace*{8pt}\raisebox{-1.5pt}{\rule{.3pt}{8pt}}\hspace*{8pt}{{\thepage}}\hspace*{1pc}}% + \vspace{5\p@}{\color{black!15}\rule{\textwidth}{2\p@}}}}% + \else + \def\@evenhead{\vbox{\hbox to \textwidth{\fontsize{8bp}{10}\selectfont + {\sffamilyfontbold{\selectfont\thepage}}\hfill\sffamilyfontitalic{\fontshape{sl}\selectfont + \strut\leftmark}}\vspace{5\p@}\rule{\textwidth}{1\p@}}}% + \def\@oddhead{\vbox{\hbox to \textwidth{\fontsize{8bp}{10}\selectfont + {\sffamilyfontitalic{\fontshape{it}\selectfont\strut\rightmark}}\hfill{\sffamilyfontbold{\thepage}}}% + \vspace{5\p@}\rule{\textwidth}{1\p@}}}% + \fi\fi + \def\titlemark##1{\markboth{##1}{##1}}% + \def\authormark##1{\gdef\leftmark{##1}}% + } + +\def\ps@opening + {% + \if@modern + \if@small + \def\@oddfoot{{ + \hbox to \textwidth{\parbox{\textwidth}{\sffamilyfontcn + \fontsize{7}{9}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\small\sffamilyfontbold\thepage}}% + }}% + \def\@evenfoot{{ + \hbox to \textwidth{\parbox{\textwidth}{\sffamilyfontcn\thepage\hfill + \fontsize{7}{9}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com}% + }}}% + \else + \def\@oddfoot{{ + \hbox to \textwidth{\sffamilyfontcn + \fontsize{7}{9}\fontshape{n}\selectfont \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\small\sffamilyfontbold\thepage}% + }}% + \def\@evenfoot{{ + \hbox to \textwidth{\sffamilyfontcn\thepage\hfill + \fontsize{7}{9}\fontshape{n}\selectfont \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com}% + }}% + \fi + \else + \if@traditional + \if@large + \def\@oddfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{3pt}\newline\rule{444pt}{.5pt}\vspace*{2pt}\newline% + \fontsize{7}{8}\fontshape{n}\selectfont\raggedright\ensuremath{\copyright}\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{18pt}\newline\hspace*{1pt}\hfill{{\textbullet}\hspace*{9pt}}\textbf{\thepage}}}% + }}% + \def\@evenfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{3pt}\newline\rule{444pt}{.5pt}\vspace*{2pt}\newline% + \fontsize{7}{8}\fontshape{n}\selectfont\raggedright\ensuremath{\copyright}\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{18pt}\newline\hspace*{1pt}\hfill{{\textbullet}\hspace*{9pt}}\textbf{\thepage}}}% + }}% + \else + \if@medium + \def\@oddfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{3pt}\newline\rule{444pt}{.5pt}\vspace*{2pt}\newline% + \fontsize{7}{8}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{1pt}\newline\hspace*{1pt}\hfill{{\textbullet}\hspace*{9pt}}\textbf{\thepage}}}% + }}% + \def\@evenfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{3pt}\newline\rule{444pt}{.5pt}\vspace*{2pt}\newline% + \fontsize{7}{8}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{1pt}\newline\hspace*{1pt}\hfill{{\textbullet}\hspace*{9pt}}\textbf{\thepage}}}% + }}% + \else + \def\@oddfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{-36pt}\newline\rule{\textwidth}{.5pt}\vspace*{2pt}\newline% + \fontsize{7}{8}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{1pt}\newline\hspace*{1pt}\hfill{{\textbullet}\hspace*{9pt}}\textbf{\thepage}}}% + }}% + \def\@evenfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{-36pt}\newline\rule{\textwidth}{.5pt}\vspace*{2pt}\newline% + \fontsize{7}{8}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{1pt}\newline\hspace*{1pt}\hfill{{\textbullet}\hspace*{9pt}}\textbf{\thepage}}}% + }}% + \fi + \fi + \else + \def\@oddfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{-0pt}\newline\rule{\textwidth}{.5pt}\vspace*{2pt}\newline% + \fontsize{6.5}{8}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{1pt}\newline\hspace*{1pt}\hfill\color{jnlclr}\textbf{\thepage}}}% + }}% + \def\@evenfoot{{% + \hbox to \textwidth{\parbox{\textwidth}{\hspace*{1pt}\vspace*{-0pt}\newline\rule{\textwidth}{.5pt}\vspace*{2pt}\newline% + \fontsize{6.5}{8}\fontshape{n}\selectfont\raggedright \copyright\space The Author \@copyrightyear. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com% + \hfill\vspace*{1pt}\newline\hspace*{1pt}\hfill\color{jnlclr}\textbf{\thepage}}}% + }}% + \fi + \fi + \let\@evenhead\relax + \let\@oddhead\relax} + +% Page range +\newif\iflastpagegiven \lastpagegivenfalse +\newcommand\firstpage[1]{% + \gdef\@firstpage{#1}% + \ifnum\@firstpage>\c@page + \setcounter{page}{#1}% + \ClassWarning{BIO}{Increasing pagenumber to \@firstpage}% + \else \ifnum\@firstpage<\c@page + \ClassWarning{BIO}{Firstpage lower than pagenumber}\fi\fi + \xdef\@firstpage{\the\c@page}% + } +\def\@firstpage{1} +\def\pagenumbering#1{% + \global\c@page \@ne + \gdef\thepage{\csname @#1\endcsname \c@page}% + \gdef\thefirstpage{% + \csname @#1\endcsname \@firstpage}% + \gdef\thelastpage{% + \csname @#1\endcsname \@lastpage}% + } + +\newcommand\lastpage[1]{\xdef\@lastpage{#1}% + \global\lastpagegiventrue} +\def\@lastpage{0} +\def\setlastpage{\iflastpagegiven\else + \edef\@tempa{@lastpage@}% + \expandafter + \ifx \csname \@tempa \endcsname \relax + \gdef\@lastpage{0}% + \else + \xdef\@lastpage{\@nameuse{@lastpage@}}% + \fi + \fi } +\def\writelastpage{% + \iflastpagegiven \else + \immediate\write\@auxout% + {\string\global\string\@namedef{@lastpage@}{\the\c@page}}% + \fi + } +\def\thepagerange{% + \ifnum\@lastpage =0 {\ \bf ???} \else + \ifnum\@lastpage = \@firstpage \ \thefirstpage\else + \thefirstpage--\thelastpage \fi\fi} + +\AtBeginDocument{\setlastpage + \pagenumbering{arabic}% + } +\AtEndDocument{% + \writelastpage + \if@final + \clearemptydoublepage + \else + \clearpage + \fi} + +\newcounter{section} +\newcounter{subsection}[section] +\newcounter{subsubsection}[subsection] +\newcounter{paragraph}[subsubsection] +\newcounter{subparagraph}[paragraph] +\newcounter{figure} +\newcounter{table} + +\newenvironment{tablenotes}{\if@traditional\fontsize{7.5bp}{9}\selectfont\else\if@contemporary\fontsize{6bp}{9}\selectfont\else\fi\fi\list{}{\setlength{\labelsep}{0pt}% +\setlength{\labelwidth}{0pt}% +\setlength{\leftmargin}{0pt}% +\setlength{\rightmargin}{0pt}% +\setlength{\topsep}{-6pt}% +\if@traditional\setlength{\itemsep}{0pt}\else\setlength{\itemsep}{2pt}\fi% +\setlength{\partopsep}{0pt}% +\setlength{\listparindent}{0em}% +\setlength{\parsep}{0pt}}% +\item\relax% +}{\endlist\addvspace{0pt}}% + +\newcommand\thepage{\arabic{page}} +\renewcommand\thesection{\arabic{section}} +\renewcommand\thesubsection{{\thesection.\arabic{subsection}}} +\renewcommand\thesubsubsection{{\thesubsection.\arabic{subsubsection}}} +\renewcommand\theparagraph{\thesubsubsection.\arabic{paragraph}} +\renewcommand\thesubparagraph{\theparagraph.\arabic{subparagraph}} +\renewcommand\theequation{\arabic{equation}} + +\newcommand\contentsname{Contents} +\newcommand\listfigurename{List of Figures} +\newcommand\listtablename{List of Tables} +\newcommand\partname{Part} +\newcommand\appendixname{Appendix} +\newcommand\abstractname{Abstract} +\newcommand\keywordsname{Key words:} +\newcommand\refname{References} +\newcommand\bibname{References} +\newcommand\indexname{Index} +\newcommand\figurename{Fig.} +\newcommand\tablename{Table} + +\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}} + +\newif\if@mainmatter \@mainmattertrue + +\newcommand\frontmatter{% + \clearpage + \@mainmatterfalse + \pagenumbering{roman}} + +\newcommand\mainmatter{% + \clearpage + \@mainmattertrue + \pagenumbering{arabic}} + +\newcommand\backmatter{% + \clearpage + \@mainmatterfalse} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TITLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newlength{\dropfromtop} +\setlength{\dropfromtop}{\z@} + +\newif\if@appnotes +\newcommand{\application}{% + \global\@appnotestrue} + +\long\def\title{\@ifnextchar[{\short@title}{\@@title}} +\def\short@title[#1]{\titlemark{#1}\@@@title} +\def\@@title#1{\authormark{#1}\@@@title{#1}} +\long\def\@@@title#1{\gdef\@title{#1}} +\def\@subtitle{} +\long\def\subtitle#1{\gdef\@subtitle{#1}} +%\subtitle{Genome analysis} + +\newcounter{myauthcount} +\setcounter{myauthcount}{0} +\regtotcounter{myauthcount} + +\def\authorandsep{\ifnum\arabic{myauthcount@totc}=\arabic{myauthcount}\ifnum\arabic{myauthcount@totc}=1\else\if@traditional\if@small\ \else \fi\else \fi and \fi\else\fi} +\def\authorcommasep{\ifnum\arabic{myauthcount@totc}=\arabic{myauthcount}\else\ifnum\arabic{myauthcount@totc}=200\ifnum\arabic{myauthcount}<199,\else\fi\else\ifnum\arabic{myauthcount@totc}=199\ifnum\arabic{myauthcount}<198,\else\fi\else\ifnum\arabic{myauthcount@totc}=198\ifnum\arabic{myauthcount}<197,\else\fi\else\ifnum\arabic{myauthcount@totc}=197\ifnum\arabic{myauthcount}<196,\else\fi\else\ifnum\arabic{myauthcount@totc}=196\ifnum\arabic{myauthcount}<195,\else\fi\else\ifnum\arabic{myauthcount@totc}=195\ifnum\arabic{myauthcount}<194,\else\fi\else\ifnum\arabic{myauthcount@totc}=194\ifnum\arabic{myauthcount}<193,\else\fi\else\ifnum\arabic{myauthcount@totc}=193\ifnum\arabic{myauthcount}<192,\else\fi\else\ifnum\arabic{myauthcount@totc}=192\ifnum\arabic{myauthcount}<191,\else\fi\else\ifnum\arabic{myauthcount@totc}=191\ifnum\arabic{myauthcount}<190,\else\fi\else\ifnum\arabic{myauthcount@totc}=190\ifnum\arabic{myauthcount}<189,\else\fi\else\ifnum\arabic{myauthcount@totc}=189\ifnum\arabic{myauthcount}<188,\else\fi\else\ifnum\arabic{myauthcount@totc}=188\ifnum\arabic{myauthcount}<187,\else\fi\else\ifnum\arabic{myauthcount@totc}=187\ifnum\arabic{myauthcount}<186,\else\fi\else\ifnum\arabic{myauthcount@totc}=186\ifnum\arabic{myauthcount}<185,\else\fi\else\ifnum\arabic{myauthcount@totc}=185\ifnum\arabic{myauthcount}<184,\else\fi\else\ifnum\arabic{myauthcount@totc}=184\ifnum\arabic{myauthcount}<183,\else\fi\else\ifnum\arabic{myauthcount@totc}=183\ifnum\arabic{myauthcount}<182,\else\fi\else\ifnum\arabic{myauthcount@totc}=182\ifnum\arabic{myauthcount}<181,\else\fi\else\ifnum\arabic{myauthcount@totc}=181\ifnum\arabic{myauthcount}<180,\else\fi\else\ifnum\arabic{myauthcount@totc}=180\ifnum\arabic{myauthcount}<179,\else\fi\else\ifnum\arabic{myauthcount@totc}=179\ifnum\arabic{myauthcount}<178,\else\fi\else\ifnum\arabic{myauthcount@totc}=178\ifnum\arabic{myauthcount}<177,\else\fi\else\ifnum\arabic{myauthcount@totc}=177\ifnum\arabic{myauthcount}<176,\else\fi\else\ifnum\arabic{myauthcount@totc}=176\ifnum\arabic{myauthcount}<175,\else\fi\else\ifnum\arabic{myauthcount@totc}=175\ifnum\arabic{myauthcount}<174,\else\fi\else\ifnum\arabic{myauthcount@totc}=174\ifnum\arabic{myauthcount}<173,\else\fi\else\ifnum\arabic{myauthcount@totc}=173\ifnum\arabic{myauthcount}<172,\else\fi\else\ifnum\arabic{myauthcount@totc}=172\ifnum\arabic{myauthcount}<171,\else\fi\else\ifnum\arabic{myauthcount@totc}=171\ifnum\arabic{myauthcount}<170,\else\fi\else\ifnum\arabic{myauthcount@totc}=170\ifnum\arabic{myauthcount}<169,\else\fi\else\ifnum\arabic{myauthcount@totc}=169\ifnum\arabic{myauthcount}<168,\else\fi\else\ifnum\arabic{myauthcount@totc}=168\ifnum\arabic{myauthcount}<167,\else\fi\else\ifnum\arabic{myauthcount@totc}=167\ifnum\arabic{myauthcount}<166,\else\fi\else\ifnum\arabic{myauthcount@totc}=166\ifnum\arabic{myauthcount}<165,\else\fi\else\ifnum\arabic{myauthcount@totc}=165\ifnum\arabic{myauthcount}<164,\else\fi\else\ifnum\arabic{myauthcount@totc}=164\ifnum\arabic{myauthcount}<163,\else\fi\else\ifnum\arabic{myauthcount@totc}=163\ifnum\arabic{myauthcount}<162,\else\fi\else\ifnum\arabic{myauthcount@totc}=162\ifnum\arabic{myauthcount}<161,\else\fi\else\ifnum\arabic{myauthcount@totc}=161\ifnum\arabic{myauthcount}<160,\else\fi\else\ifnum\arabic{myauthcount@totc}=160\ifnum\arabic{myauthcount}<159,\else\fi\else\ifnum\arabic{myauthcount@totc}=159\ifnum\arabic{myauthcount}<158,\else\fi\else\ifnum\arabic{myauthcount@totc}=158\ifnum\arabic{myauthcount}<157,\else\fi\else\ifnum\arabic{myauthcount@totc}=157\ifnum\arabic{myauthcount}<156,\else\fi\else\ifnum\arabic{myauthcount@totc}=156\ifnum\arabic{myauthcount}<155,\else\fi\else\ifnum\arabic{myauthcount@totc}=155\ifnum\arabic{myauthcount}<154,\else\fi\else\ifnum\arabic{myauthcount@totc}=154\ifnum\arabic{myauthcount}<153,\else\fi\else\ifnum\arabic{myauthcount@totc}=153\ifnum\arabic{myauthcount}<152,\else\fi\else\ifnum\arabic{myauthcount@totc}=152\ifnum\arabic{myauthcount}<151,\else\fi\else\ifnum\arabic{myauthcount@totc}=151\ifnum\arabic{myauthcount}<150,\else\fi\else\ifnum\arabic{myauthcount@totc}=150\ifnum\arabic{myauthcount}<149,\else\fi\else\ifnum\arabic{myauthcount@totc}=149\ifnum\arabic{myauthcount}<148,\else\fi\else\ifnum\arabic{myauthcount@totc}=148\ifnum\arabic{myauthcount}<147,\else\fi\else\ifnum\arabic{myauthcount@totc}=147\ifnum\arabic{myauthcount}<146,\else\fi\else\ifnum\arabic{myauthcount@totc}=146\ifnum\arabic{myauthcount}<145,\else\fi\else\ifnum\arabic{myauthcount@totc}=145\ifnum\arabic{myauthcount}<144,\else\fi\else\ifnum\arabic{myauthcount@totc}=144\ifnum\arabic{myauthcount}<143,\else\fi\else\ifnum\arabic{myauthcount@totc}=143\ifnum\arabic{myauthcount}<142,\else\fi\else\ifnum\arabic{myauthcount@totc}=142\ifnum\arabic{myauthcount}<141,\else\fi\else\ifnum\arabic{myauthcount@totc}=141\ifnum\arabic{myauthcount}<140,\else\fi\else\ifnum\arabic{myauthcount@totc}=140\ifnum\arabic{myauthcount}<139,\else\fi\else\ifnum\arabic{myauthcount@totc}=139\ifnum\arabic{myauthcount}<138,\else\fi\else\ifnum\arabic{myauthcount@totc}=138\ifnum\arabic{myauthcount}<137,\else\fi\else\ifnum\arabic{myauthcount@totc}=137\ifnum\arabic{myauthcount}<136,\else\fi\else\ifnum\arabic{myauthcount@totc}=136\ifnum\arabic{myauthcount}<135,\else\fi\else\ifnum\arabic{myauthcount@totc}=135\ifnum\arabic{myauthcount}<134,\else\fi\else\ifnum\arabic{myauthcount@totc}=134\ifnum\arabic{myauthcount}<133,\else\fi\else\ifnum\arabic{myauthcount@totc}=133\ifnum\arabic{myauthcount}<132,\else\fi\else\ifnum\arabic{myauthcount@totc}=132\ifnum\arabic{myauthcount}<131,\else\fi\else\ifnum\arabic{myauthcount@totc}=131\ifnum\arabic{myauthcount}<130,\else\fi\else\ifnum\arabic{myauthcount@totc}=130\ifnum\arabic{myauthcount}<129,\else\fi\else\ifnum\arabic{myauthcount@totc}=129\ifnum\arabic{myauthcount}<128,\else\fi\else\ifnum\arabic{myauthcount@totc}=128\ifnum\arabic{myauthcount}<127,\else\fi\else\ifnum\arabic{myauthcount@totc}=127\ifnum\arabic{myauthcount}<126,\else\fi\else\ifnum\arabic{myauthcount@totc}=126\ifnum\arabic{myauthcount}<125,\else\fi\else\ifnum\arabic{myauthcount@totc}=125\ifnum\arabic{myauthcount}<124,\else\fi\else\ifnum\arabic{myauthcount@totc}=124\ifnum\arabic{myauthcount}<123,\else\fi\else\ifnum\arabic{myauthcount@totc}=123\ifnum\arabic{myauthcount}<122,\else\fi\else\ifnum\arabic{myauthcount@totc}=122\ifnum\arabic{myauthcount}<121,\else\fi\else\ifnum\arabic{myauthcount@totc}=121\ifnum\arabic{myauthcount}<120,\else\fi\else\ifnum\arabic{myauthcount@totc}=120\ifnum\arabic{myauthcount}<119,\else\fi\else\ifnum\arabic{myauthcount@totc}=119\ifnum\arabic{myauthcount}<118,\else\fi\else\ifnum\arabic{myauthcount@totc}=118\ifnum\arabic{myauthcount}<117,\else\fi\else\ifnum\arabic{myauthcount@totc}=117\ifnum\arabic{myauthcount}<116,\else\fi\else\ifnum\arabic{myauthcount@totc}=116\ifnum\arabic{myauthcount}<115,\else\fi\else\ifnum\arabic{myauthcount@totc}=115\ifnum\arabic{myauthcount}<114,\else\fi\else\ifnum\arabic{myauthcount@totc}=114\ifnum\arabic{myauthcount}<113,\else\fi\else\ifnum\arabic{myauthcount@totc}=113\ifnum\arabic{myauthcount}<112,\else\fi\else\ifnum\arabic{myauthcount@totc}=112\ifnum\arabic{myauthcount}<111,\else\fi\else\ifnum\arabic{myauthcount@totc}=111\ifnum\arabic{myauthcount}<110,\else\fi\else\ifnum\arabic{myauthcount@totc}=110\ifnum\arabic{myauthcount}<109,\else\fi\else\ifnum\arabic{myauthcount@totc}=109\ifnum\arabic{myauthcount}<108,\else\fi\else\ifnum\arabic{myauthcount@totc}=108\ifnum\arabic{myauthcount}<107,\else\fi\else\ifnum\arabic{myauthcount@totc}=107\ifnum\arabic{myauthcount}<106,\else\fi\else\ifnum\arabic{myauthcount@totc}=106\ifnum\arabic{myauthcount}<105,\else\fi\else\ifnum\arabic{myauthcount@totc}=105\ifnum\arabic{myauthcount}<104,\else\fi\else\ifnum\arabic{myauthcount@totc}=104\ifnum\arabic{myauthcount}<103,\else\fi\else\ifnum\arabic{myauthcount@totc}=103\ifnum\arabic{myauthcount}<102,\else\fi\else\ifnum\arabic{myauthcount@totc}=102\ifnum\arabic{myauthcount}<101,\else\fi\else\ifnum\arabic{myauthcount@totc}=101\ifnum\arabic{myauthcount}<100,\else\fi\else\ifnum\arabic{myauthcount@totc}=100\ifnum\arabic{myauthcount}<99,\else\fi\else\ifnum\arabic{myauthcount@totc}=99\ifnum\arabic{myauthcount}<98,\else\fi\else\ifnum\arabic{myauthcount@totc}=98\ifnum\arabic{myauthcount}<97,\else\fi\else\ifnum\arabic{myauthcount@totc}=97\ifnum\arabic{myauthcount}<96,\else\fi\else\ifnum\arabic{myauthcount@totc}=96\ifnum\arabic{myauthcount}<95,\else\fi\else\ifnum\arabic{myauthcount@totc}=95\ifnum\arabic{myauthcount}<94,\else\fi\else\ifnum\arabic{myauthcount@totc}=94\ifnum\arabic{myauthcount}<93,\else\fi\else\ifnum\arabic{myauthcount@totc}=93\ifnum\arabic{myauthcount}<92,\else\fi\else\ifnum\arabic{myauthcount@totc}=92\ifnum\arabic{myauthcount}<91,\else\fi\else\ifnum\arabic{myauthcount@totc}=91\ifnum\arabic{myauthcount}<90,\else\fi\else\ifnum\arabic{myauthcount@totc}=90\ifnum\arabic{myauthcount}<89,\else\fi\else\ifnum\arabic{myauthcount@totc}=89\ifnum\arabic{myauthcount}<88,\else\fi\else\ifnum\arabic{myauthcount@totc}=88\ifnum\arabic{myauthcount}<87,\else\fi\else\ifnum\arabic{myauthcount@totc}=87\ifnum\arabic{myauthcount}<86,\else\fi\else\ifnum\arabic{myauthcount@totc}=86\ifnum\arabic{myauthcount}<85,\else\fi\else\ifnum\arabic{myauthcount@totc}=85\ifnum\arabic{myauthcount}<84,\else\fi\else\ifnum\arabic{myauthcount@totc}=84\ifnum\arabic{myauthcount}<83,\else\fi\else\ifnum\arabic{myauthcount@totc}=83\ifnum\arabic{myauthcount}<82,\else\fi\else\ifnum\arabic{myauthcount@totc}=82\ifnum\arabic{myauthcount}<81,\else\fi\else\ifnum\arabic{myauthcount@totc}=81\ifnum\arabic{myauthcount}<80,\else\fi\else\ifnum\arabic{myauthcount@totc}=80\ifnum\arabic{myauthcount}<79,\else\fi\else\ifnum\arabic{myauthcount@totc}=79\ifnum\arabic{myauthcount}<78,\else\fi\else\ifnum\arabic{myauthcount@totc}=78\ifnum\arabic{myauthcount}<77,\else\fi\else\ifnum\arabic{myauthcount@totc}=77\ifnum\arabic{myauthcount}<76,\else\fi\else\ifnum\arabic{myauthcount@totc}=76\ifnum\arabic{myauthcount}<75,\else\fi\else\ifnum\arabic{myauthcount@totc}=75\ifnum\arabic{myauthcount}<74,\else\fi\else\ifnum\arabic{myauthcount@totc}=74\ifnum\arabic{myauthcount}<73,\else\fi\else\ifnum\arabic{myauthcount@totc}=73\ifnum\arabic{myauthcount}<72,\else\fi\else\ifnum\arabic{myauthcount@totc}=72\ifnum\arabic{myauthcount}<71,\else\fi\else\ifnum\arabic{myauthcount@totc}=71\ifnum\arabic{myauthcount}<70,\else\fi\else\ifnum\arabic{myauthcount@totc}=70\ifnum\arabic{myauthcount}<69,\else\fi\else\ifnum\arabic{myauthcount@totc}=69\ifnum\arabic{myauthcount}<68,\else\fi\else\ifnum\arabic{myauthcount@totc}=68\ifnum\arabic{myauthcount}<67,\else\fi\else\ifnum\arabic{myauthcount@totc}=67\ifnum\arabic{myauthcount}<66,\else\fi\else\ifnum\arabic{myauthcount@totc}=66\ifnum\arabic{myauthcount}<65,\else\fi\else\ifnum\arabic{myauthcount@totc}=65\ifnum\arabic{myauthcount}<64,\else\fi\else\ifnum\arabic{myauthcount@totc}=64\ifnum\arabic{myauthcount}<63,\else\fi\else\ifnum\arabic{myauthcount@totc}=63\ifnum\arabic{myauthcount}<62,\else\fi\else\ifnum\arabic{myauthcount@totc}=62\ifnum\arabic{myauthcount}<61,\else\fi\else\ifnum\arabic{myauthcount@totc}=61\ifnum\arabic{myauthcount}<60,\else\fi\else\ifnum\arabic{myauthcount@totc}=60\ifnum\arabic{myauthcount}<59,\else\fi\else\ifnum\arabic{myauthcount@totc}=59\ifnum\arabic{myauthcount}<58,\else\fi\else\ifnum\arabic{myauthcount@totc}=58\ifnum\arabic{myauthcount}<57,\else\fi\else\ifnum\arabic{myauthcount@totc}=57\ifnum\arabic{myauthcount}<56,\else\fi\else\ifnum\arabic{myauthcount@totc}=56\ifnum\arabic{myauthcount}<55,\else\fi\else\ifnum\arabic{myauthcount@totc}=55\ifnum\arabic{myauthcount}<54,\else\fi\else\ifnum\arabic{myauthcount@totc}=54\ifnum\arabic{myauthcount}<53,\else\fi\else\ifnum\arabic{myauthcount@totc}=53\ifnum\arabic{myauthcount}<52,\else\fi\else\ifnum\arabic{myauthcount@totc}=52\ifnum\arabic{myauthcount}<51,\else\fi\else\ifnum\arabic{myauthcount@totc}=51\ifnum\arabic{myauthcount}<50,\else\fi\else\ifnum\arabic{myauthcount@totc}=50\ifnum\arabic{myauthcount}<49,\else\fi\else\ifnum\arabic{myauthcount@totc}=49\ifnum\arabic{myauthcount}<48,\else\fi\else\ifnum\arabic{myauthcount@totc}=48\ifnum\arabic{myauthcount}<47,\else\fi\else\ifnum\arabic{myauthcount@totc}=47\ifnum\arabic{myauthcount}<46,\else\fi\else\ifnum\arabic{myauthcount@totc}=46\ifnum\arabic{myauthcount}<45,\else\fi\else\ifnum\arabic{myauthcount@totc}=45\ifnum\arabic{myauthcount}<44,\else\fi\else\ifnum\arabic{myauthcount@totc}=44\ifnum\arabic{myauthcount}<43,\else\fi\else\ifnum\arabic{myauthcount@totc}=43\ifnum\arabic{myauthcount}<42,\else\fi\else\ifnum\arabic{myauthcount@totc}=42\ifnum\arabic{myauthcount}<41,\else\fi\else\ifnum\arabic{myauthcount@totc}=41\ifnum\arabic{myauthcount}<40,\else\fi\else\ifnum\arabic{myauthcount@totc}=40\ifnum\arabic{myauthcount}<39,\else\fi\else\ifnum\arabic{myauthcount@totc}=39\ifnum\arabic{myauthcount}<38,\else\fi\else\ifnum\arabic{myauthcount@totc}=38\ifnum\arabic{myauthcount}<37,\else\fi\else\ifnum\arabic{myauthcount@totc}=37\ifnum\arabic{myauthcount}<36,\else\fi\else\ifnum\arabic{myauthcount@totc}=36\ifnum\arabic{myauthcount}<35,\else\fi\else\ifnum\arabic{myauthcount@totc}=35\ifnum\arabic{myauthcount}<34,\else\fi\else\ifnum\arabic{myauthcount@totc}=34\ifnum\arabic{myauthcount}<33,\else\fi\else\ifnum\arabic{myauthcount@totc}=33\ifnum\arabic{myauthcount}<32,\else\fi\else\ifnum\arabic{myauthcount@totc}=32\ifnum\arabic{myauthcount}<31,\else\fi\else\ifnum\arabic{myauthcount@totc}=31\ifnum\arabic{myauthcount}<30,\else\fi\else\ifnum\arabic{myauthcount@totc}=30\ifnum\arabic{myauthcount}<29,\else\fi\else\ifnum\arabic{myauthcount@totc}=29\ifnum\arabic{myauthcount}<28,\else\fi\else\ifnum\arabic{myauthcount@totc}=28\ifnum\arabic{myauthcount}<27,\else\fi\else\ifnum\arabic{myauthcount@totc}=27\ifnum\arabic{myauthcount}<26,\else\fi\else\ifnum\arabic{myauthcount@totc}=26\ifnum\arabic{myauthcount}<25,\else\fi\else\ifnum\arabic{myauthcount@totc}=25\ifnum\arabic{myauthcount}<24,\else\fi\else\ifnum\arabic{myauthcount@totc}=24\ifnum\arabic{myauthcount}<23,\else\fi\else\ifnum\arabic{myauthcount@totc}=23\ifnum\arabic{myauthcount}<22,\else\fi\else\ifnum\arabic{myauthcount@totc}=22\ifnum\arabic{myauthcount}<21,\else\fi\else\ifnum\arabic{myauthcount@totc}=21\ifnum\arabic{myauthcount}<20,\else\fi\else\ifnum\arabic{myauthcount@totc}=20\ifnum\arabic{myauthcount}<19,\else\fi\else\ifnum\arabic{myauthcount@totc}=19\ifnum\arabic{myauthcount}<18,\else\fi\else\ifnum\arabic{myauthcount@totc}=18\ifnum\arabic{myauthcount}<17,\else\fi\else\ifnum\arabic{myauthcount@totc}=17\ifnum\arabic{myauthcount}<16,\else\fi\else\ifnum\arabic{myauthcount@totc}=16\ifnum\arabic{myauthcount}<15,\else\fi\else\ifnum\arabic{myauthcount@totc}=15\ifnum\arabic{myauthcount}<14,\else\fi\else\ifnum\arabic{myauthcount@totc}=14\ifnum\arabic{myauthcount}<13,\else\fi\else\ifnum\arabic{myauthcount@totc}=13\ifnum\arabic{myauthcount}<12,\else\fi\else\ifnum\arabic{myauthcount@totc}=12\ifnum\arabic{myauthcount}<11,\else\fi\else\ifnum\arabic{myauthcount@totc}=11\ifnum\arabic{myauthcount}<10,\else\fi\else\ifnum\arabic{myauthcount@totc}=10\ifnum\arabic{myauthcount}<9,\else\fi\else\ifnum\arabic{myauthcount@totc}=9\ifnum\arabic{myauthcount}<8,\else\fi\else\ifnum\arabic{myauthcount@totc}=8\ifnum\arabic{myauthcount}<7,\else\fi\else\ifnum\arabic{myauthcount@totc}=7\ifnum\arabic{myauthcount}<6,\else\fi\else\ifnum\arabic{myauthcount@totc}=6\ifnum\arabic{myauthcount}<5,\else\fi\else\ifnum\arabic{myauthcount@totc}=5\ifnum\arabic{myauthcount}<4,\else\fi\else\ifnum\arabic{myauthcount@totc}=4\ifnum\arabic{myauthcount}<3,\else\fi\else\ifnum\arabic{myauthcount@totc}=3\ifnum\arabic{myauthcount}<2,\else\fi\else\ifnum\arabic{myauthcount@totc}=2\else,\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} + +\def\author{\@@author}% +\newcommand{\@@author}[2][]{% + \g@addto@macro\@author{% + \refstepcounter{myauthcount}% + \hspace*{0.001pt}\hbox{\authorandsep#2\authorcommasep\ifx#1\@empty\else\textsuperscript{#1}\fi}\space} + }% + +\def\@vol{} +\def\vol#1{\global\def\@vol{#1}} +\def\@issue{} +\def\issue#1{\global\def\@issue{#1}} + +\newcommand\defcase[1]{\@namedef{mycase@\the\numexpr#1\relax}} +\newcommand\myswitch[1]{\@nameuse{mycase@\the\numexpr#1\relax}} + +\defcase{0}{Month} +\defcase{1}{January} +\defcase{2}{February} +\defcase{3}{March} +\defcase{4}{April} +\defcase{5}{May} +\defcase{6}{June} +\defcase{7}{July} +\defcase{8}{August} +\defcase{9}{September} +\defcase{10}{October} +\defcase{11}{November} +\defcase{12}{December} + +\def\@history{} +\def\history#1{\global\def\@history{#1}} +\history{} + +\newcounter{myhistorycount} +\setcounter{myhistorycount}{0} +\regtotcounter{myhistorycount} + +\def\historycommasep{\ifnum\arabic{myhistorycount@totc}=\arabic{myhistorycount}\else;\ \fi} + +\def\received#1#2#3{\g@addto@macro\@history{\refstepcounter{myhistorycount}\if@modern FOR PUBLISHER ONLY Received on \else\if@traditional FOR PUBLISHER ONLY Submitted \else FOR PUBLISHER ONLY Received on \fi\fi#1\ \myswitch{#2}\ #3\historycommasep}} +\def\revised#1#2#3{\g@addto@macro\@history{\refstepcounter{myhistorycount}\if@modern revised on \else\if@traditional Revised \else revised on \fi\fi #1\ \myswitch{#2}\ #3\historycommasep}} +\def\accepted#1#2#3{\g@addto@macro\@history{\refstepcounter{myhistorycount}\if@modern accepted on \else\if@traditional revised version accepted \else accepted on \fi\fi#1\ \myswitch{#2}\ #3\historycommasep}} + +\def\abstract#1{\global\def\@abstract{#1}} + +\def\keywords#1{\g@addto@macro\@abstract{% +\if@modern% + \if@medium\vspace*{6pt}\else% + \vspace*{12pt}\fi% +\else% +\if@traditional + \if@large + \vspace*{12pt} + \else + \if@medium + \vspace*{12pt} + \else + \fi + \fi +\else + \vspace*{8pt} +\fi +\fi\par% +\if@modern +{\sffamilyfontcnbold\fontsize{8bp}{11}\keywordsname\ \sffamilyfontcn#1}% +\else% +\if@traditional +{\fontsize{8bp}{10}\textbf{\uppercase{Keywords}:}\ #1}% +\else +{\fontsize{8bp}{10}\textbf{{Key words}:}\ #1}% +\fi\fi +}}% + +\def\@editor{} +\def\editor#1{\global\def\@editor{#1}} +\def\pubyear#1{\global\def\@pubyear{#1}} +\def\copyrightyear#1{\global\def\@copyrightyear{#1}} +\def\journaltitle#1{\global\def\@journaltitle{#1}} + +\def\@boxedtext{} +\def\boxedtext{\@@boxedtext}% +\newcommand{\@@boxedtext}[1]{\def\@boxedtext{\ifx#1\@empty\else\fbox{\parbox{.97\textwidth}{\textbf{Key Messages}\par#1\vspace{-8pt}}}\fi}} + +\def\orgdiv#1{#1} +\def\orgname#1{#1} +\def\orgaddress#1{#1} +\def\street#1{#1} +\def\postcode#1{#1} +\def\state#1{#1} +\def\country#1{#1} + +\newcounter{myaddcount} +\setcounter{myaddcount}{0} +\regtotcounter{myaddcount} + +\def\addressandsep{\ifnum\arabic{myaddcount@totc}=\arabic{myaddcount}\ifnum\arabic{myaddcount@totc}=1\else\ and \fi\else\fi} +\def\addresscommasep{\ifnum\arabic{myaddcount@totc}=\arabic{myaddcount}\else\ifnum\arabic{myaddcount@totc}=200\ifnum\arabic{myaddcount}<199, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=199\ifnum\arabic{myaddcount}<198, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=198\ifnum\arabic{myaddcount}<197, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=197\ifnum\arabic{myaddcount}<196, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=196\ifnum\arabic{myaddcount}<195, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=195\ifnum\arabic{myaddcount}<194, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=194\ifnum\arabic{myaddcount}<193, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=193\ifnum\arabic{myaddcount}<192, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=192\ifnum\arabic{myaddcount}<191, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=191\ifnum\arabic{myaddcount}<190, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=190\ifnum\arabic{myaddcount}<189, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=189\ifnum\arabic{myaddcount}<188, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=188\ifnum\arabic{myaddcount}<187, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=187\ifnum\arabic{myaddcount}<186, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=186\ifnum\arabic{myaddcount}<185, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=185\ifnum\arabic{myaddcount}<184, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=184\ifnum\arabic{myaddcount}<183, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=183\ifnum\arabic{myaddcount}<182, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=182\ifnum\arabic{myaddcount}<181, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=181\ifnum\arabic{myaddcount}<180, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=180\ifnum\arabic{myaddcount}<179, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=179\ifnum\arabic{myaddcount}<178, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=178\ifnum\arabic{myaddcount}<177, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=177\ifnum\arabic{myaddcount}<176, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=176\ifnum\arabic{myaddcount}<175, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=175\ifnum\arabic{myaddcount}<174, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=174\ifnum\arabic{myaddcount}<173, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=173\ifnum\arabic{myaddcount}<172, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=172\ifnum\arabic{myaddcount}<171, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=171\ifnum\arabic{myaddcount}<170, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=170\ifnum\arabic{myaddcount}<169, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=169\ifnum\arabic{myaddcount}<168, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=168\ifnum\arabic{myaddcount}<167, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=167\ifnum\arabic{myaddcount}<166, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=166\ifnum\arabic{myaddcount}<165, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=165\ifnum\arabic{myaddcount}<164, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=164\ifnum\arabic{myaddcount}<163, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=163\ifnum\arabic{myaddcount}<162, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=162\ifnum\arabic{myaddcount}<161, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=161\ifnum\arabic{myaddcount}<160, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=160\ifnum\arabic{myaddcount}<159, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=159\ifnum\arabic{myaddcount}<158, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=158\ifnum\arabic{myaddcount}<157, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=157\ifnum\arabic{myaddcount}<156, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=156\ifnum\arabic{myaddcount}<155, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=155\ifnum\arabic{myaddcount}<154, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=154\ifnum\arabic{myaddcount}<153, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=153\ifnum\arabic{myaddcount}<152, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=152\ifnum\arabic{myaddcount}<151, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=151\ifnum\arabic{myaddcount}<150, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=150\ifnum\arabic{myaddcount}<149, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=149\ifnum\arabic{myaddcount}<148, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=148\ifnum\arabic{myaddcount}<147, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=147\ifnum\arabic{myaddcount}<146, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=146\ifnum\arabic{myaddcount}<145, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=145\ifnum\arabic{myaddcount}<144, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=144\ifnum\arabic{myaddcount}<143, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=143\ifnum\arabic{myaddcount}<142, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=142\ifnum\arabic{myaddcount}<141, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=141\ifnum\arabic{myaddcount}<140, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=140\ifnum\arabic{myaddcount}<139, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=139\ifnum\arabic{myaddcount}<138, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=138\ifnum\arabic{myaddcount}<137, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=137\ifnum\arabic{myaddcount}<136, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=136\ifnum\arabic{myaddcount}<135, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=135\ifnum\arabic{myaddcount}<134, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=134\ifnum\arabic{myaddcount}<133, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=133\ifnum\arabic{myaddcount}<132, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=132\ifnum\arabic{myaddcount}<131, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=131\ifnum\arabic{myaddcount}<130, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=130\ifnum\arabic{myaddcount}<129, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=129\ifnum\arabic{myaddcount}<128, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=128\ifnum\arabic{myaddcount}<127, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=127\ifnum\arabic{myaddcount}<126, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=126\ifnum\arabic{myaddcount}<125, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=125\ifnum\arabic{myaddcount}<124, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=124\ifnum\arabic{myaddcount}<123, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=123\ifnum\arabic{myaddcount}<122, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=122\ifnum\arabic{myaddcount}<121, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=121\ifnum\arabic{myaddcount}<120, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=120\ifnum\arabic{myaddcount}<119, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=119\ifnum\arabic{myaddcount}<118, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=118\ifnum\arabic{myaddcount}<117, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=117\ifnum\arabic{myaddcount}<116, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=116\ifnum\arabic{myaddcount}<115, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=115\ifnum\arabic{myaddcount}<114, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=114\ifnum\arabic{myaddcount}<113, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=113\ifnum\arabic{myaddcount}<112, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=112\ifnum\arabic{myaddcount}<111, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=111\ifnum\arabic{myaddcount}<110, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=110\ifnum\arabic{myaddcount}<109, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=109\ifnum\arabic{myaddcount}<108, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=108\ifnum\arabic{myaddcount}<107, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=107\ifnum\arabic{myaddcount}<106, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=106\ifnum\arabic{myaddcount}<105, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=105\ifnum\arabic{myaddcount}<104, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=104\ifnum\arabic{myaddcount}<103, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=103\ifnum\arabic{myaddcount}<102, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=102\ifnum\arabic{myaddcount}<101, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=101\ifnum\arabic{myaddcount}<100, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=100\ifnum\arabic{myaddcount}<99, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=99\ifnum\arabic{myaddcount}<98, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=98\ifnum\arabic{myaddcount}<97, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=97\ifnum\arabic{myaddcount}<96, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=96\ifnum\arabic{myaddcount}<95, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=95\ifnum\arabic{myaddcount}<94, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=94\ifnum\arabic{myaddcount}<93, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=93\ifnum\arabic{myaddcount}<92, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=92\ifnum\arabic{myaddcount}<91, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=91\ifnum\arabic{myaddcount}<90, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=90\ifnum\arabic{myaddcount}<89, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=89\ifnum\arabic{myaddcount}<88, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=88\ifnum\arabic{myaddcount}<87, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=87\ifnum\arabic{myaddcount}<86, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=86\ifnum\arabic{myaddcount}<85, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=85\ifnum\arabic{myaddcount}<84, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=84\ifnum\arabic{myaddcount}<83, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=83\ifnum\arabic{myaddcount}<82, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=82\ifnum\arabic{myaddcount}<81, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=81\ifnum\arabic{myaddcount}<80, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=80\ifnum\arabic{myaddcount}<79, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=79\ifnum\arabic{myaddcount}<78, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=78\ifnum\arabic{myaddcount}<77, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=77\ifnum\arabic{myaddcount}<76, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=76\ifnum\arabic{myaddcount}<75, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=75\ifnum\arabic{myaddcount}<74, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=74\ifnum\arabic{myaddcount}<73, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=73\ifnum\arabic{myaddcount}<72, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=72\ifnum\arabic{myaddcount}<71, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=71\ifnum\arabic{myaddcount}<70, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=70\ifnum\arabic{myaddcount}<69, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=69\ifnum\arabic{myaddcount}<68, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=68\ifnum\arabic{myaddcount}<67, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=67\ifnum\arabic{myaddcount}<66, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=66\ifnum\arabic{myaddcount}<65, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=65\ifnum\arabic{myaddcount}<64, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=64\ifnum\arabic{myaddcount}<63, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=63\ifnum\arabic{myaddcount}<62, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=62\ifnum\arabic{myaddcount}<61, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=61\ifnum\arabic{myaddcount}<60, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=60\ifnum\arabic{myaddcount}<59, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=59\ifnum\arabic{myaddcount}<58, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=58\ifnum\arabic{myaddcount}<57, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=57\ifnum\arabic{myaddcount}<56, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=56\ifnum\arabic{myaddcount}<55, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=55\ifnum\arabic{myaddcount}<54, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=54\ifnum\arabic{myaddcount}<53, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=53\ifnum\arabic{myaddcount}<52, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=52\ifnum\arabic{myaddcount}<51, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=51\ifnum\arabic{myaddcount}<50, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=50\ifnum\arabic{myaddcount}<49, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=49\ifnum\arabic{myaddcount}<48, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=48\ifnum\arabic{myaddcount}<47, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=47\ifnum\arabic{myaddcount}<46, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=46\ifnum\arabic{myaddcount}<45, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=45\ifnum\arabic{myaddcount}<44, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=44\ifnum\arabic{myaddcount}<43, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=43\ifnum\arabic{myaddcount}<42, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=42\ifnum\arabic{myaddcount}<41, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=41\ifnum\arabic{myaddcount}<40, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=40\ifnum\arabic{myaddcount}<39, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=39\ifnum\arabic{myaddcount}<38, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=38\ifnum\arabic{myaddcount}<37, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=37\ifnum\arabic{myaddcount}<36, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=36\ifnum\arabic{myaddcount}<35, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=35\ifnum\arabic{myaddcount}<34, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=34\ifnum\arabic{myaddcount}<33, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=33\ifnum\arabic{myaddcount}<32, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=32\ifnum\arabic{myaddcount}<31, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=31\ifnum\arabic{myaddcount}<30, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=30\ifnum\arabic{myaddcount}<29, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=29\ifnum\arabic{myaddcount}<28, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=28\ifnum\arabic{myaddcount}<27, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=27\ifnum\arabic{myaddcount}<26, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=26\ifnum\arabic{myaddcount}<25, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=25\ifnum\arabic{myaddcount}<24, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=24\ifnum\arabic{myaddcount}<23, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=23\ifnum\arabic{myaddcount}<22, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=22\ifnum\arabic{myaddcount}<21, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=21\ifnum\arabic{myaddcount}<20, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=20\ifnum\arabic{myaddcount}<19, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=19\ifnum\arabic{myaddcount}<18, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=18\ifnum\arabic{myaddcount}<17, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=17\ifnum\arabic{myaddcount}<16, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=16\ifnum\arabic{myaddcount}<15, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=15\ifnum\arabic{myaddcount}<14, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=14\ifnum\arabic{myaddcount}<13, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=13\ifnum\arabic{myaddcount}<12, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=12\ifnum\arabic{myaddcount}<11, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=11\ifnum\arabic{myaddcount}<10, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=10\ifnum\arabic{myaddcount}<9, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=9\ifnum\arabic{myaddcount}<8, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=8\ifnum\arabic{myaddcount}<7, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=7\ifnum\arabic{myaddcount}<6, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=6\ifnum\arabic{myaddcount}<5, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=5\ifnum\arabic{myaddcount}<4, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=4\ifnum\arabic{myaddcount}<3, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=3\ifnum\arabic{myaddcount}<2, \else\unskip\fi\else\ifnum\arabic{myaddcount@totc}=2\else,\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} + +\def\@address{} +\def\address{\@@address}% +\newcommand{\@@address}[2][]{% + \g@addto@macro\@address{% + \refstepcounter{myaddcount}% + \ifnum\arabic{myaddcount}=1\vspace*{5pt}\par\fi% + \addressandsep\ifx#1\@empty\else\textsuperscript{#1}\fi#2\addresscommasep}% + }% +\def\@corresp{} +\def\corresp{\@@corresp}% +\newcommand{\@@corresp}[2][]{% + \g@addto@macro\@corresp{% + \ifx#1\@empty\else\textsuperscript{#1}\fi#2}}% + +\def\@DOI{} +\def\DOI#1{\global\def\@DOI{#1}} + +\definecolor{gray}{cmyk}{0, 0, 0, 0.15} +\definecolor{grayfifty}{cmyk}{0, 0, 0, 0.5} +\definecolor{graysixtyfive}{cmyk}{0, 0, 0, 0.65} +\newlength{\extraspace} +\setlength{\extraspace}{\z@} + +\newcommand\maketitle{\par + \begingroup + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% + \long\def\@makefntext##1{\parindent 3mm\noindent + \if@traditional\if@small\@hangfrom{{\normalfont\@thefnmark}\enskip}\else\@textsuperscript{\normalfont\@thefnmark}\fi\else\@textsuperscript{\normalfont\@thefnmark}\fi + ##1}% + \if@twocolumn + \ifnum \col@number=\@ne + \@maketitle + \else + \twocolumn[\@maketitle]% + \fi + \else + \newpage% + \global\@topnum\z@ % + \@maketitle + \fi + \thispagestyle{opening}\@thanks + \endgroup + \setcounter{footnote}{0}% + \global\let\thanks\relax + \global\let\maketitle\relax + \global\let\@maketitle\relax + \global\let\@address\@empty + \global\let\@corresp\@empty + \global\let\@history\@empty + \global\let\@editor\@empty + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@subtitle\@empty + \global\let\@title\@empty + \global\let\@boxedtext\@empty + \global\let\@pubyear\@empty + \global\let\address\relax + \global\let\boxedtext\relax + \global\let\history\relax + \global\let\editor\relax + \global\let\title\relax + \global\let\author\relax + \global\let\date\relax + \global\let\pubyear\relax + \global\let\@copyrightline\@empty + \global\let\and\relax + \@afterindentfalse\@afterheading +} + +\newlength{\aboveskipchk}% +\setlength{\aboveskipchk}{\z@}% + +\def\@access{} +\def\access#1{\gdef\@access{#1}} + +\def\appnotes#1{\gdef\@appnotes{#1}} +\appnotes{} + +\newlength{\titlepagewd} +\if@modern + \if@large + \setlength{\titlepagewd}{36.5pc} + \else + \if@medium + \setlength{\titlepagewd}{36.5pc} + \else + \if@small + \setlength{\titlepagewd}{29pc} + \else + \setlength{\titlepagewd}{36.5pc} + \fi + \fi + \fi +\else +\if@traditional + \setlength{\titlepagewd}{\textwidth} +\else + \setlength{\titlepagewd}{\textwidth} +\fi +\fi + +\definecolor{jnlclr}{cmyk}{.80,.29,.05,0} +\definecolor{jnlruleclr}{cmyk}{.45,.06,.05,0} + +\def\@maketitle{% + \let\footnote\thanks + \clearemptydoublepage + \checkoddpage\ifcpoddpage\setlength{\aboveskipchk}{-28.6pt}\else\setlength{\aboveskipchk}{-28.6pt}\fi%for checking oddpage or evenpage top skip%% + \vspace*{\aboveskipchk}% + \vspace{\dropfromtop}% + \if@modern + \if@large\vspace*{18pt}\else + \if@medium\vspace*{21pt}\else\fi\fi + \else + \if@traditional + \if@large\vspace*{7.2pt}\else + \if@medium\vspace*{-5pt}\else + \vspace*{-6pt} + \fi\fi + \else + \if@contemporary + \if@large\vspace*{27.2pt}\else + \if@medium\vspace*{21pt}\else + \vspace*{21pt} + \fi\fi + \else + \fi + \fi + \fi + \if@twocolumn\else\vspace*{-10pt}\fi + \if@modern% + \if@large% + \hbox to \textwidth{\raisebox{5pt}[0pt]{% + \parbox[b]{416pt}{\raggedleft{{\sffamilyfontcnitalic\fontsize{8bp}{12}\selectfont \@journaltitle}, \sffamilyfontcn\@copyrightyear, \thepage--\thelastpage}\\[1pt] + {\sffamilyfontcn doi: \@DOI}\\[1pt] + {\ifx\@access\@empty + \else + {\sffamilyfontcn \@access}\fi} + \vskip1pt + {\ifx\@appnotes\@empty + \else + {\sffamilyfontcn \@appnotes}\fi} + }}% + \hfill + {\color{black!20}\rule{45pt}{55pt}} + } + \else% + \if@medium% + \hbox to \textwidth{\raisebox{5pt}[0pt]{% + \parbox[b]{362pt}{\raggedleft{{\sffamilyfontcnitalic\fontsize{8bp}{12}\selectfont \@journaltitle}, \sffamilyfontcn\@copyrightyear, \thepage--\thelastpage}\\[1pt] + {\sffamilyfontcn doi: \@DOI}\\[1pt] + {\ifx\@access\@empty + \else + {\sffamilyfontcn \@access}\fi} + \vskip1pt + {\ifx\@appnotes\@empty + \else + {\sffamilyfontcn \@appnotes}\fi} + }}% + \hfill{\color{black!20}\rule{45pt}{55pt}}} + \else% + \if@small + \vspace*{17pt} + \hbox to \textwidth{\raisebox{5pt}[0pt]{% + \parbox[b]{.8\textwidth}{\raggedleft{{\sffamilyfontcnitalic\fontsize{8bp}{12}\selectfont \@journaltitle}, {\sffamilyfontcn\fontsize{8bp}{12}\selectfont\@copyrightyear, \thepage--\thelastpage}}\\ + {\sffamilyfontcn\fontsize{8bp}{12}\selectfont doi: \@DOI}\\ + {\ifx\@access\@empty + \else + {\sffamilyfontcn\fontsize{8bp}{12}\selectfont \@access}\fi}\\ + %\vskip1pt + {\ifx\@appnotes\@empty + \else + {\sffamilyfontcn\fontsize{8bp}{12}\selectfont \@appnotes}\fi} + }}% + \hfill{\color{black!20}\rule{45pt}{55pt}}} + \else + \fi% + \fi% + \fi% + \else + \if@traditional + \if@large + \hbox to \textwidth{\raisebox{18pt}[0pt]{% + \parbox[b]{416pt}{{{\fontsize{9.5bp}{10}\selectfont\itshape \@journaltitle\rm\ Vol. \@vol, No. \@issue, pp. \thepage--\thelastpage}}\\[-1.5pt] + {\fontsize{9.5bp}{10}\selectfont doi: \@DOI}\\[-1.5pt] + {\ifx\@access\@empty + \else + {\fontsize{9.5bp}{10}\selectfont \@access}\fi} + \vskip-1.5pt + {\ifx\@appnotes\@empty + \else + {\fontsize{9.5bp}{10}\selectfont \@appnotes}\fi} + }}% + \hfill{\color{black!20}\rule{45pt}{55pt}}} + \else + \if@medium + \hbox to \textwidth{\raisebox{18pt}[0pt]{% + \parbox[b]{350pt}{{{\fontsize{9.5bp}{10}\selectfont\itshape \@journaltitle\rm\ Vol. \@vol, No. \@issue, pp. \thepage--\thelastpage}}\\[-.5pt] + {\fontsize{9.5bp}{10}\selectfont doi: \@DOI}\\[-1.5pt] + {\ifx\@access\@empty + \else + {\fontsize{9.5bp}{10}\selectfont \@access}\vskip-1.5pt\fi} + {\ifx\@appnotes\@empty + \else + {\fontsize{9.5bp}{10}\selectfont \@appnotes}\fi} + }}% + \hfill{\color{black!20}\rule{45pt}{55pt}}} + \else + \hbox to \textwidth{\raisebox{18pt}[0pt]{% + \parbox[b]{250pt}{{{\fontsize{9.5bp}{10}\selectfont\itshape \@journaltitle\rm\ \@copyrightyear, \@vol, \thepage--\thelastpage}}\\[-.5pt] + {\fontsize{9.5bp}{10}\selectfont doi: \@DOI}\\[-1.5pt] + {\ifx\@access\@empty + \else + {\fontsize{9.5bp}{10}\selectfont \@access}\vskip-1.5pt\fi} + {\ifx\@appnotes\@empty + \else + {\fontsize{9.5bp}{10}\selectfont \@appnotes}\fi} + }}% + \hfill{\color{black!20}\rule{45pt}{55pt}}} + \fi + \fi + \else + \if@contemporary + \if@large + \hbox to \textwidth{{\color{black!20}\rule{45pt}{55pt}}\hfill + \raisebox{-3.7pt}[0pt]{% + \parbox[b]{416pt}{{{\fontsize{8bp}{10}\selectfont\itshape\hspace*{178pt} \@journaltitle,\rm\ \@copyrightyear, pp. \thepage--\thelastpage}}\\[-.5pt] + \hspace*{181pt}{\color{black!15}\rule{288.5pt}{2pt}}\\[1.6pt] + {\fontsize{6.5bp}{8}\selectfont\hspace*{178pt} \textbf{\color{jnlclr}doi: \@DOI}}\\[-.9pt] + {\ifx\@access\@empty + \else + {\fontsize{6.5bp}{8}\selectfont\hspace*{178pt} \@access}\fi} + \vskip-.9pt + {\ifx\@appnotes\@empty + \else + {\fontsize{6.5bp}{8}\selectfont\hspace*{178pt} \@appnotes}\\[-.9pt]\fi} + \hspace*{181pt}{\color{black!15}\rule{288.5pt}{2pt}}\\%[1.6pt] + }}% + } + \else + \if@medium + \hbox to \textwidth{{\color{black!20}\rule{45pt}{55pt}}\hfill + \raisebox{-8pt}[0pt]{% + \parbox[b]{416pt}{{{\fontsize{8bp}{10}\selectfont\itshape\hspace*{178pt} \@journaltitle,\rm\ \@copyrightyear, pp. \thepage--\thelastpage}}\\[-.5pt] + \hspace*{181pt}{\color{black!15}\rule{257pt}{2pt}}\\[1.6pt] + {\fontsize{6.5bp}{8}\selectfont\hspace*{178pt} \textbf{\color{jnlclr}doi: \@DOI}}\\[-.9pt] + {\ifx\@access\@empty + \else + {\fontsize{6.5bp}{8}\selectfont\hspace*{178pt} \@access}\fi} + \vskip-.9pt + {\ifx\@appnotes\@empty + \else + {\fontsize{6.5bp}{8}\selectfont\hspace*{178pt} \@appnotes}\\[-.9pt]\fi} + \hspace*{181pt}{\color{black!15}\rule{257pt}{2pt}}\\%[1.6pt] + }}% + } + \else + \hbox to \textwidth{{\color{black!20}\rule{45pt}{55pt}}\hfill + \raisebox{-8pt}[0pt]{% + \parbox[b]{416pt}{{{\fontsize{8bp}{10}\selectfont\itshape\hspace*{108pt} \@journaltitle,\rm\ \@copyrightyear, pp. \thepage--\thelastpage}}\\[-.5pt] + \hspace*{111pt}{\color{black!15}\rule{234pt}{2pt}}\\[1.6pt] + {\fontsize{6.5bp}{8}\selectfont\hspace*{108pt} \textbf{\color{jnlclr}doi: \@DOI}}\\[-.9pt] + {\ifx\@access\@empty + \else + {\fontsize{6.5bp}{8}\selectfont\hspace*{108pt} \@access}\fi} + \vskip-.9pt + {\ifx\@appnotes\@empty + \else + {\fontsize{6.5bp}{8}\selectfont\hspace*{108pt} \@appnotes}\\[-.9pt]\fi} + \hspace*{111pt}{\color{black!15}\rule{234pt}{2pt}}\\%[1.6pt] + }}% + } + \fi + \fi + \else + \fi + \fi + \fi + \if@modern\vskip2pt\else\if@traditional\if@large\vskip-1.7pt\else\if@medium\vskip.7pt\else\vskip-2pt\fi\fi\else\fi\fi + \if@modern% + \if@large\noindent\rule{415pt}{2\p@}\else% + \if@medium\noindent\rule{\textwidth}{2\p@}\else% + \if@small\noindent\rule{\textwidth}{2\p@}\else% + \fi\fi\fi% + \else% + \if@traditional + \if@large\noindent\rule{\textwidth}{.5\p@}\else% + \if@medium\noindent\rule{\textwidth}{.5\p@}\else% + \noindent\rule{\textwidth}{.5\p@} + \fi\fi + \else + \if@contemporary + \if@large\vspace*{55pt}\else% + \if@medium\vspace*{25pt}\else% + \if@small\vspace*{25pt}\else% + \fi\fi\fi% + \else + \fi + \fi\fi\par% + % + \if@contemporary\else\if@traditional\else\sffamilyfont\fi\fi + \hbox to \textwidth{% + \parbox[t]{\titlepagewd}{% + \if@modern\vspace*{3pt}\else\if@traditional\if@large\vspace*{.9pt}\else\if@medium\vspace*{3.4pt}\else\vspace*{.9pt}\fi\fi\else\fi\fi% + \ifx\@subtitle\@empty% + \else% + \if@traditional\else{\sffamilyfontcn\if@modern\if@small\fontsize{12}{19}\selectfont\else\fontsize{14}{21}\selectfont\fi\else\fontsize{14}{21}\selectfont\fi\raggedright \@subtitle \par}% + \vspace{7.5\p@}\fi% + \fi% + % Title here + \if@modern% + {\sffamilyfontbold\if@small\fontsize{16}{21}\selectfont\else\fontsize{18}{23}\selectfont\fi\raggedright \@title \par}% + \else% + \if@traditional% + {\if@large\fontsize{24bp}{25}\bfseries\selectfont\else\if@medium\fontsize{24}{25}\selectfont\bfseries\else\fontsize{18}{20}\selectfont\bfseries\fi\fi\leftskip0pt plus1fill\rightskip0pt plus1fill \@title \par}%% + \else% + \if@contemporary + {\fontsize{9.8bp}{10}\selectfont \MakeUppercase{\@appnotes}}\\[6.5pt] + {\if@large\fontsize{18bp}{20}\bfseries\selectfont\else\if@medium\fontsize{18}{20}\selectfont\bfseries\else\fontsize{18}{20}\selectfont\bfseries\fi\fi\leftskip0pt\rightskip0pt plus1fill {\color{jnlclr}\@title} \par}%% + \else + {\if@large\fontsize{24bp}{26}\bfseries\selectfont\else\if@medium\fontsize{24}{25}\selectfont\bfseries\else\fontsize{18}{20}\selectfont\bfseries\fi\fi\leftskip0pt plus1fill\rightskip0pt plus1fill \@title \par}%% + \fi% + \fi% + \fi% + % Title below space + \if@modern\if@medium\vspace{8.8\p@}\else\if@small\vspace{7.8\p@}\else\vspace{8.8\p@}\fi\fi\else% + \if@traditional% + \if@large\vspace{4.8\p@}\else\if@medium\vspace{4.8\p@}\else\vspace{8\p@}\fi\fi + \else% + \if@contemporary\if@large\vspace{12\p@}\else\if@medium\vspace{12\p@}\else\vspace{12\p@}\fi\fi\else + \fi% + \fi% + \fi% + % Author here + \if@modern + {\sffamilyfontbold\boldmath\if@small\fontsize{11}{14}\selectfont\else\fontsize{12}{15}\selectfont\fi\raggedright \@author \par}% + \else + \if@traditional% + {\boldmath\if@large\fontsize{16bp}{18}\selectfont\else\if@medium\fontsize{16bp}{18}\selectfont\else\fontsize{12bp}{14}\selectfont\fi\fi\leftskip0pt plus1fill\rightskip0pt plus1fill \@author \par}% + \else + \if@contemporary + {\boldmath\if@large\fontsize{13bp}{15}\selectfont\else\if@medium\fontsize{12bp}{14}\selectfont\else\fontsize{12bp}{14}\selectfont\fi\fi\leftskip0pt\rightskip0pt plus1fill \@author \par}% + \else + \fi + \fi + \fi + % Author below space + \if@modern\if@medium\vspace{3\p@}\else\if@small\vspace{3.5\p@}\else\vspace{9\p@}\fi\fi\else + \if@traditional% + \if@large\vspace{21\p@}\else\if@medium\vspace{10\p@}\else\vspace{10\p@}\fi\fi + \else + \if@contemporary\vspace{4\p@}\else + \fi\fi\fi + % Address here + \if@modern + {\sffamilyfontcn\if@large\fontsize{9}{12}\rightskip24pt\else\if@medium\fontsize{10}{13}\rightskip10pt\else\if@small\fontsize{8.5}{11.5}\raggedright\else\fi\fi\fi\selectfont \@address \par}% + \else + \if@traditional% + {\if@large\fontsize{8bp}{10}\else\if@medium\fontsize{8bp}{10}\else\if@small\fontsize{8.5}{11.5}\else\fi\fi\fi\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \@address \par}% + \else + \if@contemporary% + {\if@large\fontsize{6.5bp}{9.5}\else\if@medium\fontsize{8bp}{10}\else\if@small\fontsize{8.5}{11.5}\else\fi\fi\fi\selectfont\leftskip0pt\rightskip0pt plus1fill \@address \par}% + \else + \fi + \fi + \fi + % Address below space + \if@modern\vspace{6\p@}\else\fi + % Correspondence author here + \if@modern + {\sffamilyfontcn\if@large\fontsize{8.5}{12}\selectfont\else\if@medium\fontsize{8}{11.5}\selectfont\else\if@small\fontsize{8.5}{12}\selectfont\else\fontsize{8.5}{12}\selectfont\fi\fi\fi\raggedright \@corresp \par}% + \else + \if@traditional% + {\if@large\fontsize{8bp}{10}\selectfont\else\if@medium\fontsize{8bp}{10}\selectfont\else\if@small\fontsize{8.5}{12}\selectfont\else\fontsize{8.5}{12}\selectfont\fi\fi\fi\leftskip0pt plus1fill\rightskip0pt plus1fill \@corresp \par}% + \else + \if@contemporary% + {\if@large\fontsize{6.5bp}{9.5}\selectfont\else\if@medium\fontsize{8bp}{10}\selectfont\else\if@small\fontsize{8.5}{12}\selectfont\else\fontsize{8.5}{12}\selectfont\fi\fi\fi\leftskip0pt\rightskip0pt plus1fill \@corresp \par}% + \else + \fi + \fi + \fi + % Correspondence below space + \if@modern\vspace{2\p@}\else\fi + % Editor here + \if@modern% + {\sffamilyfont\if@large\fontsize{8.5}{12}\selectfont\else\if@medium\fontsize{8}{11.5}\selectfont\else\if@small\fontsize{8.5}{12}\selectfont\else\fontsize{8.5}{12}\selectfont\fi\fi\fi\raggedright \@editor \par} + \else + \fi + % Editor below space + \if@modern\vspace{4\p@}\else\fi + % History here + \if@modern% + {\sffamilyfont\fontsize{7}{12}\selectfont\raggedright \@history \par} + \else + \if@traditional% + {\fontsize{8bp}{10}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \@history \par} + \else + \if@contemporary + {\fontsize{6.5bp}{9.5}\selectfont\leftskip0pt\rightskip0pt plus1fill \@history \par} + \else + {\fontsize{8bp}{10}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \@history \par} + \fi + \fi + \fi + % History below space + \if@modern\vspace{14\p@}\else + \if@traditional\if@large\vspace{33\p@}\else\if@medium\vspace{20\p@}\else\vspace{4\p@}\fi\fi\else + \if@contemporary\vspace*{8.5pt}\else\fi\fi\fi + % Abstract here + \if@modern% + {\let\section\absection{\sffamilyfont\fontsize{10}{12}\bfseries\selectfont Abstract}\par} + \vskip5pt + \else + \if@traditional% + \if@large + {\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \uppercase{Abstract}\par} + \vskip2.5pt + \else + \if@medium + {\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \uppercase{Abstract}\par} + \vskip2.5pt + \else + {\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \uppercase{Abstract}\par} + \vskip1.5pt + \fi + \fi + \else + \if@contemporary + \if@large + {\color{jnlruleclr}\rule{542pt}{2pt}}\vspace*{12.35pt}\par{\fontsize{11.5bp}{12}\fontseries{b}\selectfont\leftskip0pt\rightskip0pt plus1fill {\color{jnlclr} Abstract}\par} + \vskip5.5pt + \else + \if@medium + {\color{jnlruleclr}\rule{484pt}{2pt}}\vspace*{12.35pt}\par{\fontsize{11.5bp}{12}\fontseries{b}\selectfont\leftskip0pt\rightskip0pt plus1fill {\color{jnlclr} Abstract}\par} + \vskip5.5pt + \else + {\color{jnlruleclr}\rule{390pt}{2pt}}\vspace*{12.35pt}\par{\fontsize{11.5bp}{12}\fontseries{b}\selectfont\leftskip0pt\rightskip0pt plus1fill {\color{jnlclr} Abstract}\par} + \vskip5.5pt + \fi + \fi + \else + \fi + \fi + \fi + \begingroup + \if@modern + \if@small\begin{minipage}[t]{\textwidth}\else\begin{minipage}[t]{415pt}\fi + \else + \if@traditional% + \hfil\if@large\begin{minipage}[t]{408pt}\else\if@medium\begin{minipage}[t]{360pt}\else\begin{minipage}[t]{312pt}\fi\fi\hspace*{12pt} + \else + \if@contemporary + \if@large\begin{minipage}[t]{\textwidth}\else\begin{minipage}[t]{\textwidth}\fi + \else + \fi\fi\fi\parindent=0pt + {\if@modern + \sffamilyfont + \if@large\fontsize{9}{12}\selectfont\else + \if@medium\fontsize{9}{12}\selectfont\else + \if@small\fontsize{7.5}{10.5}\selectfont\else + \fontsize{9}{12}\selectfont + \fi\fi\fi + \else + \if@traditional% + \if@large\fontsize{9.5bp}{11}\selectfont\else + \if@medium\fontsize{8.5bp}{10}\selectfont\else + \fontsize{9.5bp}{10.5}\selectfont\fi\fi + \else + \if@contemporary + \fontsize{9bp}{11}\selectfont + \else + \fi + \fi + \fi + \if@modern + \if@medium\rightskip-12pt\else\fi + \else + \if@traditional% + \if@large\else\fi + \else + \fi + \fi + \@abstract + \if@contemporary + \if@large + \vspace*{6.5pt}\par{\color{jnlruleclr}\rule{542pt}{2pt}} + \else + \if@medium + \vspace*{6.5pt}\par{\color{jnlruleclr}\rule{484pt}{2pt}} + \else + \vspace*{6.5pt}\par{\color{jnlruleclr}\rule{390pt}{2pt}} + \fi + \fi + \else\par\fi} + \end{minipage} + \if@traditional\hfil\else\fi + \endgroup + %\vspace{20\p@} + }% + } + % + \vspace{13.5\p@}% + \if@modern + \if@medium\noindent\rule{\textwidth}{2\p@}\else + \if@small\noindent\rule{\textwidth}{2\p@}\else + \noindent\rule{415pt}{2\p@}\fi\fi + \else + \if@traditional + \else + %\noindent\rule{415pt}{2\p@} + \fi + \fi% + \ifx\@boxedtext\@empty\else\vspace*{12pt}\par\fi% + \@boxedtext + \vspace{12\p@ plus 6\p@ minus 6\p@}% + \vspace{\extraspace} + \if@traditional\if@small\enlargethispage{-36pt}\else\fi\else\if@contemporary\vspace*{-18pt}\else\fi\fi} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%% Abstract %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\absection}[1]{% + \par\noindent{\bfseries #1}\space\ignorespaces} + +% Section macros + +% Lowest level heading that takes a number by default +\setcounter{secnumdepth}{3} + +\renewcommand{\@seccntformat}[1]{\if@unnumsec\else\csname the#1\endcsname.\space\fi} + +\def\secsize{% + \if@modern% + \if@large\sffamilyfontbold\fontsize{10}{12}\selectfont\else% + \if@medium\sffamilyfontbold\fontsize{10}{12}\selectfont\else% + \if@small\sffamilyfontbold\fontsize{11}{13}\selectfont\else% + \sffamilyfontbold\fontsize{10}{12}\selectfont\fi\fi\fi% + \else%% + \if@traditional% + \if@large\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill\else% + \if@medium\fontsize{9bp}{11}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill\else + \if@small\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill\else + \fi\fi\fi% + \else% + \if@contemporary + \fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt\rightskip0pt plus1fill\color{jnlclr} + \else + \fi + \fi% + \fi} + +\def\subsecsize{% + \if@modern% + \sffamilyfont\fontsize{9}{12}\selectfont + \else%% + \if@traditional% + \if@large\fontsize{11bp}{13}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill\else% + \if@medium\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill\else + \if@small\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill\else + \fi\fi\fi% + \else% + \fi% + \fi} + +\def\subsubsecsize{% + \if@modern% + \normalfont\mathversion{bold}\normalsize\bfseries + \else%% + \if@traditional% + \if@large\normalfont\mathversion{bold}\normalsize\bfseries\else% + \if@medium\normalfont\mathversion{bold}\normalsize\bfseries\else + \if@small\normalfont\mathversion{bold}\fontsize{10bp}{12}\selectfont\bfseries\else + \fi\fi\fi% + \else% + \fi% + \fi} + +\def\section{% + \@startsection{section}{1}{\z@} + {-16\p@ plus -3\p@}{\if@traditional\if@large.4\p@\else\if@medium6.5\p@\else4\p@\fi\fi\else\if@contemporary5\p@\else4\p@\fi\fi} + {\reset@font\raggedright\secsize}} + +\def\subsection{% + \@startsection{subsection}{2}{\z@} + {-11\p@ plus -2\p@}{\if@traditional.4\p@\else4\p@\fi} + {\reset@font\raggedright\subsecsize}} + +\def\subsubsection{% + \@startsection{subsubsection}{3}{\z@} + {-11\p@ plus -1\p@}{0.001em} + {\reset@font\raggedright\subsubsecsize}} + +\def\textcolon{\text{\rm :}} + + \def\paragraph{% + \@startsection{paragraph}{4}{\z@} + {-6\p@} + {-.4em} + {\reset@font\itshape}} + +\def\@startsection#1#2#3#4#5#6{% + \if@noskipsec \leavevmode \fi + \par + \@tempskipa #4\relax + \@afterindenttrue + \ifdim \@tempskipa <\z@ + \@tempskipa -\@tempskipa \@afterindentfalse + \fi + \if@nobreak + \everypar{}\if@traditional\if@large\ifnum#2=2\vspace*{5.65pt}\fi\ifnum#2=3\vspace*{-1pt}\fi\else% + \ifnum#2=2\vspace*{-3pt}\fi\ifnum#2=3\vspace*{1pt}\fi\fi\else\fi%% + \else + \addpenalty\@secpenalty\addvspace\@tempskipa + \fi + \@ifstar + {\@ssect{#3}{#4}{#5}{#6}}% + {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}} + +\def\@sect#1#2#3#4#5#6[#7]#8{% + \ifnum #2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{#1}% + \protected@edef\@svsec{\@seccntformat{#1}\relax}% + \fi + \@tempskipa #5\relax + \ifdim \@tempskipa>\z@ + \begingroup + #6{% + \@hangfrom{\hskip #3\relax\@svsec}% + \interlinepenalty \@M \if@traditional\ifnum#2=1\uppercase{#8}\else#8\fi\else#8\fi\@@par}% + \endgroup + \csname #1mark\endcsname{#7}% + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}% + \else + \def\@svsechd{% + #6{\hskip #3\relax + \@svsec #8}% + \csname #1mark\endcsname{#7}% + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}}% + \fi + \@xsect{#5}} + + +% ******************** +% Figures and tables * +% ******************** + +% Table and array parameters +\setlength\arraycolsep{.5em} +\setlength\tabcolsep{.5em} +\setlength\arrayrulewidth{.5pt} +\setlength\doublerulesep{2.5pt} +\setlength\extrarowheight{\z@} +\renewcommand\arraystretch{1} + +%\newlength{\abovecaptionskip} +%\newlength{\belowcaptionskip} +\setlength{\abovecaptionskip}{13pt} +\setlength{\belowcaptionskip}{2pt} + +\long\def\@makecaption#1#2{\vspace{\abovecaptionskip}% + \begingroup + \scriptsize\sffamily + \text{\sfb #1.}\space{#2}\par + \endgroup} + +\long\def\@tablecaption#1#2{% + \begingroup% + \if@modern% + \fontsize{7.5pt}{10.5pt}\sffamily\selectfont% + \textbf{#1.}\space{#2\strut\par}% + \else% + \if@traditional% + \if@large + \fontsize{11bp}{13pt}\rmfamily\selectfont% + \textbf{#1.}\space{\bfseries#2\strut\par}% + \else + \if@medium + \fontsize{9pt}{11pt}\selectfont% + \textbf{#1.}\space{\bfseries#2\strut\par}% + \else + \fontsize{9pt}{11pt}\selectfont% + \textbf{#1.}\space{\bfseries#2\strut\par}% + \fi + \fi + \else% + \fontsize{7pt}{9pt}\selectfont% + \textbf{#1.}\space{#2\strut\par}% + \fi% + \fi% + \endgroup\vspace{\belowcaptionskip}} + +\long\def\@figurecaption#1#2{% + \begingroup% + \if@modern% + \hspace*{1pt}\vspace*{-1.5pt}\newline% + %\fontsize{7.5pt}{10.5pt}\sffamily\selectfont% + #1:\space{#2\strut\par}% + \else% + \if@traditional% + \if@large + \fontsize{9.5bp}{11pt}\selectfont% + \hspace*{1pt}\vspace*{-3pt}\newline% + \textbf{#1.}\space{\bfseries#2\strut\par}% + \else + \fontsize{8.5bp}{10pt}\selectfont% + \hspace*{1pt}\vspace*{-3pt}\newline% + \textbf{#1.}\space{\bfseries#2\strut\par}% + \fi + \else% + \fontsize{6bp}{9pt}\selectfont% + \hspace*{1pt}\vspace*{-3pt}\newline% + \textbf{#1.}\space{#2\strut\par}% + \fi% + \fi% + \endgroup\vspace{\belowcaptionskip}} + +\if@traditional\if@large\def\arraystretch{1.5}\else\def\arraystretch{1}\fi\fi + +% Table rules +\if@modern + \def\toprule{\noalign{\ifnum0=`}\fi% + \hrule \@height 0.5pt + \hrule \@height 4pt \@width 0pt \futurelet \@tempa\@xhline} + \def\midrule{\noalign{\ifnum0=`}\fi% + \hrule \@height 3pt \@width 0pt% + \hrule \@height 0.5pt% + \hrule \@height 4pt \@width 0pt \futurelet \@tempa\@xhline} + \def\botrule{\noalign{\ifnum0=`}\fi% + \hrule \@height 3.75pt \@width 0pt + \hrule \@height 0.5pt \futurelet \@tempa\@xhline} +\else +\if@traditional + \if@large + \def\toprule{\noalign{\ifnum0=`}\fi% + \hrule \@height 0.5pt + \hrule \@height 0pt \@width 0pt \futurelet \@tempa\@xhline} + \def\midrule{\noalign{\ifnum0=`}\fi% + \hrule \@height -2pt \@width 0pt% + \hrule \@height 0.5pt% + \hrule \@height 1.9pt \@width 0pt \futurelet \@tempa\@xhline} + \def\botrule{\noalign{\ifnum0=`}\fi% + \hrule \@height .3pt \@width 0pt + \hrule \@height 0.5pt \futurelet \@tempa\@xhline} + \else + \def\toprule{\noalign{\ifnum0=`}\fi% + \hrule \@height 0.5pt + \hrule \@height 4pt \@width 0pt \futurelet \@tempa\@xhline} + \def\midrule{\noalign{\ifnum0=`}\fi% + \hrule \@height 3pt \@width 0pt% + \hrule \@height 0.5pt% + \hrule \@height 4pt \@width 0pt \futurelet \@tempa\@xhline} + \def\botrule{\noalign{\ifnum0=`}\fi% + \hrule \@height 3.5pt \@width 0pt + \hrule \@height 0.5pt \futurelet \@tempa\@xhline} + \fi +\else + \def\toprule{\noalign{\ifnum0=`}\fi% + \hrule \@height 0.5pt + \hrule \@height 4pt \@width 0pt \futurelet \@tempa\@xhline} + \def\midrule{\noalign{\ifnum0=`}\fi% + \hrule \@height 3pt \@width 0pt% + \hrule \@height 0.5pt% + \hrule \@height 4pt \@width 0pt \futurelet \@tempa\@xhline} + \def\botrule{\noalign{\ifnum0=`}\fi% + \hrule \@height 3.75pt \@width 0pt + \hrule \@height 0.5pt \futurelet \@tempa\@xhline} +\fi +\fi +\def\hrulefill{\leavevmode\leaders\hrule height .5pt\hfill\kern\z@} + +\def\thefigure{\@arabic\c@figure} +\def\fps@figure{tbp} +\def\ftype@figure{1} +\def\ext@figure{lof} +\def\fnum@figure{\figurename~\thefigure} +\def\figure{\let\@makecaption\@figurecaption\@float{figure}} +\let\endfigure\end@float +\@namedef{figure*}{\let\@makecaption\@figurecaption\@dblfloat{figure}} +\@namedef{endfigure*}{\end@dblfloat} +\def\thetable{\@arabic\c@table} +\def\fps@table{tbp} +\def\ftype@table{2} +\def\ext@table{lot} +\def\fnum@table{Table~\thetable} +\def\table{\let\@makecaption\@tablecaption\let\source\tablesource\@float{table}} +\def\endtable{\end@float} +\@namedef{table*}{\let\@makecaption\@tablecaption\@dblfloat{table}} +\@namedef{endtable*}{\end@dblfloat} + +\newif\if@rotate \@rotatefalse +\newif\if@rotatecenter \@rotatecenterfalse +\def\rotatecenter{\global\@rotatecentertrue} +\def\rotateendcenter{\global\@rotatecenterfalse} +\def\rotate{\global\@rotatetrue} +\def\endrotate{\global\@rotatefalse} +\newdimen\rotdimen +\def\rotstart#1{\special{ps: gsave currentpoint currentpoint translate + #1 neg exch neg exch translate}} +\def\rotfinish{\special{ps: currentpoint grestore moveto}} +\def\rotl#1{\rotdimen=\ht#1\advance\rotdimen by \dp#1 + \hbox to \rotdimen{\vbox to\wd#1{\vskip \wd#1 + \rotstart{270 rotate}\box #1\vss}\hss}\rotfinish} +\def\rotr#1{\rotdimen=\ht #1\advance\rotdimen by \dp#1 + \hbox to \rotdimen{\vbox to \wd#1{\vskip \wd#1 + \rotstart{90 rotate}\box #1\vss}\hss}\rotfinish} + +\newdimen\tempdime +\newbox\temptbox + +% From ifmtarg.sty +% Copyright Peter Wilson and Donald Arseneau, 2000 +\begingroup +\catcode`\Q=3 +\long\gdef\@ifmtarg#1{\@xifmtarg#1QQ\@secondoftwo\@firstoftwo\@nil} +\long\gdef\@xifmtarg#1#2Q#3#4#5\@nil{#4} +\long\gdef\@ifnotmtarg#1{\@xifmtarg#1QQ\@firstofone\@gobble\@nil} +\endgroup + +\def\tablesize{\if@traditional% + \if@large\@setfontsize\tablesize{10\p@}{12.5\p@}\else + \@setfontsize\tablesize{8\p@}{10\p@}\fi\else\fi} + +\newenvironment{processtable}[3]{\setbox\temptbox=\hbox{{\tablesize #2}}% +\tempdime\wd\temptbox\@processtable{#1}{#2}{#3}{\tempdime}} +{\relax} + +\newcommand{\@processtable}[4]{% +\if@rotate +\setbox4=\vbox to \hsize{\vss\hbox to \textheight{% +\begin{minipage}{#4}% +\@ifmtarg{#1}{}{\caption{#1}}{\tablesize #2}% +\vskip7\p@\noindent +\parbox{#4}{\fontsize{7}{9}\selectfont #3\par}% +\end{minipage}}\vss}% +\rotr{4} +\else +\hbox to \hsize{\hss\begin{minipage}[t]{#4}% +\vskip2.9pt +\@ifmtarg{#1}{}{\caption{#1}}{\tablesize #2}% +\vskip6\p@\parindent=12pt +\parbox{#4}{\fontsize{7}{9}\selectfont #3\par}% +\end{minipage}\hss}\fi}% + +\newcolumntype{P}[1]{>{\raggedright\let\\\@arraycr\hangindent1em}p{#1}} + +% ****************************** +% List numbering and lettering * +% ****************************** +\def\labelenumi{{\rm\arabic{enumi}.}} +\def\theenumi{\arabic{enumi}} +\def\labelenumii{{\rm\alph{enumii}.}} +\def\theenumii{\alph{enumii}} +\def\p@enumii{\theenumi} +\def\labelenumiii{{\rm(\roman{enumiii})}} +\def\theenumiii{\roman{enumiii}} +\def\p@enumiii{\theenumi(\theenumii)} +\def\labelenumiv{{\rm(\arabic{enumiv})}} +\def\theenumiv{\Alph{enumiv}} +\def\p@enumiv{\p@enumiii\theenumiii} +\def\labelitemi{{\small$\bullet$}} +\def\labelitemii{{--}} +\def\labelitemiii{{\small$\bullet$}} +\def\labelitemiv{{\small$\bullet$}} + +\def\@listI{\leftmargin\leftmargini \topsep\medskipamount} +\let\@listi\@listI +\@listi +\def\@listii{\topsep\z@\leftmargin\leftmarginii} +\def\@listiii{\leftmargin\leftmarginiii \topsep\z@} +\def\@listiv{\leftmargin\leftmarginiv \topsep\z@} +\def\@listv{\leftmargin\leftmarginv \topsep\z@} +\def\@listvi{\leftmargin\leftmarginvi \topsep\z@} + +\setlength{\leftmargini}{3mm} +\setlength{\leftmarginii}{1mm} +\setlength{\leftmarginiii}{2mm} +\setlength{\leftmarginiv}{\z@} + +% Changes to the list parameters for enumerate +\def\enumargs{% + \partopsep \z@ + \itemsep \z@ + \parsep \z@ + \labelsep 1em + \listparindent \parindent + \itemindent \z@ + \topsep 7\p@ +} + +\def\enumerate{% + \@ifnextchar[{\@numerate}{\@numerate[0]}} + +\def\@numerate[#1]{% + \ifnum \@enumdepth >3 \@toodeep\else + \advance\@enumdepth \@ne + \edef\@enumctr{enum\romannumeral\the\@enumdepth} + \list{\csname label\@enumctr\endcsname}{% + \enumargs + \setlength{\leftmargin}{\csname leftmargin\romannumeral\the\@enumdepth\endcsname} + \usecounter{\@enumctr} + \settowidth\labelwidth{#1} + \addtolength{\leftmargin}{\labelwidth} + \addtolength{\leftmargin}{2pt} + \def\makelabel##1{\hss \llap{##1}}}% + \fi + } +\let\endenumerate\endlist + +% Changes to the list parameters for itemize +\def\itemargs{% + \partopsep \z@ + \itemsep 0\p@ + \parsep \z@ + \labelsep 1em + \rightmargin \z@ + \listparindent \parindent + \itemindent \z@ + \topsep7\p@ + \setlength{\leftmarginii}{3mm} +} + +\def\itemize{% + \@ifnextchar[{\@itemize}{\@itemize[$\bullet$]}} + +\def\@itemize[#1]{% + \ifnum \@itemdepth >3 \@toodeep\else + \advance\@itemdepth \@ne + \edef\@itemctr{item\romannumeral\the\@itemdepth} + \list{\csname label\@itemctr\endcsname}{% + \itemargs + \setlength{\leftmargin}{\csname leftmargin\romannumeral\the\@itemdepth\endcsname} + \settowidth\labelwidth{#1} + \addtolength{\leftmargin}{\labelwidth} + %\addtolength{\leftmargin}{\labelsep} + \def\makelabel##1{\hss \llap{##1}}}% + \fi + } +\let\enditemize\endlist + +\newenvironment{unlist}{% + \begin{list}{}% + {\setlength{\labelwidth}{\z@}% + \setlength{\labelsep}{\z@}% + \setlength{\topsep}{\medskipamount}% + \setlength{\itemsep}{3\p@}% + \setlength{\leftmargin}{2em}% + \setlength{\itemindent}{-2em}}} +{\end{list}} + + +% *********************** +% Quotes and Quotations * +% *********************** +\def\quotation{\par\begin{list}{}{ + \setlength{\topsep}{\medskipamount} + \setlength{\leftmargin}{2em}% + \setlength{\rightmargin}{\z@}% + \setlength\labelwidth{0pt}% + \setlength\labelsep{0pt}% + \listparindent\parindent}% + \item[]} +\def\endquotation{\end{list}} +\let\quote\quotation +\let\endquote\endquotation + +\skip\@mpfootins = \skip\footins +\fboxsep=6\p@ +\fboxrule=1\p@ + +% ******************* +% Table of contents * +% ******************* +\newcommand\@pnumwidth{4em} +\newcommand\@tocrmarg{2.55em plus 1fil} +\newcommand\@dotsep{1000} +\setcounter{tocdepth}{4} + +\def\numberline#1{\hbox to \@tempdima{{#1}}} + +\def\@authortocline#1#2#3#4#5{% + \vskip 1.5\p@ + \ifnum #1>\c@tocdepth \else + {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip + \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode + \@tempdima #3\relax + \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip + {\itshape #4}\nobreak + \leaders\hbox{$\m@th + \mkern \@dotsep mu\hbox{.}\mkern \@dotsep + mu$}\hfill + \nobreak + \hb@xt@\@pnumwidth{\hfil}% + \par}% + \fi} + +\newcommand*\l@author{\@authortocline{2}{0pt}{30pt}} +\newcommand*\l@section{\@dottedtocline{3}{11pt}{20pt}} +\newcommand*\l@subsection{\@dottedtocline{4}{31pt}{29pt}} +\newcommand*\l@subsubsection[2]{} + + + +% *********** +% Footnotes * +% *********** + +\def\footnoterule{\noindent\rule{\columnwidth}{0.5pt}} +\def\@makefnmark{\@textsuperscript{\normalfont\@thefnmark}}% +\newcommand\@makefntext[1]{\noindent\if@traditional\if@small\@hangfrom{\@thefnmark\enskip}\else{\@makefnmark\enskip}\fi\else{\@makefnmark\enskip}\fi#1} + +% *********** +% References * +% *********** + +\providecommand{\newblock}{} +\newenvironment{thebibliography}{% + \section{\bibname}% + \begingroup + \small + \begin{list}{}{% + \setlength{\topsep}{\z@}% + \setlength{\labelsep}{\z@}% + \settowidth{\labelwidth}{\z@}% + \setlength{\leftmargin}{4mm}% + \setlength{\itemindent}{-4mm}}\small} +{\end{list}\endgroup} + +\RequirePackage{natbib} + +\if@modern\if@medium\def\bibfont{\fontsize{7.5bp}{10}\selectfont}\else\fi\else\fi + +\renewcommand\@biblabel[1]{#1.\hfill\hspace*{3pt}} + +\renewcommand\NAT@bibsetnum[1]{\settowidth\labelwidth{\@biblabel{#1}}% + \setlength{\leftmargin}{\labelwidth}\addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibsep}\setlength{\parsep}{\z@}% + \ifNAT@openbib + \addtolength{\leftmargin}{\bibindent}% + \setlength{\itemindent}{-\bibindent}% + \setlength{\listparindent}{\itemindent}% + \setlength{\parsep}{0pt}% + \fi +} +\if@traditional +\if@large +\def\bibsection{\section*{\fontsize{10bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \uppercase{References}\vspace*{5pt}}} +\else +\def\bibsection{\section*{\fontsize{9bp}{12}\fontseries{b}\selectfont\leftskip0pt plus1fill\rightskip0pt plus1fill \uppercase{References}\vspace*{-2.5pt}}} +\fi +\fi + + +%Math parameters + +\setlength{\jot}{5\p@} +\mathchardef\@m=1500 % adapted value + +\def\frenchspacing{\sfcode`\.\@m \sfcode`\?\@m \sfcode`\!\@m + \sfcode`\:\@m \sfcode`\;\@m \sfcode`\,\@m} + +% Theorems +\def\th@plain{% +%% \let\thm@indent\noindent % no indent +\thm@headfont{\quad\scshape}% heading font is bold +\thm@notefont{\upshape\mdseries}% same as heading font +\thm@headpunct{.}% no period after heading +\thm@headsep 5\p@ plus\p@ minus\p@\relax +%% \let\thm@swap\@gobble +%% \thm@preskip\topsep +%% \thm@postskip\theorempreskipamount +\itshape % body font +} + +\vbadness=9999 +\tolerance=9999 +\doublehyphendemerits=10000 +\doublehyphendemerits 640000 +\finalhyphendemerits 1000000 + +\flushbottom +\frenchspacing +\ps@headings +\twocolumn + +% Screen PDF compatability +\newcommand{\medline}[1]{% + \unskip\unskip\ignorespaces} + + +%%%%for smaller size text +\newenvironment{methods}{% + \begingroup +\def\section{% + \@startsection{section}{1}{\z@} + {-24\p@ plus -3\p@}{4\p@} + {\reset@font\raggedright\sffamilyfontbold\fontsize{10}{12}\selectfont}} + \def\subsection{% + \@startsection{subsection}{2}{\z@} + {-11\p@ plus -2\p@}{4\p@} + {\reset@font\raggedright\sffamilyfont\fontsize{9}{12}\selectfont}} +\def\subsubsection{% + \@startsection{subsubsection}{3}{\z@} + {-11\p@ plus -1\p@}{0.001em} + {\reset@font\normalfont\mathversion{bold}\normalsize\bfseries}} +\normalsize + \par} +{\par\endgroup\bigskip\@afterheading\@afterindentfalse} + + +\language=2 + +\hyphenation{Figure Table Figures Tables} + +%%%%%%%%%%%%%%% Biography +% +\RequirePackage{wrapfig}% +% +\newcount\wraplines% +\wraplines=8% +% +\newbox\@authorfigbox% +\newskip\@authorfigboxdim% +% +\newskip\biofigadjskip% +\biofigadjskip=0pt% +% +\def\authbiotextfont{\reset@font\fontsize{8bp}{9.5bp}\selectfont}% +% +\newenvironment{biography}[2]{\par\addvspace{11.5pt plus3.375pt minus1.6875pt}%\lineno@off% +\def\author##1{{\if@modern\sf\else\fi\bfseries##1}}% +\if!#1!\def\@authorfig{}\else\def\@authorfig{{#1}}\fi% +\setbox\@authorfigbox=\hbox{#1}% +\@authorfigboxdim=\wd\@authorfigbox% +\advance\@authorfigboxdim by -10pt +\wraplines=9\fboxrule=1pt\fboxsep=6pt% +\noindent{% +\ifx\@authorfig\@empty\else\unskip% +\begin{wrapfigure}[\wraplines]{l}[0pt]{\@authorfigboxdim}%{38.25mm}% +\if@traditional\if@medium\vskip-19pt\else\vskip-19pt\fi\else\vskip-19pt\fi\vskip\biofigadjskip% +\@authorfig% +\end{wrapfigure}% +\fi% +{\authbiotextfont#2\par}% +\par% +}}{\par\addvspace{10.5pt plus3.375pt minus1.6875pt}} +% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Theorem %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +\RequirePackage{amsthm}% +% +\@ifpackageloaded{amsthm}{% +% +\let\proof\relax% +\let\endproof\relax% + +\def\@begintheorem#1#2[#3]{% + \deferred@thm@head{\the\thm@headfont \thm@indent + \@ifempty{#1}{\let\thmname\@gobble}{\let\thmname\@iden}% + \@ifempty{#2}{\let\thmnumber\@gobble}{\let\thmnumber\@iden}% + \@ifempty{#3}{\let\thmnote\@gobble}{\let\thmnote\@iden}% + \thm@swap\swappedhead\thmhead{#1}{#2}{#3}% + \the\thm@headpunct + \thmheadnl % possibly a newline. + \hskip\thm@headsep + }% + \ignorespaces +} + +\def\@endtheorem{\endtrivlist\@endpefalse} + + +\AtBeginDocument{% +% +\DeclareSymbolFont{AMSa}{U}{msa}{m}{n}% +\DeclareMathSymbol{\opensquare}{\mathord}{AMSa}{"03}% +\def\qedsymbol{\ensuremath{\opensquare}}% +% +\newenvironment{proof}[1][\proofname]{\par\removelastskip%\vspace*{2pt}% + \pushQED{\ensuremath{\qed}}% + \normalfont \topsep7.5\p@\@plus7.5\p@\relax% + \trivlist% + \item[\hskip\labelsep% + \itshape% + #1\ \@addpunct{}]\ignorespaces% +}{% + \popQED\endtrivlist\@endpefalse% +}}% +% +\def\thm@space@setup{% +\thm@preskip=12pt% +\thm@postskip=12pt} +% +%%%%%%%%%%%%%%%%%% StyleOne +% +\newtheoremstyle{thmstyleone}% Numbered +{12pt plus2pt minus1pt}% Space above +{12pt plus2pt minus1pt}% Space below +{\normalfont\itshape}% Body font +{0pt}% Indent amount +{\bfseries}% Theorem head font +{}% Punctuation after theorem head +{.5em}% Space after theorem headi +{\thmname{#1}\thmnumber{\@ifnotempty{#1}{ }\@upn{#2}}% + \thmnote{ {\the\thm@notefont(#3)}}}% Theorem head spec (can be left empty, meaning `normal') +% +\newtheoremstyle{thmstyletwo}% Numbered +{12pt plus2pt minus1pt}% Space above +{12pt plus2pt minus1pt}% Space below +{\itshape}% Body font +{0pt}% Indent amount +{\normalfont}% Theorem head font +{}% Punctuation after theorem head +{.5em}% Space after theorem headi +{\thmname{#1}\thmnumber{\@ifnotempty{#1}{ }{#2}}% + \thmnote{ {\the\thm@notefont(#3)}}}% Theorem head spec (can be left empty, meaning `normal') +% +\newtheoremstyle{thmstylethree}% Definition +{12pt plus2pt minus1pt}% Space above +{12pt plus2pt minus1pt}% Space below +{\normalfont}% Body font +{0pt}% Indent amount +{\bfseries}% Theorem head font +{}% Punctuation after theorem head +{.5em}% Space after theorem headi +{\thmname{#1}\thmnumber{\@ifnotempty{#1}{ }\@upn{#2}}% + \thmnote{ {\the\thm@notefont(#3)}}}% Theorem head spec (can be left empty, meaning `normal') +% +\newtheoremstyle{thmstylefour}% Proof +{12pt plus2pt minus1pt}% Space above +{12pt plus2pt minus1pt}% Space below +{\normalfont}% Body font +{0pt}% Indent amount +{\itshape}% Theorem head font +{}% Punctuation after theorem head +{.5em}% Space after theorem headi +{\global\proofthmtrue\thmname{#1} \thmnote{#3}}% Theorem head spec (can be left empty, meaning `normal') +% +}{} + +\def\sbond{\ensuremath{\raise.25ex\hbox{${-}\!\!\!\!{-}$}}\kern -.9pt} +\def\dbond{\ensuremath{\raise.25ex\hbox{=$\!$=}}} +\def\tbond{\ensuremath{\raise.20ex\hbox{${\equiv}\!\!\!{\equiv}$}}} + +\newcommand{\query}[2][0pt]{}% + +\renewcommand{\dag}{{\mathversion{normal}$^{\dagger}$}} + +%% Additional Packages +\RequirePackage{subfloat,subfig} +\RequirePackage{multirow} +\RequirePackage{footnote} +\RequirePackage{url} +\RequirePackage{amsmath} +\RequirePackage{mathrsfs} +\RequirePackage{algorithm}% +\RequirePackage{algorithmicx}% +\RequirePackage{algpseudocode}% +\RequirePackage{listings}% +\RequirePackage{appendix} +\RequirePackage[hidelinks]{hyperref} + +%% End here %% + +\endinput diff --git a/macros/latex/contrib/oup-authoring-template/oup-authoring-template.pdf b/macros/latex/contrib/oup-authoring-template/oup-authoring-template.pdf Binary files differnew file mode 100644 index 0000000000..1f488e966e --- /dev/null +++ b/macros/latex/contrib/oup-authoring-template/oup-authoring-template.pdf diff --git a/macros/latex/contrib/oup-authoring-template/oup-authoring-template.tex b/macros/latex/contrib/oup-authoring-template/oup-authoring-template.tex new file mode 100644 index 0000000000..aa774c2523 --- /dev/null +++ b/macros/latex/contrib/oup-authoring-template/oup-authoring-template.tex @@ -0,0 +1,990 @@ +%% +%% Copyright 2020 OXFORD UNIVERSITY PRESS +%% +%% This file is part of the 'oup-authoring-template Bundle'. +%% --------------------------------------------- +%% +%% It may be distributed under the conditions of the LaTeX Project Public +%% License, either version 1.2 of this license or (at your option) any +%% later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% The list of all files belonging to the 'oup-authoring-template Bundle' is +%% given in the file `manifest.txt'. +%% +%% Template article for OXFORD UNIVERSITY PRESS's document class `oup-authoring-template' +%% with bibliographic references +%% + +%%%CONTEMPORARY%%% +\documentclass[unnumsec,webpdf,contemporary,large]{oup-authoring-template}% +%\documentclass[unnumsec,webpdf,contemporary,large,namedate]{oup-authoring-template}% uncomment this line for author year citations and comment the above +%\documentclass[unnumsec,webpdf,contemporary,medium]{oup-authoring-template} +%\documentclass[unnumsec,webpdf,contemporary,small]{oup-authoring-template} + +%%%MODERN%%% +%\documentclass[unnumsec,webpdf,modern,large]{oup-authoring-template} +%\documentclass[unnumsec,webpdf,modern,large,namedate]{oup-authoring-template}% uncomment this line for author year citations and comment the above +%\documentclass[unnumsec,webpdf,modern,medium]{oup-authoring-template} +%\documentclass[unnumsec,webpdf,modern,small]{oup-authoring-template} + +%%%TRADITIONAL%%% +%\documentclass[unnumsec,webpdf,traditional,large]{oup-authoring-template} +%\documentclass[unnumsec,webpdf,traditional,large,namedate]{oup-authoring-template}% uncomment this line for author year citations and comment the above +%\documentclass[unnumsec,namedate,webpdf,traditional,medium]{oup-authoring-template} +%\documentclass[namedate,webpdf,traditional,small]{oup-authoring-template} + +%\onecolumn % for one column layouts + +%\usepackage{showframe} + +\graphicspath{{Fig/}} + +% line numbers +%\usepackage[mathlines, switch]{lineno} +%\usepackage[right]{lineno} + +\theoremstyle{thmstyleone}% +\newtheorem{theorem}{Theorem}% meant for continuous numbers +%%\newtheorem{theorem}{Theorem}[section]% meant for sectionwise numbers +%% optional argument [theorem] produces theorem numbering sequence instead of independent numbers for Proposition +\newtheorem{proposition}[theorem]{Proposition}% +%%\newtheorem{proposition}{Proposition}% to get separate numbers for theorem and proposition etc. +\theoremstyle{thmstyletwo}% +\newtheorem{example}{Example}% +\newtheorem{remark}{Remark}% +\theoremstyle{thmstylethree}% +\newtheorem{definition}{Definition} + +\begin{document} + +\journaltitle{Journal Title Here} +\DOI{DOI HERE} +\copyrightyear{2019} +\pubyear{2019} +\access{Advance Access Publication Date: Day Month Year} +\appnotes{Paper} + +\firstpage{1} + +%\subtitle{Subject Section} + +\title[Short Article Title]{Article Title} + +\author[1,$\ast$]{First Author} +\author[2]{Second Author} +\author[3]{Third Author} +\author[3]{Fourth Author} +\author[4]{Fifth Author} + +\authormark{Author Name et al.} + +\address[1]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \postcode{Postcode}, \state{State}, \country{Country}}} +\address[2]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \postcode{Postcode}, \state{State}, \country{Country}}} +\address[3]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \postcode{Postcode}, \state{State}, \country{Country}}} +\address[4]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \postcode{Postcode}, \state{State}, \country{Country}}} + +\corresp[$\ast$]{Corresponding author. \href{email:email-id.com}{email-id.com}} + +\received{Date}{0}{Year} +\revised{Date}{0}{Year} +\accepted{Date}{0}{Year} + +%\editor{Associate Editor: Name} + +%\abstract{ +%\textbf{Motivation:} .\\ +%\textbf{Results:} .\\ +%\textbf{Availability:} .\\ +%\textbf{Contact:} \href{name@bio.com}{name@bio.com}\\ +%\textbf{Supplementary information:} Supplementary data are available at \textit{Briefings in Bioinformatics} +%online.} + +\abstract{Abstracts must be able to stand alone and so cannot contain citations to +the paper's references, equations, etc. An abstract must consist of a single +paragraph and be concise. Because of online formatting, abstracts must appear +as plain as possible.} +\keywords{keyword1, Keyword2, Keyword3, Keyword4} + +% \boxedtext{ +% \begin{itemize} +% \item Key boxed text here. +% \item Key boxed text here. +% \item Key boxed text here. +% \end{itemize}} + +\maketitle + + +\section{Introduction} +The introduction introduces the context and summarizes the manuscript. It is importantly to clearly state the contributions +of this piece of work. The potential offered to policy makers by data-driven research is greater than it ever has been. +Increasing volumes of data, faster technology, and evolving techniques and methodology enable us to process ever more data faster, +providing the opportunity to focus and evaluate policies to deliver more effectively and economically at a time when efficient use +of public money is paramount. + +More data can now be analyzed faster enabling researchers to explore more and more complex interactions. Data across a wide spectrum from open data\footnote{\url{https://data.gov.uk/}} that can be downloaded, through licensed data,\footnote{\url{https://www.ukdataservice.ac.uk/}} to sensitive personal data can now contribute to our understanding of health, social, and economic outcomes. + +The United Kingdom has a long tradition of safe data use by researchers. In the 50 years that the UK +Data Archive has been making data available for social and economic research, there have been no +damaging disclosures of personal information by academic researchers\footnote{That is not to say that there have been no breaches---researchers using data for a project they are not licensed for or passing data +to unlicensed colleagues---however, this, as far as we are aware of, has never caused harm to individuals or entities in the data.}. While increasing use of detailed and sometimes sensitive +data can contribute valuable insights for targeting policies, we cannot be +complacent. In order to support our policy needs and continue to use data safely and effectively, we +need a research infrastructure that protects data confidentiality while enabling researchers to undertake +innovative research. + +\section{This is an example for first level head - section head}\label{sec2} + +Once data are disseminated, whatever contractual or other obligations are placed on those receiving the +data, the data are effectively out of a data providers' control. Data providers must be certain that the data +disseminated do not provide a risk of disclosure necessitating a reduction in the detail available. +Data providers must be certain that the data disseminated do not provide a risk of disclosure necessitating +a reduction in the detail available, or they are constrained to using a resource intensive auditing regime, +and are likely to discover any data misuse only after it has happened (refer Section~\ref{sec5}). + +\subsection{This is an example for second level head - subsection head}\label{subsec1} + +Once data are disseminated, whatever contractual or other obligations are placed on those receiving the +data, the data are effectively out of a data providers' control. Data providers must be certain that the data +disseminated do not provide a risk of disclosure necessitating a reduction in the detail available, or they are +constrained to using a resource intensive auditing regime, and are likely to discover any data misuse only +after it has happened. + +\subsubsection{This is an example for third level head - subsubsection head}\label{subsubsec1} + +Once data are disseminated, whatever contractual or other obligations are placed on those receiving the +data, the data are effectively out of a data providers' control. Data providers must be certain that the data +disseminated do not provide a risk of disclosure necessitating a reduction in the detail available, or they are +constrained to using a resource intensive auditing regime, and are likely to discover any data misuse only +after it has happened. + +\paragraph{This is an example for fourth level head - paragraph head} + +Once data are disseminated, whatever contractual or other obligations are placed on those receiving the data, the data +are effectively out of a data providers' control. The United Kingdom has a long tradition of safe data use by researchers. +The United Kingdom has a long tradition of safe data use by researchers. + +\section{This is an example for first level head}\label{sec3} + +\subsection{This is an example for second level head - subsection head}\label{subsec2} + +\subsubsection{This is an example for third level head - subsubsection head}\label{subsubsec2} + +In the 50 years that the UK Data Archive has been making data available for social and economic research, there have been no +damaging disclosures of personal information by academic researchers. While increasing use of detailed and sometimes sensitive +data can contribute valuable insights for targeting policies, we cannot be +complacent. In order to support our policy needs and continue to use data safely and effectively, we +need a research infrastructure that data confidentiality while enabling researchers to undertake +innovative research. + +\paragraph{This is an example for fourth level head - paragraph head} + +A first step toward protecting sensitive data is to keep control of it, to disseminate access, not data. Data +providers internationally are increasing, moving toward systems in which researchers remotely accessed. + + + +\section{Equations}\label{sec4} + +Equations in \LaTeX{} can either be inline or on-a-line by itself. For +inline equations use the \verb+$...$+ commands. Eg: The equation +$H\psi = E \psi$ is written via the command \verb+$H \psi = E \psi$+. + +For on-a-line by itself equations (with auto generated equation numbers) +one can use the equation or eqnarray environments: +\begin{equation} +\|\tilde{X}(k)\|^2 \leq\frac{\sum\limits_{i=1}^{p}\left\|\tilde{Y}_i(k)\right\|^2+\sum\limits_{j=1}^{q}\left\|\tilde{Z}_j(k)\right\|^2 }{p+q}.\label{eq1} +\end{equation} +where, +\begin{align} +D_\mu &= \partial_\mu - ig \frac{\lambda^a}{2} A^a_\mu \nonumber \\ +F^a_{\mu\nu} &= \partial_\mu A^a_\nu - \partial_\nu A^a_\mu + g f^{abc} A^b_\mu A^a_\nu\label{eq2} +\end{align} +Notice the use of \verb+\nonumber+ in the align environment at the end +of each line, except the last, so as not to produce equation numbers on +lines where no equation numbers are required. The \verb+\label{}+ command +should only be used at the last line of an align environment where +\verb+\nonumber+ is not used. +\begin{equation} +Y_\infty = \left( \frac{m}{\textrm{GeV}} \right)^{-3} + \left[ 1 + \frac{3 \ln(m/\textrm{GeV})}{15} + + \frac{\ln(c_2/5)}{15} \right] +\end{equation} +The class file also supports the use of \verb+\mathbb{}+, \verb+\mathscr{}+ and +\verb+\mathcal{}+ commands. As such \verb+\mathbb{R}+, \verb+\mathscr{R}+ +and \verb+\mathcal{R}+ produces $\mathbb{R}$, $\mathscr{R}$ and $\mathcal{R}$ +respectively (refer Subsubsection~\ref{subsubsec3}). + + + +\section{Tables}\label{sec5} + +Tables can be inserted via the normal table and tabular environment. To put +footnotes inside tables one has to 12pt use the additional ``tablenotes" environment +enclosing the tabular environment. The footnote appears just below the table +itself (refer Tables~\ref{tab1} and \ref{tab2}). + + +\begin{verbatim} +\begin{table}[t] +\begin{center} +\begin{minipage}{<width>} +\caption{<table-caption>\label{<table-label>}}% +\begin{tabular}{@{}llll@{}} +\toprule +column 1 & column 2 & column 3 & column 4\\ +\midrule +row 1 & data 1 & data 2 & data 3 \\ +row 2 & data 4 & data 5$^{1}$ & data 6 \\ +row 3 & data 7 & data 8 & data 9$^{2}$\\ +\botrule +\end{tabular} +\begin{tablenotes}% +\item Source: Example for source. +\item[$^{1}$] Example for a 1st table footnote. +\item[$^{2}$] Example for a 2nd table footnote. +\end{tablenotes} +\end{minipage} +\end{center} +\end{table} +\end{verbatim} + + +Lengthy tables which doesn't fit in textwidth should be set as rotated table. For this, we need to use \verb+\begin{sidewaystable}...+ \verb+\end{sidewaystable}+ instead of\break \verb+\begin{table}...+ \verb+\end{table}+ environment. + + +\begin{table}[!t] +\caption{Caption text\label{tab1}}% +\begin{tabular*}{\columnwidth}{@{\extracolsep\fill}llll@{\extracolsep\fill}} +\toprule +column 1 & column 2 & column 3 & column 4\\ +\midrule +row 1 & data 1 & data 2 & data 3 \\ +row 2 & data 4 & data 5$^{1}$ & data 6 \\ +row 3 & data 7 & data 8 & data 9$^{2}$ \\ +\botrule +\end{tabular*} +\begin{tablenotes}% +\item Source: This is an example of table footnote this is an example of table footnote this is an example of table footnote this is an example of~table footnote this is an example of table footnote +\item[$^{1}$] Example for a first table footnote. +\item[$^{2}$] Example for a second table footnote. +\end{tablenotes} +\end{table} + +\begin{table*}[h] +\caption{Example of a lengthy table which is set to full textwidth.\label{tab2}} +\tabcolsep=0pt%% +\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lcccccc@{\extracolsep{\fill}}} +\toprule% +& \multicolumn{3}{@{}c@{}}{Element 1$^{1}$} & \multicolumn{3}{@{}c@{}}{Element 2$^{2}$} \\ +\cline{2-4}\cline{5-7}% +Project & Energy & $\sigma_{calc}$ & $\sigma_{expt}$ & Energy & $\sigma_{calc}$ & $\sigma_{expt}$ \\ +\midrule +Element 3 & 990 A & 1168 & $1547\pm12$ & 780 A & 1166 & $1239\pm100$\\ +Element 4 & 500 A & 961 & $922\pm10$ & 900 A & 1268 & $1092\pm40$\\ +\botrule +\end{tabular*} +\begin{tablenotes}% +\item Note: This is an example of table footnote this is an example of table footnote this is an example of table footnote this is an example of~table footnote this is an example of table footnote +\item[$^{1}$] Example for a first table footnote. +\item[$^{2}$] Example for a second table footnote.\vspace*{6pt} +\end{tablenotes} +\end{table*} + +\begin{sidewaystable}%[!p] +\caption{Tables which are too long to fit, should be written using the ``sidewaystable" environment as shown here\label{tab3}} +\tabcolsep=0pt% +\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lcccccc@{\extracolsep{\fill}}} +\toprule% +& \multicolumn{3}{@{}c@{}}{Element 1$^{1}$}& \multicolumn{3}{@{}c@{}}{Element$^{2}$} \\ +\cline{2-4}\cline{5-7}% +Projectile & Energy & $\sigma_{calc}$ & $\sigma_{expt}$ & Energy & $\sigma_{calc}$ & $\sigma_{expt}$ \\ +\midrule +Element 3 & 990 A & 1168 & $1547\pm12$ & 780 A & 1166 & $1239\pm100$ \\ +Element 4 & 500 A & 961 & $922\pm10$ & 900 A & 1268 & $1092\pm40$ \\ +\botrule +\end{tabular*} +\begin{tablenotes}% +\item Note: This is an example of table footnote this is an example of table footnote this is an example of table footnote this is an example of~table footnote this is an example of table footnote +\item[$^{1}$] This is an example of table footnote +\end{tablenotes} +\end{sidewaystable} + + +\section{Figures}\label{sec6} + +As per the \LaTeX\ standards one has to use eps images for \verb+latex+ compilation and \verb+pdf/jpg/png+ images for +\verb+pdflatex+ compilation. This is one of the major difference between \verb+latex+ +and \verb+pdflatex+. The images should be single page documents. The command for inserting images +for \verb+latex+ and \verb+pdflatex+ can be generalized. The package used to insert images in \verb+latex/pdflatex+ is the +graphicx package. Figures can be inserted via the normal figure environment as shown in the below example: + + +\begin{figure}[!t]% +\centering +{\color{black!20}\rule{213pt}{37pt}} +\caption{This is a widefig. This is an example of long caption this is an example of long caption this is an example of long caption this is an example of long caption}\label{fig1} +\end{figure} + +\begin{figure*}[!t]% +\centering +{\color{black!20}\rule{438pt}{74pt}} +\caption{This is a widefig. This is an example of long caption this is an example of long caption this is an example of long caption this is an example of long caption}\label{fig2} +\end{figure*} + + +\begin{verbatim} +\begin{figure}[t] + \centering\includegraphics{<eps-file>} + \caption{<figure-caption>} + \label{<figure-label>} +\end{figure} +\end{verbatim} + +Test text here. + +For sample purpose, we have included the width of images in the optional argument of \verb+\includegraphics+ tag. Please ignore this. Lengthy figures which doesn't fit in textwidth should be set as rotated mode. For rotated figures, we need to use \verb+\begin{sidewaysfigure}+ \verb+...+ \verb+\end{sidewaysfigure}+ instead of \verb+\begin{figure}+ \verb+...+ \verb+\end{figure}+ environment. + +\begin{sidewaysfigure}% +\centering +{\color{black!20}\rule{610pt}{102pt}} +\caption{This is an example for sideways figure. This is an example of long caption this is an example of long caption this is an example of long caption this is an example of long caption}\label{fig3} +\end{sidewaysfigure} + + + +\section{Algorithms, Program codes and Listings}\label{sec7} + +Packages \verb+algorithm+, \verb+algorithmicx+ and \verb+algpseudocode+ are used for setting algorithms in latex. +For this, one has to use the below format: + + +\begin{verbatim} +\begin{algorithm} +\caption{<alg-caption>}\label{<alg-label>} +\begin{algorithmic}[1] +. . . +\end{algorithmic} +\end{algorithm} +\end{verbatim} + + +We need to refer above listed package documentations for more details before setting \verb+algorithm+ environment. +To set program codes, one has to use \verb+program+, package. We need to use \verb+\begin{program}+ \verb+...+ +\verb+\end{program}+ environment to set program codes. A fast exponentiation procedure: + +\begin{algorithm}[!t] +\caption{Calculate $y = x^n$}\label{algo1} +\begin{algorithmic}[1] +\Require $n \geq 0 \vee x \neq 0$ +\Ensure $y = x^n$ +\State $y \Leftarrow 1$ +\If{$n < 0$} + \State $X \Leftarrow 1 / x$ + \State $N \Leftarrow -n$ +\Else + \State $X \Leftarrow x$ + \State $N \Leftarrow n$ +\EndIf +\While{$N \neq 0$} + \If{$N$ is even} + \State $X \Leftarrow X \times X$ + \State $N \Leftarrow N / 2$ + \Else[$N$ is odd] + \State $y \Leftarrow y \times X$ + \State $N \Leftarrow N - 1$ + \EndIf +\EndWhile +\end{algorithmic} +\end{algorithm} + +Similarly, for \verb+listings+, one has to use \verb+listings+ package. \verb+\begin{lstlisting}+ \verb+...+ \verb+\end{lstlisting}+ environment is used to set environments similar to \verb+verbatim+ environment. Refer \verb+lstlisting+, package documentation for more details on this. + + +\begin{minipage}{\hsize}% +\lstset{language=Pascal}% Set your language (you can change the language for each code-block optionally) +\begin{lstlisting}[frame=single,framexleftmargin=-1pt,framexrightmargin=-17pt,framesep=12pt,linewidth=0.98\textwidth]% Start your code-block +for i:=maxint to 0 do +begin +{ do nothing } +end; +Write('Case insensitive '); +Write('Pascal keywords.'); +\end{lstlisting} +\end{minipage} + + +\section{Cross referencing}\label{sec8} + +Environments such as figure, table, equation, align can have a label +declared via the \verb+\label{#label}+ command. For figures and table +environments one should use the \verb+\label{}+ command inside or just +below the \verb+\caption{}+ command. One can then use the +\verb+\ref{#label}+ command to cross-reference them. As an example, consider +the label declared for Figure \ref{fig1} which is +\verb+\label{fig1}+. To cross-reference it, use the command +\verb+ Figure \ref{fig1}+, for which it comes up as +``Figure~\ref{fig1}". + +\subsection{Details on reference citations}\label{subsec3} + +With standard numerical .bst files, only numerical citations are possible. +With an author-year .bst file, both numerical and author-year citations are possible. + +If author-year citations are selected, \verb+\bibitem+ must have one of the following forms: + + +{\footnotesize% +\begin{verbatim} +\bibitem[Jones et al.(1990)]{key}... +\bibitem[Jones et al.(1990)Jones, + Baker, and Williams]{key}... +\bibitem[Jones et al., 1990]{key}... +\bibitem[\protect\citeauthoryear{Jones, + Baker, and Williams} + {Jones et al.}{1990}]{key}... +\bibitem[\protect\citeauthoryear{Jones et al.} + {1990}]{key}... +\bibitem[\protect\astroncite{Jones et al.} + {1990}]{key}... +\bibitem[\protect\citename{Jones et al., } + 1990]{key}... +\harvarditem[Jones et al.]{Jones, Baker, and + Williams}{1990}{key}... +\end{verbatim}} + + +This is either to be made up manually, or to be generated by an +appropriate .bst file with BibTeX. Then, + + +{% +\begin{verbatim} + Author-year mode + || Numerical mode +\citet{key} ==>> Jones et al. (1990) + || Jones et al. [21] +\citep{key} ==>> (Jones et al., 1990) || [21] +\end{verbatim}} + + +\noindent +Multiple citations as normal: + + +{% +\begin{verbatim} +\citep{key1,key2} ==> (Jones et al., 1990; + Smith, 1989)||[21,24] + or (Jones et al., 1990, 1991)||[21,24] + or (Jones et al., 1990a,b) ||[21,24] +\end{verbatim}} + + +\noindent +\verb+\cite{key}+ is the equivalent of \verb+\citet{key}+ in author-year mode +and of \verb+\citep{key}+ in numerical mode. Full author lists may be forced with +\verb+\citet*+ or \verb+\citep*+, e.g. + + +{% +\begin{verbatim} +\citep*{key} ==>> (Jones, Baker, and Mark, 1990) +\end{verbatim}} + + +\noindent +Optional notes as: + + +{% +\begin{verbatim} +\citep[chap. 2]{key} ==>> + (Jones et al., 1990, chap. 2) +\citep[e.g.,][]{key} ==>> + (e.g., Jones et al., 1990) +\citep[see][pg. 34]{key} ==>> + (see Jones et al., 1990, pg. 34) +\end{verbatim}} + + +\noindent +(Note: in standard LaTeX, only one note is allowed, after the ref. +Here, one note is like the standard, two make pre- and post-notes.) + + +{% +\begin{verbatim} +\citealt{key} ==>> Jones et al. 1990 +\citealt*{key} ==>> Jones, Baker, and + Williams 1990 +\citealp{key} ==>> Jones et al., 1990 +\citealp*{key} ==>> Jones, Baker, and + Williams, 1990 +\end{verbatim}} + + +\noindent +Additional citation possibilities (both author-year and numerical modes) + + +{% +\begin{verbatim} +\citeauthor{key} ==>> Jones et al. +\citeauthor*{key} ==>> Jones, Baker, and + Williams +\citeyear{key} ==>> 1990 +\citeyearpar{key} ==>> (1990) +\citetext{priv. comm.} ==>> (priv. comm.) +\citenum{key} ==>> 11 [non-superscripted] +\end{verbatim}} + + +\noindent +Note: full author lists depends on whether the bib style supports them; +if not, the abbreviated list is printed even when full requested. + +\noindent +For names like della Robbia at the start of a sentence, use + + +{% +\begin{verbatim} +\Citet{dRob98} ==>> Della Robbia (1998) +\Citep{dRob98} ==>> (Della Robbia, 1998) +\Citeauthor{dRob98} ==>> Della Robbia +\end{verbatim}} + + +\noindent +The following is an example for \verb+\cite{...}+: \cite{rahman2019centroidb}. Another example for \verb+\citep{...}+: \citep{bahdanau2014neural,imboden2018cardiorespiratory,motiian2017unified,american2013acsm,murphy2012machine,ji20123d}. +Sample cites here \cite{krizhevsky2012imagenet,horvath2018dna} and \cite{pyrkov2018quantitative}, \cite{wang2018face}, \cite{lecun2015deep,zhang2018fine,ravi2016deep}. + + +\section{Lists}\label{sec9} + +List in \LaTeX{} can be of three types: numbered, bulleted and unnumbered. ``enumerate'' environment produces numbered list, +``itemize'' environment produces bulleted list and ``unlist'' environment produces unnumbered list. +In each environments, new entry is added via the \verb+\item+ command. +\begin{enumerate}[1.] +\item This is the 1st item + +\item Enumerate creates numbered lists, itemize creates bulleted lists and +unnumerate creates unnumbered lists. +\begin{enumerate}[(a)] +\item Second level numbered list. Enumerate creates numbered lists, itemize creates bulleted lists and +description creates unnumbered lists. + +\item Second level numbered list. Enumerate creates numbered lists, itemize creates bulleted lists and +description creates unnumbered lists. +\begin{enumerate}[(ii)] +\item Third level numbered list. Enumerate creates numbered lists, itemize creates bulleted lists and +description creates unnumbered lists. + +\item Third level numbered list. Enumerate creates numbered lists, itemize creates bulleted lists and +description creates unnumbered lists. +\end{enumerate} + +\item Second level numbered list. Enumerate creates numbered lists, itemize creates bulleted lists and +description creates unnumbered lists. + +\item Second level numbered list. Enumerate creates numbered lists, itemize creates bulleted lists and +description creates unnumbered lists. +\end{enumerate} + +\item Enumerate creates numbered lists, itemize creates bulleted lists and +description creates unnumbered lists. + +\item Numbered lists continue. +\end{enumerate} +List in \LaTeX{} can be of three types: enumerate, itemize and description. +In each environments, new entry is added via the \verb+\item+ command. +\begin{itemize} +\item First level bulleted list. This is the 1st item + +\item First level bulleted list. Itemize creates bulleted lists and description creates unnumbered lists. +\begin{itemize} +\item Second level dashed list. Itemize creates bulleted lists and description creates unnumbered lists. + +\item Second level dashed list. Itemize creates bulleted lists and description creates unnumbered lists. + +\item Second level dashed list. Itemize creates bulleted lists and description creates unnumbered lists. +\end{itemize} + +\item First level bulleted list. Itemize creates bulleted lists and description creates unnumbered lists. + +\item First level bulleted list. Bullet lists continue. +\end{itemize} + +\noindent +Example for unnumbered list items: + +\begin{unlist} +\item Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. + +\item Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. + +\item sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. Sample unnumberd list text. +\end{unlist} + +\section{Examples for theorem like environments}\label{sec10} + +For theorem like environments, we require \verb+amsthm+ package. There are three types of predefined theorem styles +exists - \verb+thmstyleone+, \verb+thmstyletwo+ and \verb+thmstylethree+ + +\medskip +\noindent\begin{tabular}{|l|p{13pc}|} +\hline +\verb+thmstyleone+ & Numbered, theorem head in bold font and theorem text in italic style \\\hline +\verb+thmstyletwo+ & Numbered, theorem head in roman font and theorem text in italic style \\\hline +\verb+thmstylethree+ & Numbered, theorem head in bold font and theorem text in roman style \\\hline +\end{tabular} + + +\begin{theorem}[Theorem subhead]\label{thm1} +Example theorem text. Example theorem text. Example theorem text. Example theorem text. Example theorem text. +Example theorem text. Example theorem text. Example theorem text. Example theorem text. Example theorem text. +Example theorem text. +\end{theorem} + +Quisque ullamcorper placerat ipsum. Cras nibh. Morbi vel justo vitae lacus tincidunt ultrices. Lorem ipsum dolor sit +amet, consectetuer adipiscing elit. In hac habitasse platea dictumst. Integer tempus convallis augue. + +\begin{proposition} +Example proposition text. Example proposition text. Example proposition text. Example proposition text. Example proposition text. +Example proposition text. Example proposition text. Example proposition text. Example proposition text. Example proposition text. +\end{proposition} + +Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus +viverra fermentum felis. Donec nonummy pellentesque ante. + +\begin{example} +Phasellus adipiscing semper elit. Proin fermentum massa +ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend +at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. Nunc eleifend consequat lorem. +\end{example} + +Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus +viverra fermentum felis. Donec nonummy pellentesque ante. + +\begin{remark} +Phasellus adipiscing semper elit. Proin fermentum massa +ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend +at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. Nunc eleifend consequat lorem. +\end{remark} + +Quisque ullamcorper placerat ipsum. Cras nibh. Morbi vel justo vitae lacus tincidunt ultrices. Lorem ipsum dolor sit +amet, consectetuer adipiscing elit. In hac habitasse platea dictumst. + +\begin{definition}[Definition sub head] +Example definition text. Example definition text. Example definition text. Example definition text. Example definition text. Example definition text. Example definition text. Example definition text. +\end{definition} + +Apart from the above styles, we have \verb+\begin{proof}+ \verb+...+ \verb+\end{proof}+ environment - with proof head in italic style and body text in roman font with an open square at the end of each proof environment. + +\begin{proof}Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. +\end{proof} + +Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, +pretium at, lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, +vitae ornare odio metus a mi. + +\begin{proof}[Proof of Theorem~{\upshape\ref{thm1}}] +Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. Example for proof text. +\end{proof} + +\noindent +For quote environment, one has to use\newline \verb+\begin{quote}...\end{quote}+ +\begin{quote} +Quoted text example. Aliquam porttitor quam a lacus. Praesent vel arcu ut tortor cursus volutpat. In vitae pede quis diam bibendum placerat. Fusce elementum +convallis neque. Sed dolor orci, scelerisque ac, dapibus nec, ultricies ut, mi. Duis nec dui quis leo sagittis commodo. +\end{quote} +Donec congue. Maecenas urna mi, suscipit in, placerat ut, vestibulum ut, massa. Fusce ultrices nulla et nisl (refer Figure~\ref{fig3}). Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam ligula arcu, +elementum a, venenatis quis, sollicitudin sed, metus. Donec nunc pede, tincidunt in, venenatis vitae, faucibus vel (refer Table~\ref{tab3}). + +\section{Conclusion} + +Some Conclusions here. + +%%%%%%%%%%%%%% + +\begin{appendices} + +\section{Section title of first appendix}\label{sec11} + +Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, +pretium at, lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, +vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. Suspendisse ut massa. Cras nec ante. Pellentesque +a nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam tincidunt +urna. Nulla ullamcorper vestibulum turpis. Pellentesque cursus luctus mauris. + +\subsection{Subsection title of first appendix}\label{subsec4} + +Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, +pretium at, lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, +vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. Suspendisse ut massa. Cras nec ante. Pellentesque +a nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam tincidunt +urna. Nulla ullamcorper vestibulum turpis. Pellentesque cursus luctus mauris. + +\subsubsection{Subsubsection title of first appendix}\label{subsubsec3} + +Example for Unnumbered figure: + +\begin{figure}[!h] +\centering +{\color{black!20}\rule{85pt}{92pt}} +\end{figure} + +Fusce mauris. Vestibulum luctus nibh at lectus. Sed bibendum, nulla a faucibus semper, leo velit ultricies tellus, ac +venenatis arcu wisi vel nisl. Vestibulum diam. Aliquam pellentesque, augue quis sagittis posuere, turpis lacus congue +quam, in hendrerit risus eros eget felis. + +\section{Section title of second appendix}\label{sec12}% + +Fusce mauris. Vestibulum luctus nibh at lectus. Sed bibendum, nulla a faucibus semper, leo velit ultricies tellus, ac +venenatis arcu wisi vel nisl. Vestibulum diam. Aliquam pellentesque, augue quis sagittis posuere, turpis lacus congue +quam, in hendrerit risus eros eget felis. Maecenas eget erat in sapien mattis porttitor. Vestibulum porttitor. Nulla +facilisi. Sed a turpis eu lacus commodo facilisis. Morbi fringilla, wisi in dignissim interdum, justo lectus sagittis dui, et +vehicula libero dui cursus dui. Mauris tempor ligula sed lacus. Duis cursus enim ut augue. Cras ac magna. Cras nulla. + +\begin{figure}[b] +\centering +{\color{black!20}\rule{217pt}{120pt}} +\caption{This is an example for appendix figure\label{fig4}} +\end{figure} + +\subsection{Subsection title of second appendix}\label{subsec5} + +Sed commodo posuere pede. Mauris ut est. Ut quis purus. Sed ac odio. Sed vehicula hendrerit sem. Duis non odio. +Morbi ut dui. Sed accumsan risus eget odio. In hac habitasse platea dictumst. Pellentesque non elit. Fusce sed justo +eu urna porta tincidunt. Mauris felis odio, sollicitudin sed, volutpat a, ornare ac, erat. Morbi quis dolor. Donec +pellentesque, erat ac sagittis semper, nunc dui lobortis purus, quis congue purus metus ultricies tellus. Proin et quam. +Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Praesent sapien turpis, +fermentum vel, eleifend faucibus, vehicula eu, lacus. + +Sed commodo posuere pede. Mauris ut est. Ut quis purus. Sed ac odio. Sed vehicula hendrerit sem. Duis non odio. +Morbi ut dui. Sed accumsan risus eget odio. In hac habitasse platea dictumst. Pellentesque non elit. Fusce sed justo +eu urna porta tincidunt. Mauris felis odio, sollicitudin sed, volutpat a, ornare ac, erat. Morbi quis dolor. Donec +pellentesque, erat ac sagittis semper, nunc dui lobortis purus, quis congue purus metus ultricies tellus. Proin et quam. +Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Praesent sapien turpis, +fermentum vel, eleifend faucibus, vehicula eu, lacus. + +\subsubsection{Subsubsection title of second appendix}\label{subsubsec4} + +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, +felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec +vehicula augue eu neque. + +\begin{table}[t]% +\begin{center} +\begin{minipage}{.52\columnwidth} +\caption{This is an example of Appendix table showing food requirements of army, navy and airforce\label{tab4}}% +\begin{tabular}{@{}lcc@{}}% +\toprule +col1 head & col2 head & col3 head \\ +\midrule +col1 text & col2 text & col3 text \\ +col1 text & col2 text & col3 text \\ +col1 text & col2 text & col3 text \\ +\botrule +\end{tabular} +\end{minipage} +\end{center} +\end{table} + +Example for an equation inside appendix: +\begin{align} + p &= \frac{\gamma^{2} - (n_{C} -1)H}{(n_{C} - 1) + H - 2\gamma} \label{1eq:hybobo:pfromgH} \\ + \theta &= \frac{(\gamma - H)^{2}(\gamma - n_{C} -1)^{2}}{(n_{C} - 1 + H - 2\gamma)^{2}} \label{2eq:hybobo:tfromgH}\; . +\end{align} + +\section{Example of another appendix section}\label{sec13}% + +Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, +pretium at, lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, +vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. Suspendisse ut massa. Cras nec ante. Pellentesque +a nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam tincidunt +urna. Nulla ullamcorper vestibulum turpis. Pellentesque cursus luctus mauris +\begin{equation} +\mathcal{L} = i \bar{\psi} \gamma^\mu D_\mu \psi + - \frac{1}{4} F_{\mu\nu}^a F^{a\mu\nu} - m \bar{\psi} \psi +\label{eq26} +\end{equation} + +Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus +viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus adipiscing semper elit. Proin fermentum massa +ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend +at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. Nunc eleifend consequat lorem. Sed lacinia +nulla vitae enim. Pellentesque tincidunt purus vel magna. Integer non enim. Praesent euismod nunc eu purus. Donec +bibendum quam in tellus. Nullam cursus pulvinar lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum +pellentesque felis eu massa. + +Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus +viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus adipiscing semper elit. Proin fermentum massa +ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend +at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. Nunc eleifend consequat lorem. Sed lacinia +nulla vitae enim. Pellentesque tincidunt purus vel magna. Integer non enim. Praesent euismod nunc eu purus. Donec +bibendum quam in tellus. Nullam cursus pulvinar lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum +pellentesque felis eu massa. + +Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus +viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus adipiscing semper elit. Proin fermentum massa +ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend +at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. Nunc eleifend consequat lorem. Sed lacinia +nulla vitae enim. Pellentesque tincidunt purus vel magna. Integer non enim. Praesent euismod nunc eu purus. Donec +bibendum quam in tellus. Nullam cursus pulvinar lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum +pellentesque felis eu massa. + +Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus +viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus adipiscing semper elit. Proin fermentum massa +ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend +at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. Nunc eleifend consequat lorem. Sed lacinia +nulla vitae enim. Pellentesque tincidunt purus vel magna. Integer non enim. Praesent euismod nunc eu purus. Donec +bibendum quam in tellus. Nullam cursus pulvinar lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum +pellentesque felis eu massa. + +%% Example for unnumbered table inside appendix +\begin{table} +\begin{center} +\begin{minipage}{.52\columnwidth} +\caption{}{% +\begin{tabular}{lcc}% +\toprule +col1 head & col2 head & col3 head \\ +\midrule +col1 text & col2 text & col3 text \\ +col1 text & col2 text & col3 text \\ +col1 text & col2 text & col3 text \\ +\botrule +\end{tabular}}{} +\end{minipage} +\end{center} +\end{table} + +\end{appendices} + +\section{Competing interests} +There is NO Competing Interest. + +\section{Author contributions statement} + +Must include all authors, identified by initials, for example: +S.R. and D.A. conceived the experiment(s), S.R. conducted the experiment(s), S.R. and D.A. analysed the results. S.R. and D.A. wrote and reviewed the manuscript. + +\section{Acknowledgments} +The authors thank the anonymous reviewers for their valuable suggestions. This work is supported in part by funds from the National Science Foundation (NSF: \# 1636933 and \# 1920920). + + +%\bibliographystyle{plain} +%\bibliography{reference} + +\begin{thebibliography}{10} + +\bibitem{bahdanau2014neural} +Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. +\newblock Neural machine translation by jointly learning to align and + translate. +\newblock {\em arXiv preprint arXiv:1409.0473}, 2014. + +\bibitem{horvath2018dna} +Steve Horvath and Kenneth Raj. +\newblock Dna methylation-based biomarkers and the epigenetic clock theory of + ageing. +\newblock {\em Nature Reviews Genetics}, 19(6):371, 2018. + +\bibitem{imboden2018cardiorespiratory} +Mary~T Imboden, Matthew~P Harber, Mitchell~H Whaley, W~Holmes Finch, Derron~L + Bishop, and Leonard~A Kaminsky. +\newblock Cardiorespiratory fitness and mortality in healthy men and women. +\newblock {\em Journal of the American College of Cardiology}, + 72(19):2283--2292, 2018. + +\bibitem{ji20123d} +Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. +\newblock 3d convolutional neural networks for human action recognition. +\newblock {\em IEEE Transactions on Pattern Analysis and Machine Intelligence}, + 35(1):221--231, 2012. + +\bibitem{krizhevsky2012imagenet} +Alex Krizhevsky, Ilya Sutskever, and Geoffrey~E Hinton. +\newblock Imagenet classification with deep convolutional neural networks. +\newblock In {\em Advances in Neural Information Processing Systems}, pages + 1097--1105, 2012. + +\bibitem{lecun2015deep} +Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. +\newblock Deep learning. +\newblock {\em Nature}, 521(7553):436, 2015. + +\bibitem{motiian2017unified} +Saeid Motiian, Marco Piccirilli, Donald~A Adjeroh, and Gianfranco Doretto. +\newblock Unified deep supervised domain adaptation and generalization. +\newblock In {\em Proceedings of the IEEE International Conference on Computer + Vision}, pages 5715--5725, 2017. + +\bibitem{murphy2012machine} +Kevin~P Murphy. +\newblock {\em Machine learning: A probabilistic perspective}. +\newblock MIT press, 2012. + +\bibitem{american2013acsm} +American~College of~Sports~Medicine et~al. +\newblock {\em ACSM's guidelines for exercise testing and prescription}. +\newblock Lippincott Williams \& Wilkins, 2013. + +\bibitem{pyrkov2018quantitative} +Timothy~V Pyrkov, Evgeny Getmantsev, Boris Zhurov, Konstantin Avchaciov, + Mikhail Pyatnitskiy, Leonid Menshikov, Kristina Khodova, Andrei~V Gudkov, and + Peter~O Fedichev. +\newblock Quantitative characterization of biological age and frailty based on + locomotor activity records. +\newblock {\em Aging (Albany NY)}, 10(10):2973, 2018. + +\bibitem{rahman2019centroidb} +Syed~Ashiqur Rahman and Donald Adjeroh. +\newblock Centroid of age neighborhoods: A generalized approach to estimate + biological age. +\newblock In {\em 2019 IEEE EMBS International Conference on Biomedical \& + Health Informatics (BHI)}, pages 1--4. IEEE, 2019. + +\bibitem{ravi2016deep} +Daniele Rav{\`\i}, Charence Wong, Fani Deligianni, Melissa Berthelot, Javier + Andreu-Perez, Benny Lo, and Guang-Zhong Yang. +\newblock Deep learning for health informatics. +\newblock {\em IEEE {J}ournal of {B}iomedical and {H}ealth {I}nformatics}, + 21(1):4--21, 2016. + +\bibitem{wang2018face} +Zongwei Wang, Xu~Tang, Weixin Luo, and Shenghua Gao. +\newblock Face aging with identity-preserved conditional generative adversarial + networks. +\newblock In {\em Proceedings of the IEEE Conference on Computer Vision and + Pattern Recognition}, pages 7939--7947, 2018. + +\bibitem{zhang2018fine} +Ke~Zhang, Na~Liu, Xingfang Yuan, Xinyao Guo, Ce~Gao, and Zhenbing Zhao. +\newblock Fine-grained age estimation in the wild with attention {LSTM} + networks. +\newblock {\em arXiv preprint arXiv:1805.10445}, 2018. + +\end{thebibliography} + + +%USE THE BELOW OPTIONS IN CASE YOU NEED AUTHOR YEAR FORMAT. +%\bibliographystyle{abbrvnat} +%\bibliography{reference} + + + +%% sample for biography with author's image +\begin{biography}{{\color{black!20}\rule{77pt}{77pt}}}{\author{Author Name.} This is sample author biography text. The values provided in the optional argument is meant for sample purpose. There is no need to include the width and height of an image in the optional argument for live articles. This is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text.} +\end{biography} + +%% sample for biography without author's image +\begin{biography}{}{\author{Author Name.} This is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text this is sample author biography text.} +\end{biography} + +\end{document} diff --git a/macros/luatex/latex/luahyphenrules/README.md b/macros/luatex/latex/luahyphenrules/README.md index a73222e514..a55ab78794 100644 --- a/macros/luatex/latex/luahyphenrules/README.md +++ b/macros/luatex/latex/luahyphenrules/README.md @@ -8,8 +8,9 @@ language and load their patterns by means of `language.dat` without loading `babel`. * Javier Bezos -* 2016-12-07 +* 2020-08-28 * Released under the LaTeX Project Public License v1.3c or later See http://www.latex-project.org/lppl.txt * It requires LuaLaTeX +* Version 1.1 just fixes a bug with recent babel versions. diff --git a/macros/luatex/latex/luahyphenrules/luahyphenrules.pdf b/macros/luatex/latex/luahyphenrules/luahyphenrules.pdf Binary files differindex 9f0c9c39ac..e258c1e951 100644 --- a/macros/luatex/latex/luahyphenrules/luahyphenrules.pdf +++ b/macros/luatex/latex/luahyphenrules/luahyphenrules.pdf diff --git a/macros/luatex/latex/luahyphenrules/luahyphenrules.sty b/macros/luatex/latex/luahyphenrules/luahyphenrules.sty index 244bf903c8..5474744c84 100644 --- a/macros/luatex/latex/luahyphenrules/luahyphenrules.sty +++ b/macros/luatex/latex/luahyphenrules/luahyphenrules.sty @@ -2,7 +2,7 @@ % | Typeset luahyphenrules.tex to get the documentation. | % +--------------------------------------------------------+ % -%% Copyright (C) 2016 Javier Bezos +%% Copyright (C) 2016-2020 Javier Bezos %% All Rights Reserved %% http://www.texnia.com %% @@ -21,7 +21,7 @@ %% This work consists of the files luahyphenrules.tex and %% luahyphenrules.sty. \ProvidesPackage{luahyphenrules} - [2016/12/07 v1.0 language.dat reader lualatex] + [2020/08/28 v1.1 language.dat reader lualatex] % The code below is essentially the same as in babel.dtx, with a few % minor changes. See the latter for further info. @@ -38,7 +38,7 @@ \ignorespaces} \def\bbl@manylang{% \ifnum\bbl@last>\@ne - \bbl@info{Non-standard hyphenation setup}% + \PackageInfo{luahyphenrules}{Non-standard hyphenation setup}% \fi \let\bbl@manylang\relax} \def\bbl@process@language#1#2#3{% diff --git a/macros/luatex/latex/luahyphenrules/luahyphenrules.tex b/macros/luatex/latex/luahyphenrules/luahyphenrules.tex index d249d9d9ac..bf95f74f06 100644 --- a/macros/luatex/latex/luahyphenrules/luahyphenrules.tex +++ b/macros/luatex/latex/luahyphenrules/luahyphenrules.tex @@ -2,7 +2,7 @@ % | Typeset this file to get the documentation. | % +--------------------------------------------------+ % -%% Copyright (C) 2016 Javier Bezos +%% Copyright (C) 2016-2020 Javier Bezos %% All Rights Reserved %% http://www.texnia.com %% @@ -22,12 +22,12 @@ %% luahyphenrules.sty. \documentclass[a4paper]{ltxguide} -\title{\textsf{luahyphenrules}\\\large Version 1.0} +\title{\textsf{luahyphenrules}\\\large Version 1.1} \author{Javier Bezos\\\texttt{http://www.texnia.com}} -\date{2016-12-07} - +\date{2020-08-28} + \raggedright \parskip=.8ex \advance\oddsidemargin-.7cm @@ -48,6 +48,7 @@ \newtheorem{warning}{Warning} \newtheorem{note}{Note} \newtheorem{example}{Example} +\newtheorem{changes}{Changes} \begin{document} @@ -56,7 +57,7 @@ {\LARGE Loading patterns in \textsf{lualatex} with \texttt{language.dat}\par} \vspace*{1ex} -Version 1.0 (2016-12-07)\par +Version 1.1 (2020-08-28)\par Javier Bezos (\texttt{http://www.texnia.com}) \vspace*{6ex} @@ -103,12 +104,8 @@ raises and error. This package only works with Lua\LaTeX. \end{warning} +\begin{changes} + \textbf{1.1.} Fixed a bug with recent |babel| versions. +\end{changes} \end{document} - - - - - - - diff --git a/macros/luatex/latex/stricttex/README.md b/macros/luatex/latex/stricttex/README.md new file mode 100644 index 0000000000..330a8fb4b0 --- /dev/null +++ b/macros/luatex/latex/stricttex/README.md @@ -0,0 +1,34 @@ +stricttex -- strictly balanced brackets and numbers in command names +-------------------------------------- + +The stricttex package is a small, LuaLaTeX-only package providing you with +three, sometimes useful features: + * It allows you to make brackets [...] ``strict'', meaning that + each [ must be balanced by a ]. + * It allows you to use numbers in command names, so + that you can do stuff like \newcommand\pi12{\pi_{12}}. + * It allows you to use numbers \emph{and} primes in command names, + so that you can do stuff like \newcommand\pi'12{\pi '_{12}}. + +---------------------------------------------------------------- +stricttex -- strictly balanced brackets and numbers in command names +Version: 0.1beta +Maintained by Sebastian Ørsted +E-mail: sorsted@gmail.com +Released under the LaTeX Project Public License v1.3c or later +See http://www.latex-project.org/lppl.txt +---------------------------------------------------------------- + +Copyright (C) 2020 by Sebastian Ørsted <sorsted@gmail.com> + +The package is loaded via \usepackage{leftindex} + +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License (LPPL), either +version 1.3c of this license or (at your option) any later +version. The latest version of this license is in the file: + +http://www.latex-project.org/lppl.txt + +This work is "maintained" (as per LPPL maintenance status) by +Sebastian Ørsted.
\ No newline at end of file diff --git a/macros/luatex/latex/stricttex/stricttex.lua b/macros/luatex/latex/stricttex/stricttex.lua new file mode 100644 index 0000000000..d8dd962141 --- /dev/null +++ b/macros/luatex/latex/stricttex/stricttex.lua @@ -0,0 +1,162 @@ +-- Functions for making brackets strict: + +stricttexAddBracesToBrackets = function(str) + p = str:find('[%[%]]') + if p then + while true do + if str:sub(p-1,p-1) == '\\' then + q = str:sub(p+1,-1):find('[%[%]]') + if q then + p = p + q + else + break + end + elseif str:sub(p-1,p+1) == '<[>' or str:sub(p-1,p+1) == '<]>' then + str = str:sub(1,p-2) .. str:sub(p,p) .. str:sub(p+2,-1) + q = str:sub(p,-1):find('[%[%]]') + if q then + p = p + q - 1 + else + break + end + elseif str:sub(p,p) == '[' then + str = str:sub(1,p) .. '{' .. str:sub(p+1,-1) + q = str:sub(p+2,-1):find('[%[%]]') + if q then + p = p + q + 1 + else + break + end + else -- i.e. if str:sub(p,p) == ']' + str = str:sub(1,p-1) .. '}' .. str:sub(p,-1) + q = str:sub(p+2,-1):find('[%[%]]') + if q then + p = p + q + 1 + else + break + end + end + end + end + return str +end + +stricttexStrictBracketsOn = function() + luatexbase.add_to_callback( + "process_input_buffer", stricttexAddBracesToBrackets , "stricttexStrictBrackets" + ) + ifStricttexStrictBracketsOn = true +end + +stricttexStrictBracketsOff = function() + if ifStricttexStrictBracketsOn then + luatexbase.remove_from_callback( + "process_input_buffer", "stricttexStrictBrackets" + ) + ifStricttexStrictBracketsOn = false + else + tex.sprint('\\begingroup\\ExplSyntaxOn\\msg_error:nnnn { stricttex } { callback_not_registered } { \\StrictBracketsOn } { \\StrictBracketsOff }\\endgroup') + end +end + +-- Functions for numbers (and possibly primes) in command names + +stricttexReplaceNumbersByLetters = function(str) + str = str:gsub('0','numberZERO') + str = str:gsub('1','numberONE') + str = str:gsub('2','numberTWO') + str = str:gsub('3','numberTHREE') + str = str:gsub('4','numberFOUR') + str = str:gsub('5','numberFIVE') + str = str:gsub('6','numberSIX') + str = str:gsub('7','numberSEVEN') + str = str:gsub('8','numberEIGHT') + str = str:gsub('9','numberNINE') + return str +end + +stricttexFormatNumbers = function(str) + local p, q = str:find('\\%a+%d') + if p then + while true do + local r,s = str:sub(q,-1):find('%w+') -- ^ in the beginning did not work + local newstring = stricttexReplaceNumbersByLetters( str:sub(q,q+s-1) ) + local l = string.len(newstring) + str = str:sub(1, q-1) .. newstring .. str:sub(q+s,-1) + local t = str:sub(q+l,-1):find('\\%a+%d') + if t then + q = q + l + t - 1 + else + break + end + end + end + return str +end + +stricttexReplacePrimes = function(str) + str = str:gsub("'",'symbolPRIME') + return str +end + +stricttexFormatNumbersAndPrimes = function(str) + local p, q = str:find("\\%a+[%d']") + if p then + while true do + local r,s = str:sub(q,-1):find("[%w']+") -- ^ in the beginning did not work + local newstring = stricttexReplaceNumbersByLetters( str:sub(q,q+s-1) ) + mewstring = stricttexReplacePrimes( newstring ) + local l = string.len(newstring) + str = str:sub(1, q-1) .. newstring .. str:sub(q+s,-1) + local t = str:sub(q+l,-1):find("\\%a+[%d']") + if t then + q = q + l + t - 1 + else + break + end + end + end + return str +end + +stricttexNumbersInCommandsOn = function() + if ifStricttexNumbersAndPrimesInCommands then + stricttexNumbersAndPrimesInCommandsOff() + end + luatexbase.add_to_callback( + "process_input_buffer", stricttexFormatNumbers , "stricttexNumbersInCommands" + ) + ifStricttexNumbersInCommands = true +end + +stricttexNumbersInCommandsOff = function() + if ifStricttexNumbersInCommands then + luatexbase.remove_from_callback( + "process_input_buffer", "stricttexNumbersInCommands" + ) + ifStricttexNumbersInCommands = false + else + tex.sprint('\\begingroup\\ExplSyntaxOn\\msg_error:nnnn { stricttex } { callback_not_registered } { \\NumbersInCommandsOn } { \\NumbersInCommandsOff }\\endgroup') + end +end + +stricttexNumbersAndPrimesInCommandsOn = function() + if ifStricttexNumbersInCommands then + stricttexNumbersInCommandsOff() + end + luatexbase.add_to_callback( + "process_input_buffer", stricttexFormatNumbersAndPrimes , "stricttexNumbersAndPrimesInCommands" + ) + ifStricttexNumbersAndPrimesInCommandsOn = true +end + +stricttexNumbersAndPrimesInCommandsOff = function() + if ifStricttexNumbersAndPrimesInCommandsOn then + luatexbase.remove_from_callback( + "process_input_buffer", "stricttexNumbersAndPrimesInCommands" + ) + ifStricttexNumbersAndPrimesInCommandsOn = false + else + tex.sprint('\\begingroup\\ExplSyntaxOn\\msg_error:nnnn { stricttex } { callback_not_registered } { \\NumbersAndPrimesInCommandsOn } { \\NumbersAndPrimesInCommandsOff }\\endgroup') + end +end
\ No newline at end of file diff --git a/macros/luatex/latex/stricttex/stricttex.pdf b/macros/luatex/latex/stricttex/stricttex.pdf Binary files differnew file mode 100644 index 0000000000..4003955e80 --- /dev/null +++ b/macros/luatex/latex/stricttex/stricttex.pdf diff --git a/macros/luatex/latex/stricttex/stricttex.sty b/macros/luatex/latex/stricttex/stricttex.sty new file mode 100644 index 0000000000..8a3e9874dd --- /dev/null +++ b/macros/luatex/latex/stricttex/stricttex.sty @@ -0,0 +1,48 @@ +\ProvidesExplPackage{stricttex}{2020/07/28}{0.1beta}{} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% stricttex -- strictly paired brackets and numbers in command names % +% https://ctan.org/pkg/semantex % +% (C) 2020 Sebastian Ørsted % +% sorsted@gmail.com % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\msg_new:nnn { stricttex } { not_luatex } { This~package~only~works~with~LuaTeX;~the~current~TeX~run~has~been~terminated. } + +\msg_new:nnn { stricttex } { callback_not_registered } { Found~#2 with~no~preceding~#1 } + +\sys_if_engine_luatex:F { \msg_fatal:nn { stricttex } { not_luatex } } + +\lua_now:e { require('stricttex.lua') } + +\cs_new_protected:Npn\StrictBracketsOn +{ + \lua_now:e { stricttexStrictBracketsOn() } +} + +\cs_new_protected:Npn\StrictBracketsOff +{ + \lua_now:e { stricttexStrictBracketsOff() } +} + +\cs_new_protected:Npn\NumbersInCommandsOn +{ + \lua_now:e { stricttexNumbersInCommandsOn() } +} + +\cs_new_protected:Npn\NumbersInCommandsOff +{ + \lua_now:e { stricttexNumbersInCommandsOff() } +} + +\cs_new_protected:Npn\NumbersAndPrimesInCommandsOn +{ + \lua_now:e { stricttexNumbersAndPrimesInCommandsOn() } +} + +\cs_new_protected:Npn\NumbersAndPrimesInCommandsOff +{ + \lua_now:e { stricttexNumbersAndPrimesInCommandsOff() } +}
\ No newline at end of file diff --git a/macros/luatex/latex/stricttex/stricttex.tex b/macros/luatex/latex/stricttex/stricttex.tex new file mode 100644 index 0000000000..57242faa5c --- /dev/null +++ b/macros/luatex/latex/stricttex/stricttex.tex @@ -0,0 +1,132 @@ +\documentclass[a4paper,article,oneside,10pt]{memoir} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{babel} +\usepackage{kpfonts,microtype} + +\usepackage{listings,xspace,showexpl} + +\usepackage[hidelinks]{hyperref} + +\frenchspacing + + +\lstset{ + language=[LaTeX]TeX, + basicstyle=\ttfamily\small, + commentstyle=\itshape\ttfamily\small, + escapechar=\%, + alsoletter={\\,0,1,2,3,4,5,6,7,8,9,'}, + breaklines=true, + breakindent={0pt}, + captionpos=t, + tabsize=2, + inputencoding=utf8, + extendedchars=true, + mathescape=true, +} + +\newcommand\strctttex{\texttt{stricttex}\xspace} + +\title{\strctttex\ -- strictly balanced brackets and numbers in command names (v0.1$\beta$)} +\date{\today} +\author{Sebastian \O rsted (\href{mailto:sorsted@gmail.com}{sorsted@gmail.com})} + +\hypersetup{ + pdfauthor={Sebastian \O rsted}, + pdftitle={leftindex -- left indices with better spacing}, +} + +\begin{document} + +\maketitle + +\noindent +The \strctttex package is a small, Lua\LaTeX-only package providing you with three, sometimes useful features: +\begin{itemize} + \item It allows you to make brackets \lstinline![...]! ``strict'', meaning that each~`\lstinline![! + must be balanced by a~\lstinline!]!. + \item It allows you to use numbers in command names, so + that you can do stuff like~\lstinline!\newcommand\pi12{\pi_{12}}!. + \item It allows you to use numbers \emph{and} primes in command names, + so that you can do stuff like~\lstinline!\newcommand\pi'12{\pi '_{12}}!. +\end{itemize} + +\chapter*{Making brackets strict} + +The package provides the commands +\begin{lstlisting} +\StrictBracketsOn +\StrictBracketsOff +\end{lstlisting} +Between these two commands, +all left brackets~\lstinline![! are replaced by~\lstinline![$\{$!, +and all right brackets~\lstinline!]! by~\lstinline!$\}$]!. This forces the brackets to be properly balanced. This is extremely useful in come packages, such as Seman\TeX, where you can then +do things that would otherwise cause errors, e.g. +\begin{lstlisting}[mathescape=false] +\StrictBracketsOn + $ \vf[upper=\vx[upper=2,lower=3]] $ +\StrictBracketsOff +\end{lstlisting} +Normal brackets can still be accessed by using the standard \TeX\ commands +\lstinline!\lbrack! and \lstinline!\rbrack!. +The replacement algorithm has two important exceptions: +\begin{itemize} + \item \emph{No} replacements apply to the commands~\lstinline!\[...\]!, which can therefore be used as normal. + \item If you absolute \emph{need} ordinary brackets, + you can write \lstinline!<[>! and~\lstinline!<]>! to access them. This works + in all contexts, so e.g. \lstinline!\<[>! and~\lstinline!\<]>! will work + just like \lstinline!\[! and~\lstinline!\]!. +\end{itemize} + +\newpage + +\chapter*{Allowing numbers (and possibly primes) in commands} + +The package provides the commands +\begin{lstlisting} +\NumbersInCommandsOn +\NumbersInCommandsOff +\NumbersAndPrimesInCommandsOn +\NumbersAndPrimesInCommandsOff +\end{lstlisting} +The first pair of commands allows you to define commands containing numbers. So the following will work: +\begin{lstlisting} +\NumbersInCommandsOn +\newcommand\pi12{\pi_{12}} +\newcommand\pi13{\pi_{13}} +\newcommand\pi23{\pi_{23}} +\newcommand\pi12comma34{\pi_{12,34}} +\NumbersInCommandsOff +\end{lstlisting} +Internally, what happens is that if a command is immediately followed by a number, +that numbers is replaced by a text string, i.e. +\lstinline!0!~gets replaced by~\lstinline!numberZERO!, +\lstinline!1!~gets replaced by~\lstinline!numberONE!, +etc. These long names have been chosen to prevent name clashes. +In other words, the code that is eventually passed to \TeX\ is +\begin{lstlisting} +\newcommand\pinumberONEnumberTWO{\pi_{12}} +\newcommand\pinumberONEnumberTHREE{\pi_{13}} +\newcommand\pinumberTWOnumberTHREE{\pi_{23}} +\newcommand\pinumberONEnumberTWOcommanumberTHREEnumberFOUR{\pi_{12,34}} +\end{lstlisting} +Needless to say, stuff like \lstinline!\kern11pt! will no longer work and will have to be +replaced by~\lstinline!\kern 11pt!. + +The commands \lstinline!\NumbersAndPrimesInCommandsOn! and~\lstinline!\...Off! work almost the same way, except they also allow +you to use \emph{primes}. So the following will work: +\begin{lstlisting} +\NumbersAndPrimesInCommandsOn +\newcommand\pi'12{\pi '_{12}} +\NumbersAndPrimesInCommandsOff +\end{lstlisting} +Internally, the algorithm works as before, except the prime~\lstinline!'! gets +replaced by \lstinline!symbolPRIME!. So what is eventually passed to \TeX\ is +\begin{lstlisting} +\newcommand\pisymbolPRIMEnumberONEnumberTWO{\pi '_{12}} +\end{lstlisting} + + +\end{document}
\ No newline at end of file |