Added tex folder
This commit is contained in:
599
tex/1_submission/doc/elsdoc-cas.tex
Normal file
599
tex/1_submission/doc/elsdoc-cas.tex
Normal file
@ -0,0 +1,599 @@
|
||||
%%
|
||||
%% Copyright 2019-2020 Elsevier Ltd
|
||||
%%
|
||||
%% This file is part of the 'CAS 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 'CAS Bundle' is
|
||||
%% given in the file `manifest.txt'.
|
||||
%%
|
||||
%% $Id: elsdoc-cas.tex 35 2020-02-25 09:04:59Z rishi $
|
||||
%%
|
||||
\documentclass[a4paper,12pt]{article}
|
||||
|
||||
\usepackage[xcolor,qtwo]{rvdtx}
|
||||
\usepackage{multicol}
|
||||
\usepackage{color}
|
||||
\usepackage{xspace}
|
||||
\usepackage{pdfwidgets}
|
||||
\usepackage{enumerate}
|
||||
|
||||
\def\ttdefault{cmtt}
|
||||
|
||||
\headsep4pc
|
||||
|
||||
\makeatletter
|
||||
\def\bs{\expandafter\@gobble\string\\}
|
||||
\def\lb{\expandafter\@gobble\string\{}
|
||||
\def\rb{\expandafter\@gobble\string\}}
|
||||
\def\@pdfauthor{C.V.Radhakrishnan}
|
||||
\def\@pdftitle{CAS templates: A documentation}
|
||||
\def\@pdfsubject{Document formatting with CAS template}
|
||||
\def\@pdfkeywords{LaTeX, Elsevier Ltd, document class}
|
||||
\def\file#1{\textsf{#1}\xspace}
|
||||
|
||||
%\def\LastPage{19}
|
||||
|
||||
\DeclareRobustCommand{\LaTeX}{L\kern-.26em%
|
||||
{\sbox\z@ T%
|
||||
\vbox to\ht\z@{\hbox{\check@mathfonts
|
||||
\fontsize\sf@size\z@
|
||||
\math@fontsfalse\selectfont
|
||||
A\,}%
|
||||
\vss}%
|
||||
}%
|
||||
\kern-.15em%
|
||||
\TeX}
|
||||
\makeatother
|
||||
|
||||
\def\figurename{Clip}
|
||||
|
||||
\setcounter{tocdepth}{1}
|
||||
|
||||
|
||||
\AtBeginDocument{
|
||||
\setcounter{topnumber}{2}
|
||||
\setcounter{bottomnumber}{2}
|
||||
\setcounter{totalnumber}{4}
|
||||
\renewcommand{\topfraction}{0.85}
|
||||
\renewcommand{\bottomfraction}{0.85}
|
||||
\renewcommand{\textfraction}{0.15}
|
||||
\renewcommand{\floatpagefraction}{0.7}
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\def\testa{This is a specimen document. }
|
||||
\def\testc{\testa\testa\testa\testa}
|
||||
\def\testb{\testc\testc\testc\testc\testc}
|
||||
\long\def\test{\testb\par\testb\par\testb\par}
|
||||
|
||||
\pinclude{\copy\contbox\printSq{\LastPage}}
|
||||
|
||||
\title{Documentation for Elsevier's Complex Article Service (CAS)
|
||||
\LaTeX\ template}
|
||||
|
||||
\author{Elsevier Ltd}
|
||||
\contact{elsarticle@stmdocs.in}
|
||||
|
||||
\version{1.0}
|
||||
\date{\today}
|
||||
\maketitle
|
||||
|
||||
\section{Introduction}
|
||||
Two classfiles namely \file{cas-sc.cls} and \file{cas-dc.cls} were
|
||||
written for typesetting articles submitted in journals of Elsevier's
|
||||
Complex Article Service (CAS) workflow.
|
||||
|
||||
\subsection{Usage}
|
||||
\begin{enumerate}
|
||||
\item \file{cas-sc.cls} for single column journals.
|
||||
|
||||
\begin{vquote}
|
||||
\documentclass[<options>]{cas-sc}
|
||||
\end{vquote}
|
||||
\item \file{cas-dc.cls} for single column journals.
|
||||
|
||||
\begin{vquote}
|
||||
\documentclass[<options>]{cas-dc}
|
||||
\end{vquote}
|
||||
\end{enumerate}
|
||||
and have an option longmktitle to handle long front matter.
|
||||
|
||||
\section{Front matter}
|
||||
|
||||
\begin{vquote}
|
||||
\title [mode = title]{This is a specimen $a_b$ title}
|
||||
\tnotemark[1,2]
|
||||
|
||||
\tnotetext[1]{This document is the results of the research
|
||||
project funded by the National Science Foundation.}
|
||||
|
||||
\tnotetext[2]{The second title footnote which is a longer text
|
||||
matter to fill through the whole text width and overflow into
|
||||
another line in the footnotes area of the first page.}
|
||||
|
||||
\author[1,3]{CV Radhakrishnan}[type=editor,
|
||||
auid=000,bioid=1,
|
||||
prefix=Sir,
|
||||
role=Researcher,
|
||||
orcid=0000-0001-7511-2910]
|
||||
\cormark[1]
|
||||
\fnmark[1]
|
||||
\ead{cvr_1@tug.org.in}
|
||||
\ead[url]{www.cvr.cc, cvr@sayahna.org}
|
||||
\end{vquote}
|
||||
|
||||
\begin{vquote}
|
||||
|
||||
\credit{Conceptualization of this study, Methodology,
|
||||
Software}
|
||||
|
||||
\address[1]{Elsevier B.V., Radarweg 29, 1043 NX Amsterdam,
|
||||
The Netherlands}
|
||||
|
||||
\author[2,4]{Han Theh Thanh}[style=chinese]
|
||||
|
||||
\author[2,3]{CV Rajagopal}[%
|
||||
role=Co-ordinator,
|
||||
suffix=Jr,
|
||||
]
|
||||
\fnmark[2]
|
||||
\ead{cvr3@sayahna.org}
|
||||
\ead[URL]{www.sayahna.org}
|
||||
|
||||
\credit{Data curation, Writing - Original draft preparation}
|
||||
|
||||
\address[2]{Sayahna Foundation, Jagathy, Trivandrum 695014,
|
||||
India}
|
||||
|
||||
\author[1,3]{Rishi T.}
|
||||
\cormark[2]
|
||||
\fnmark[1,3]
|
||||
\ead{rishi@stmdocs.in}
|
||||
\ead[URL]{www.stmdocs.in}
|
||||
|
||||
\address[3]{STM Document Engineering Pvt Ltd., Mepukada,
|
||||
Malayinkil, Trivandrum 695571, India}
|
||||
|
||||
\cortext[cor1]{Corresponding author}
|
||||
\cortext[cor2]{Principal corresponding author}
|
||||
\fntext[fn1]{This is the first author footnote. but is common
|
||||
to third author as well.}
|
||||
\fntext[fn2]{Another author footnote, this is a very long
|
||||
footnote and it should be a really long footnote. But this
|
||||
footnote is not yet sufficiently long enough to make two lines
|
||||
of footnote text.}
|
||||
\end{vquote}
|
||||
|
||||
\begin{vquote}
|
||||
\nonumnote{This note has no numbers. In this work we
|
||||
demonstrate $a_b$ the formation Y\_1 of a new type of
|
||||
polariton on the interface between a cuprous oxide slab
|
||||
and a polystyrene micro-sphere placed on the slab.
|
||||
}
|
||||
|
||||
\begin{abstract}[S U M M A R Y]
|
||||
This template helps you to create a properly formatted
|
||||
\LaTeX\ manuscript.
|
||||
|
||||
\noindent\texttt{\textbackslash begin{abstract}} \dots
|
||||
\texttt{\textbackslash end{abstract}} and
|
||||
\verb+\begin{keyword}+ \verb+...+ \verb+\end{keyword}+
|
||||
which contain the abstract and keywords respectively.
|
||||
Each keyword shall be separated by a \verb+\sep+ command.
|
||||
\end{abstract}
|
||||
|
||||
\begin{keywords}
|
||||
quadrupole exciton \sep polariton \sep \WGM \sep \BEC
|
||||
\end{keywords}
|
||||
|
||||
\maketitle
|
||||
\end{vquote}
|
||||
|
||||
\begin{figure}
|
||||
\includegraphics[width=\textwidth]{sc-sample.pdf}
|
||||
\caption{Single column output (classfile: cas-sc.cls).}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}
|
||||
\includegraphics[width=\textwidth]{dc-sample.pdf}
|
||||
\caption{Double column output (classfile: cas-dc.cls).}
|
||||
\end{figure}
|
||||
|
||||
\subsection{Title}
|
||||
|
||||
\verb+\title+ command have the below options:
|
||||
\begin{enumerate}
|
||||
\item \verb+title:+ Document title
|
||||
\item \verb+alt:+ Alternate title
|
||||
\item \verb+sub:+ Sub title
|
||||
\item \verb+trans:+ Translated title
|
||||
\item \verb+transsub:+ Translated sub title
|
||||
\end{enumerate}
|
||||
|
||||
\begin{vquote}
|
||||
\title[mode=title]{This is a title}
|
||||
\title[mode=alt]{This is a alternate title}
|
||||
\title[mode=sub]{This is a sub title}
|
||||
\title[mode=trans]{This is a translated title}
|
||||
\title[mode=transsub]{This is a translated sub title}
|
||||
\end{vquote}
|
||||
|
||||
|
||||
\subsection{Author}
|
||||
\verb+\author+ command have the below options:
|
||||
|
||||
\begin{enumerate}
|
||||
\item \verb+auid:+ Author id
|
||||
\item \verb+bioid:+ Biography id
|
||||
\item \verb+alt:+ Alternate author
|
||||
\item \verb+style:+ Style of author name chinese
|
||||
\item \verb+prefix:+ Prefix Sir
|
||||
\item \verb+suffix:+ Suffix
|
||||
\item \verb+degree:+ Degree
|
||||
\item \verb+role:+ Role
|
||||
\item \verb+orcid:+ ORCID
|
||||
\item \verb+collab:+ Collaboration
|
||||
\item \verb+anon:+ Anonymous author
|
||||
\item \verb+deceased:+ Deceased author
|
||||
\item \verb+twitter:+ Twitter account
|
||||
\item \verb+facebook:+ Facebook account
|
||||
\item \verb+linkedin:+ LinkedIn account
|
||||
\item \verb+plus:+ Google plus account
|
||||
\item \verb+gplus:+ Google plus account
|
||||
\end{enumerate}
|
||||
|
||||
\begin{vquote}
|
||||
\author[1,3]{Author Name}[type=editor,
|
||||
auid=000,bioid=1,
|
||||
prefix=Sir,
|
||||
role=Researcher,
|
||||
orcid=0000-0001-7511-2910,
|
||||
facebook=<facebook id>,
|
||||
twitter=<twitter id>,
|
||||
linkedin=<linkedin id>,
|
||||
gplus=<gplus id>]
|
||||
\end{vquote}
|
||||
|
||||
\subsection{Various Marks in the Front Matter}
|
||||
|
||||
The front matter becomes complicated due to various kinds
|
||||
of notes and marks to the title and author names. Marks in
|
||||
the title will be denoted by a star ($\star$) mark;
|
||||
footnotes are denoted by super scripted Arabic numerals,
|
||||
corresponding author by of an Conformal asterisk (*) mark.
|
||||
|
||||
\subsubsection{Title marks}
|
||||
|
||||
Title mark can be entered by the command, \verb+\tnotemark[<num>]+
|
||||
and the corresponding text can be entered with the command
|
||||
\verb+\tnotetext[<num>]+ \verb+{<text>}+. An example will be:
|
||||
|
||||
\begin{vquote}
|
||||
\title[mode=title]{Leveraging social media news to predict
|
||||
stock index movement using RNN-boost}
|
||||
|
||||
\tnotemark[1,2]
|
||||
|
||||
\tnotetext[1]{This document is the results of the research
|
||||
project funded by the National Science Foundation.}
|
||||
|
||||
\tnotetext[2]{The second title footnote which is a longer
|
||||
text matter to fill through the whole text width and
|
||||
overflow into another line in the footnotes area of
|
||||
the first page.}
|
||||
\end{vquote}
|
||||
|
||||
\verb+\tnotetext+ and \verb+\tnotemark+ can be anywhere in
|
||||
the front matter, but shall be before \verb+\maketitle+ command.
|
||||
|
||||
\subsubsection{Author marks}
|
||||
|
||||
Author names can have many kinds of marks and notes:
|
||||
|
||||
\begin{vquote}
|
||||
footnote mark : \fnmark[<num>]
|
||||
footnote text : \fntext[<num>]{<text>}
|
||||
affiliation mark : \author[<num>]
|
||||
email : \ead{<emailid>}
|
||||
url : \ead[url]{<url>}
|
||||
corresponding author mark : \cormark[<num>]
|
||||
corresponding author text : \cortext[<num>]{<text>}
|
||||
\end{vquote}
|
||||
|
||||
\subsubsection{Other marks}
|
||||
|
||||
At times, authors want footnotes which leave no marks in
|
||||
the author names. The note text shall be listed as part of
|
||||
the front matter notes. Class files provides
|
||||
\verb+\nonumnote+ for this purpose. The usage
|
||||
|
||||
\begin{vquote}
|
||||
\nonumnote{<text>}
|
||||
\end{vquote}
|
||||
|
||||
\noindent and should be entered anywhere before the \verb+\maketitle+
|
||||
command for this to take effect.
|
||||
|
||||
\subsection{Abstract and Keywords}
|
||||
|
||||
Abstract shall be entered in an environment that starts
|
||||
with \verb+\begin{abstract}+ and ends with
|
||||
\verb+\end{abstract}+. Longer abstracts spanning more than
|
||||
one page is also possible in Class file even in double
|
||||
column mode. We need to invoke longmktitle option in the
|
||||
class loading line for this to happen smoothly.
|
||||
|
||||
The key words are enclosed in a \verb+{keyword}+
|
||||
environment.
|
||||
|
||||
\begin{vquote}
|
||||
\begin{abstract}
|
||||
This is a abstract. \lipsum[3]
|
||||
\end{abstract}
|
||||
|
||||
\begin{keywords}
|
||||
First keyword \sep Second keyword \sep Third
|
||||
keyword \sep Fourth keyword
|
||||
\end{keywords}
|
||||
\end{vquote}
|
||||
|
||||
\section{Main Matter}
|
||||
\subsection{Tables}
|
||||
\subsubsection{Normal tables}
|
||||
|
||||
\begin{vquote}
|
||||
\begin{table}
|
||||
\caption{This is a test caption.}
|
||||
\begin{tabular*}{\tblwidth}{@{} LLLL@{} }
|
||||
\toprule
|
||||
Col 1 & Col 2\\
|
||||
\midrule
|
||||
12345 & 12345\\
|
||||
12345 & 12345\\
|
||||
12345 & 12345\\
|
||||
\bottomrule
|
||||
\end{tabular*}
|
||||
\end{table}
|
||||
\end{vquote}
|
||||
|
||||
\subsubsection{Span tables}
|
||||
|
||||
\begin{vquote}
|
||||
\begin{table*}[width=.9\textwidth,cols=4,pos=h]
|
||||
\caption{This is a test caption.}
|
||||
\begin{tabular*}{\tblwidth}{@{} LLLLLL@{} }
|
||||
\toprule
|
||||
Col 1 & Col 2 & Col 3 & Col4 & Col5 & Col6 & Col7\\
|
||||
\midrule
|
||||
12345 & 12345 & 123 & 12345 & 123 & 12345 & 123 \\
|
||||
12345 & 12345 & 123 & 12345 & 123 & 12345 & 123 \\
|
||||
12345 & 12345 & 123 & 12345 & 123 & 12345 & 123 \\
|
||||
\bottomrule
|
||||
\end{tabular*}
|
||||
\end{table*}
|
||||
\end{vquote}
|
||||
|
||||
\subsection{Figures}
|
||||
\subsubsection{Normal figures}
|
||||
\begin{vquote}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[scale=.75]{Fig1.pdf}
|
||||
\caption{The evanescent light - $1S$ quadrupole coupling
|
||||
($g_{1,l}$) scaled to the bulk exciton-photon coupling
|
||||
($g_{1,2}$). The size parameter $kr_{0}$ is denoted as $x$ and
|
||||
the \PMS is placed directly on the cuprous oxide sample ($\delta
|
||||
r=0$, See also Fig. \protect\ref{FIG:2}).}
|
||||
\label{FIG:1}
|
||||
\end{figure}
|
||||
\end{vquote}
|
||||
|
||||
\subsubsection{Span figures}
|
||||
|
||||
\begin{vquote}
|
||||
\begin{figure*}
|
||||
\centering
|
||||
\includegraphics[width=\textwidth,height=2in]{Fig2.pdf}
|
||||
\caption{Schematic of formation of the evanescent polariton on
|
||||
linear chain of \PMS. The actual dispersion is determined by
|
||||
the ratio of two coupling parameters such as exciton-\WGM
|
||||
coupling and \WGM-\WGM coupling between the microspheres.}
|
||||
\label{FIG:2}
|
||||
\end{figure*}\end{vquote}
|
||||
|
||||
\subsection{Theorem and theorem like environments}
|
||||
|
||||
CAS class file provides a few hooks to format theorems and
|
||||
theorem like environments with ease. All commands the
|
||||
options that are used with \verb+\newtheorem+ command will work
|
||||
exactly in the same manner. Class file provides three
|
||||
commands to format theorem or theorem like environments:
|
||||
|
||||
\begin{enumerate}
|
||||
\item \verb+\newtheorem+ command formats a theorem in
|
||||
\LaTeX's default style with italicized font for theorem
|
||||
statement, bold weight for theorem heading and theorem
|
||||
number typeset at the right of theorem heading. It also
|
||||
optionally accepts an argument which will be printed as an
|
||||
extra heading in parentheses. Here is an example coding and
|
||||
output:
|
||||
|
||||
\begin{vquote}
|
||||
\newtheorem{theorem}{Theorem}
|
||||
\begin{theorem}\label{thm}
|
||||
The \WGM evanescent field penetration depth into the
|
||||
cuprous oxide adjacent crystal is much larger than the
|
||||
\QE radius:
|
||||
\begin{equation*}
|
||||
\lambda_{1S}/2 \pi \left({\epsilon_{Cu2O}-1}
|
||||
\right)^{1/2} = 414 \mbox{ \AA} \gg a_B = 4.6
|
||||
\mbox{ \AA}
|
||||
\end{equation*}
|
||||
\end{theorem}
|
||||
\end{vquote}
|
||||
|
||||
\item \verb+\newdefinition+ command does exactly the same
|
||||
thing as with except that the body font is up-shape instead
|
||||
of italic. See the example below:
|
||||
|
||||
\begin{vquote}
|
||||
\newdefinition{definition}{Definition}
|
||||
\begin{definition}
|
||||
The bulk and evanescent polaritons in cuprous oxide
|
||||
are formed through the quadrupole part of the light-matter
|
||||
interaction:
|
||||
\begin{equation*}
|
||||
H_{int} = \frac{i e }{m \omega_{1S}} {\bf E}_{i,s}
|
||||
\cdot {\bf p}
|
||||
\end{equation*}
|
||||
\end{definition}
|
||||
\end{vquote}
|
||||
|
||||
\item \verb+\newproof+ command helps to define proof and
|
||||
custom proof environments without counters as provided in
|
||||
the example code. Given below is an example of proof of
|
||||
theorem kind.
|
||||
|
||||
\begin{vquote}
|
||||
\newproof{pot}{Proof of Theorem \ref{thm}}
|
||||
\begin{pot}
|
||||
The photon part of the polariton trapped inside the \PMS
|
||||
moves as it would move in a micro-cavity of the effective
|
||||
modal volume $V \ll 4 \pi r_{0}^{3} /3$. Consequently, it
|
||||
can escape through the evanescent field. This evanescent
|
||||
field essentially has a quantum origin and is due to
|
||||
tunneling through the potential caused by dielectric
|
||||
mismatch on the \PMS surface. Therefore, we define the
|
||||
\emph{evanescent} polariton (\EP) as an evanescent light -
|
||||
\QE coherent superposition.
|
||||
\end{pot}
|
||||
\end{vquote}
|
||||
|
||||
\end{enumerate}
|
||||
|
||||
\subsection{Enumerated and Itemized Lists}
|
||||
|
||||
CAS class files provides an extended list processing macros
|
||||
which makes the usage a bit more user friendly than the
|
||||
default LaTeX list macros. With an optional argument to the
|
||||
\verb+\begin{enumerate}+ command, you can change the list
|
||||
counter type and its attributes. You can see the coding and
|
||||
typeset copy.
|
||||
|
||||
\begin{vquote}
|
||||
\begin{enumerate}[1.]
|
||||
\item The enumerate environment starts with an optional
|
||||
argument `1.' so that the item counter will be suffixed
|
||||
by a period as in the optional argument.
|
||||
\item If you provide a closing parenthesis to the number in the
|
||||
optional argument, the output will have closing
|
||||
parenthesis for all the item counters.
|
||||
\item You can use `(a)' for alphabetical counter and `(i)' for
|
||||
roman counter.
|
||||
\begin{enumerate}[a)]
|
||||
\item Another level of list with alphabetical counter.
|
||||
\item One more item before we start another.
|
||||
\begin{enumerate}[(i)]
|
||||
\item This item has roman numeral counter.
|
||||
\end{vquote}
|
||||
|
||||
\begin{vquote}
|
||||
\item Another one before we close the third level.
|
||||
\end{enumerate}
|
||||
\item Third item in second level.
|
||||
\end{enumerate}
|
||||
\item All list items conclude with this step.
|
||||
\end{enumerate}
|
||||
|
||||
\section{Biography}
|
||||
|
||||
\verb+\bio+ command have the below options:
|
||||
\begin{enumerate}
|
||||
\item \verb+width:+ Width of the author photo (default is 1in).
|
||||
\item \verb+pos:+ Position of author photo.
|
||||
\end{enumerate}
|
||||
|
||||
\begin{vquote}
|
||||
\bio[width=10mm,pos=l]{tuglogo.jpg}
|
||||
\textbf{Another Biography:}
|
||||
Recent experimental \cite{HARA:2005} and theoretical
|
||||
\cite{DEYCH:2006} studies have shown that the \WGM can travel
|
||||
along the chain as "heavy photons". Therefore the \WGM
|
||||
acquires the spatial dispersion, and the evanescent
|
||||
quadrupole polariton has the form (See Fig.\ref{FIG:3}):
|
||||
\endbio
|
||||
\end{vquote}
|
||||
|
||||
\section[CRediT...]{CRediT authorship contribution statement}
|
||||
|
||||
Give the authorship contribution after each author as
|
||||
|
||||
\begin{vquote}
|
||||
\credit{Conceptualization of this study, Methodology,
|
||||
Software}
|
||||
\end{vquote}
|
||||
|
||||
To print the details use \verb+\printcredits+
|
||||
|
||||
\begin{vquote}
|
||||
\author[1,3]{V. {{\=A}}nand Rawat}[auid=000,
|
||||
bioid=1,
|
||||
prefix=Sir,
|
||||
role=Researcher,
|
||||
orcid=0000-0001-7511-2910]
|
||||
\end{vquote}
|
||||
|
||||
\begin{vquote}
|
||||
\cormark[1]
|
||||
\fnmark[1]
|
||||
\ead{cvr_1@tug.org.in}
|
||||
\ead[url]{www.cvr.cc, www.tug.org.in}
|
||||
|
||||
\credit{Conceptualization of this study, Methodology,
|
||||
Software}
|
||||
|
||||
\address[1]{Indian \TeX{} Users Group, Trivandrum 695014,
|
||||
India}
|
||||
|
||||
\author[2,4]{Han Theh Thanh}[style=chinese]
|
||||
|
||||
\author[2,3]{T. Rishi Nair}[role=Co-ordinator,
|
||||
suffix=Jr]
|
||||
\fnmark[2]
|
||||
\ead{rishi@sayahna.org}
|
||||
\ead[URL]{www.sayahna.org}
|
||||
|
||||
\credit{Data curation, Writing - Original draft preparation}
|
||||
|
||||
. . .
|
||||
. . .
|
||||
. . .
|
||||
\printcredits
|
||||
\end{vquote}
|
||||
|
||||
\section{Bibliography}
|
||||
|
||||
For CAS categories, two reference models are recommended.
|
||||
They are \file{model1-num-names.bst} and \file{model2-names.bst}.
|
||||
Former will format the reference list and their citations according to
|
||||
numbered scheme whereas the latter will format according name-date or
|
||||
author-year style. Authors are requested to choose any one of these
|
||||
according to the journal style. You may download these from
|
||||
|
||||
The above bsts are available in the following location for you to
|
||||
download:
|
||||
|
||||
\url{https://support.stmdocs.in/wiki/index.php?title=Model-wise_bibliographic_style_files}
|
||||
\hfill $\Box$
|
||||
|
||||
\end{document}
|
||||
|
36
tex/1_submission/doc/makefile
Normal file
36
tex/1_submission/doc/makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# $Id: makefile 37 2020-02-25 09:06:02Z rishi $
|
||||
|
||||
file=elsdoc-cas
|
||||
|
||||
|
||||
all: pdf out
|
||||
make pdf
|
||||
make pdf
|
||||
|
||||
out:
|
||||
if [ -f $(file).out ] ; then cp $(file).out tmp.out; fi ;
|
||||
sed 's/BOOKMARK/dtxmark/g;' tmp.out > x.out; mv x.out tmp.out ;
|
||||
|
||||
pdf:
|
||||
pdflatex $(file).tex
|
||||
|
||||
index:
|
||||
makeindex -s gind.ist -o $(file).ind $(file).idx
|
||||
|
||||
changes:
|
||||
makeindex -s gglo.ist -o $(file).gls $(file).glo
|
||||
|
||||
xview:
|
||||
xpdf -z 200 $(file).pdf &>/dev/null
|
||||
|
||||
view:
|
||||
open -a 'Adobe Reader.app' $(file).pdf
|
||||
|
||||
ins:
|
||||
latex $(file).ins
|
||||
|
||||
diff:
|
||||
diff $(file).sty ../$(file).sty |less
|
||||
|
||||
copy:
|
||||
cp $(file).sty ../
|
384
tex/1_submission/doc/pdfwidgets.sty
Normal file
384
tex/1_submission/doc/pdfwidgets.sty
Normal file
@ -0,0 +1,384 @@
|
||||
%%
|
||||
%% pdfwidgets.sty
|
||||
%%
|
||||
%% $Id: pdfwidgets.sty,v 1.2 2007-10-22 09:45:17 cvr Exp $
|
||||
%%
|
||||
%% (c) C. V. Radhakrishnan <cvr@river-valley.org>
|
||||
%%
|
||||
%% This package may be distributed under the terms of the LaTeX Project
|
||||
%% Public License, as described in lppl.txt in the base LaTeX distribution.
|
||||
%% Either version 1.0 or, at your option, any later version.
|
||||
%%
|
||||
%\RequirePackage[oldstyle]{minion}
|
||||
%\RequirePackage[scaled=.8]{prima}
|
||||
%\RequirePackage[scaled=.9]{lfr}
|
||||
\usepackage[dvipsnames,svgnames]{xcolor}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage{tikz}
|
||||
\usetikzlibrary{backgrounds}
|
||||
|
||||
%\def\thesection{\ifnum\c@section<10
|
||||
% \protect\phantom{0}\fi\arabic{section}}
|
||||
|
||||
\newdimen\lmrgn
|
||||
\def\rulecolor{orange}
|
||||
\def\rulewidth{1pt}
|
||||
\pgfdeclareshape{filledbox}{%
|
||||
\inheritsavedanchors[from=rectangle] % this is nearly a rectangle
|
||||
\inheritanchorborder[from=rectangle]
|
||||
\inheritanchor[from=rectangle]{center}
|
||||
\inheritanchor[from=rectangle]{north}
|
||||
\inheritanchor[from=rectangle]{south}
|
||||
\inheritanchor[from=rectangle]{west}
|
||||
\inheritanchor[from=rectangle]{east}
|
||||
% ... and possibly more
|
||||
\backgroundpath{% this is new
|
||||
% store lower right in xa/ya and upper right in xb/yb
|
||||
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
|
||||
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
|
||||
% compute corner of ``flipped page''
|
||||
\pgf@xc=\pgf@xb \advance\pgf@xc by-5pt % this should be a parameter
|
||||
\pgf@yc=\pgf@yb \advance\pgf@yc by-5pt
|
||||
% construct main path
|
||||
\pgfsetlinewidth{\rulewidth}
|
||||
\pgfsetstrokecolor{\rulecolor}
|
||||
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
|
||||
\pgfsetcornersarced{\pgfpoint{9pt}{9pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}}
|
||||
% \pgfsetcornersarced{\pgforigin}
|
||||
\pgfsetcornersarced{\pgfpoint{9pt}{9pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yb}}
|
||||
\pgfsetcornersarced{\pgfpoint{9pt}{9pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
|
||||
\pgfsetcornersarced{\pgforigin}
|
||||
\pgfpathclose ;
|
||||
% \draw(\pgf@xa,\pgf@ya) -- (\pgf@xa,\pgf@yb) ;
|
||||
}%
|
||||
}
|
||||
\pgfdeclareshape{roundedbox}{%
|
||||
\inheritsavedanchors[from=rectangle] % this is nearly a rectangle
|
||||
\inheritanchorborder[from=rectangle]
|
||||
\inheritanchor[from=rectangle]{center}
|
||||
\inheritanchor[from=rectangle]{north}
|
||||
\inheritanchor[from=rectangle]{south}
|
||||
\inheritanchor[from=rectangle]{west}
|
||||
\inheritanchor[from=rectangle]{east}
|
||||
% ... and possibly more
|
||||
\backgroundpath{% this is new
|
||||
% store lower right in xa/ya and upper right in xb/yb
|
||||
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
|
||||
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
|
||||
% compute corner of ``flipped page''
|
||||
\pgf@xc=\pgf@xb \advance\pgf@xc by-5pt % this should be a parameter
|
||||
\pgf@yc=\pgf@yb \advance\pgf@yc by-5pt
|
||||
% construct main path
|
||||
\pgfsetlinewidth{\rulewidth}
|
||||
\pgfsetstrokecolor{\rulecolor}
|
||||
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
|
||||
\pgfsetcornersarced{\pgfpoint{4pt}{4pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}}
|
||||
% \pgfsetcornersarced{\pgforigin}
|
||||
\pgfsetcornersarced{\pgfpoint{4pt}{4pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yb}}
|
||||
\pgfsetcornersarced{\pgfpoint{4pt}{4pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
|
||||
% \pgfsetcornersarced{\pgforigin}
|
||||
\pgfsetcornersarced{\pgfpoint{4pt}{4pt}}
|
||||
\pgfpathclose ;
|
||||
% \draw(\pgf@xa,\pgf@ya) -- (\pgf@xa,\pgf@yb) ;
|
||||
}%
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
\pgfdeclareshape{buttonbox}{%
|
||||
\inheritsavedanchors[from=rectangle] % this is nearly a rectangle
|
||||
\inheritanchorborder[from=rectangle]
|
||||
\inheritanchor[from=rectangle]{center}
|
||||
\inheritanchor[from=rectangle]{north}
|
||||
\inheritanchor[from=rectangle]{south}
|
||||
\inheritanchor[from=rectangle]{west}
|
||||
\inheritanchor[from=rectangle]{east}
|
||||
% ... and possibly more
|
||||
\backgroundpath{% this is new
|
||||
% store lower right in xa/ya and upper right in xb/yb
|
||||
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
|
||||
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
|
||||
% compute corner of ``flipped page''
|
||||
\pgf@xc=\pgf@xb \advance\pgf@xc by-5pt % this should be a parameter
|
||||
\pgf@yc=\pgf@yb \advance\pgf@yc by-5pt
|
||||
% construct main path
|
||||
\pgfsetlinewidth{1pt}
|
||||
\pgfsetstrokecolor{blue!10}
|
||||
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
|
||||
\pgfsetcornersarced{\pgfpoint{4pt}{4pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}}
|
||||
% \pgfsetcornersarced{\pgforigin}
|
||||
\pgfsetcornersarced{\pgfpoint{4pt}{4pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yb}}
|
||||
\pgfsetcornersarced{\pgforigin}
|
||||
% \pgfsetcornersarced{\pgfpoint{9pt}{9pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
|
||||
\pgfsetcornersarced{\pgforigin}
|
||||
\pgfpathclose ;
|
||||
% \draw(\pgf@xa,\pgf@ya) -- (\pgf@xa,\pgf@yb) ;
|
||||
}%
|
||||
}
|
||||
\pgfdeclareshape{quotedbox}{%
|
||||
\inheritsavedanchors[from=rectangle] % this is nearly a rectangle
|
||||
\inheritanchorborder[from=rectangle]
|
||||
\inheritanchor[from=rectangle]{center}
|
||||
\inheritanchor[from=rectangle]{north}
|
||||
\inheritanchor[from=rectangle]{south}
|
||||
\inheritanchor[from=rectangle]{west}
|
||||
\inheritanchor[from=rectangle]{east}
|
||||
% ... and possibly more
|
||||
\backgroundpath{% this is new
|
||||
% store lower right in xa/ya and upper right in xb/yb
|
||||
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
|
||||
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
|
||||
% compute corner of ``flipped page''
|
||||
\pgf@xc=\pgf@xb \advance\pgf@xc by-5pt % this should be a parameter
|
||||
\pgf@yc=\pgf@yb \advance\pgf@yc by-5pt
|
||||
% construct main path
|
||||
\pgfsetlinewidth{\rulewidth}
|
||||
\pgfsetstrokecolor{\rulecolor}
|
||||
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
|
||||
\pgfsetcornersarced{\pgfpoint{9pt}{9pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}}
|
||||
\pgfsetcornersarced{\pgforigin}
|
||||
% \pgfsetcornersarced{\pgfpoint{4pt}{4pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yb}}
|
||||
\pgfsetcornersarced{\pgforigin}
|
||||
% \pgfsetcornersarced{\pgfpoint{9pt}{9pt}}
|
||||
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
|
||||
\pgfsetcornersarced{\pgforigin}
|
||||
\pgfpathclose ;
|
||||
% \draw(\pgf@xa,\pgf@ya) -- (\pgf@xa,\pgf@yb) ;
|
||||
}%
|
||||
}
|
||||
|
||||
\newcounter{clip}
|
||||
\newdimen\mywidth
|
||||
\mywidth=\linewidth
|
||||
|
||||
\def\src#1{\gdef\@src{#1}}\let\@src\@empty
|
||||
\def\includeclip{\@ifnextchar[{\@includeclip}{\@includeclip[]}}
|
||||
\def\@includeclip[#1]#2#3#4{\par
|
||||
% \vskip.75\baselineskip plus 3pt minus 1pt
|
||||
\computeLinewidth{\mywidth}%
|
||||
\begingroup\color{white}%
|
||||
\noindent%
|
||||
\begin{tikzpicture}
|
||||
%\node[fill=black!10,draw,shape=filledbox,
|
||||
\node[fill=black!10,%
|
||||
draw,
|
||||
shade,%
|
||||
top color=blue!10,
|
||||
bottom color=cyan!5,
|
||||
shape=filledbox,
|
||||
inner sep=\Sep,
|
||||
text width=\Linewidth] (x)
|
||||
{\parbox{\Linewidth}
|
||||
{\ifx\@src\@empty\else\refstepcounter{clip}\label{clip\theclip}%
|
||||
{\par\vskip6pt\color{orange}\sffamily\small
|
||||
~Clip \theclip:\space\@src.}%
|
||||
\par\vskip3pt\fi\normalcolor
|
||||
\includegraphics[width=\Linewidth,page={#2},%
|
||||
viewport={#3},clip=true,#1]{#4}}
|
||||
\hspace*{-10pt}};
|
||||
\end{tikzpicture}
|
||||
\endgroup
|
||||
% \par\vskip.5\baselineskip
|
||||
% plus 3pt minus 1pt
|
||||
}
|
||||
%%
|
||||
%% include clippings from a pdf document:
|
||||
%% #1 => Optional argument for \includegraphics
|
||||
%% #2 => page number
|
||||
%% #3 => co-ordinates
|
||||
%% #4 => file name
|
||||
|
||||
\newenvironment{quoted}{%\bigskip
|
||||
\computeLinewidth{.95\linewidth}%
|
||||
\global\setbox0=\hbox\bgroup
|
||||
\begin{minipage}{.95\linewidth}\color{brown}%
|
||||
\footnotesize\ttfamily\obeyspaces\obeylines}
|
||||
{\end{minipage}\egroup
|
||||
\vskip12pt plus 3pt minus 3pt\noindent\begin{tikzpicture}
|
||||
\node[fill=blue!10,draw,shade,top color=orange!10,
|
||||
bottom color=white,shape=filledbox,
|
||||
inner sep=8pt,text width=\Linewidth] (x) {\box0} ;
|
||||
\end{tikzpicture}%
|
||||
\vskip12pt plus 3pt minus 3pt}
|
||||
|
||||
\newdimen\Linewidth
|
||||
\newdimen\Sep
|
||||
\def\computeLinewidth#1{\global\setlength\Linewidth{#1}%
|
||||
\global\addtolength{\Linewidth}{-2\Sep}}
|
||||
|
||||
\newdimen\npskip
|
||||
\npskip=0mm
|
||||
|
||||
\long\def\NavigationPanel{%
|
||||
\global\setbox0=\hbox\bgroup
|
||||
\begin{minipage}[t][.8125\panelheight][t]{.9\panelwidth}\color{brown}%
|
||||
%\centering
|
||||
\ifx\@pinclude\empty\relax\par\vfill\else
|
||||
\@pinclude\fi
|
||||
%River Valley Technologies
|
||||
\end{minipage}\egroup
|
||||
\Sep=.5cm
|
||||
\@tempdima=\panelwidth
|
||||
\advance\@tempdima-1cm
|
||||
\computeLinewidth{\@tempdima}%
|
||||
\def\rulewidth{.2pt}%
|
||||
\noindent\begin{tikzpicture}
|
||||
\node[fill=blue!10,draw,shade,bottom color=brown!30,
|
||||
top color=white,shape=filledbox,
|
||||
inner sep=\the\Sep,text width=\Linewidth] (x)
|
||||
{\hspace*{\npskip}\box0} ;
|
||||
\end{tikzpicture}%
|
||||
\vspace*{.0125\panelheight}
|
||||
}
|
||||
|
||||
\long\def\pinclude#1{\gdef\@pinclude{#1}}
|
||||
\let\@pinclude\empty
|
||||
|
||||
\def\Strut{\vrule depth 2pt height 10pt width 0pt}
|
||||
\def\pdfButton#1#2{\begin{tikzpicture}
|
||||
\node[fill=blue!10,draw,shade,top color=blue!50,
|
||||
bottom color=white,shape=buttonbox,
|
||||
inner sep=2pt,text width=#1](x)
|
||||
{\parbox{#1}{\centering\Strut#2}}; \end{tikzpicture}}
|
||||
|
||||
\def\vpanel{\def\@linkcolor{blue}%
|
||||
\def\@urlcolor{blue}%
|
||||
\def\@menucolor{blue}%
|
||||
\begin{minipage}[t][\vpanelheight][c]{\paperwidth}%
|
||||
\normalsfcodes%
|
||||
\hspace*{.25cm}
|
||||
\begin{minipage}[c][\vpanelheight][c]{17cm}
|
||||
\parbox[c][27mm][b]{15mm}%
|
||||
% {\includegraphics[width=15mm]{logo4.pdf}}\hfill%\hspace{1cm}
|
||||
{\def\rulecolor{Goldenrod}%
|
||||
\def\rulewidth{1pt}%
|
||||
\begin{tikzpicture}%
|
||||
%\node[fill=black!10,draw,shape=filledbox,
|
||||
\node[fill=white!10,%
|
||||
draw,
|
||||
% shade,%
|
||||
% top color=blue!10,
|
||||
% bottom color=white,
|
||||
shape=roundedbox,
|
||||
inner sep=2mm,
|
||||
text width=13mm] (x)
|
||||
{\includegraphics[width=13mm]{els-logo.pdf}};
|
||||
\end{tikzpicture}}\hfill
|
||||
%
|
||||
\parbox[c][24mm][b]{145mm}%
|
||||
{{\fontsize{30}{30}\selectfont\textsf{\color{white}elsarticle.cls}}
|
||||
\quad{\fontsize{14}{14}\selectfont\sffamily\color{blue!50}
|
||||
A better way to format your submission}}
|
||||
\end{minipage}
|
||||
\hfill
|
||||
\begin{minipage}[c][\vpanelheight][b]{7.9cm}
|
||||
\sffamily\footnotesize
|
||||
\pdfButton{2cm}{\href{mailto:elsarticle@river-valley.com}{BUGS}}
|
||||
\pdfButton{2cm}{\href{http://support.river-valley.com}{SUPPORT}}
|
||||
\pdfButton{2cm}%
|
||||
{\href{http://www.elsevier.com/locate/latex}%
|
||||
{RESOURCES}}
|
||||
% \pdfButton{2cm}{\Acrobatmenu{GoToPage}{GoTo}}
|
||||
\end{minipage}\\
|
||||
\rule{\paperwidth}{0.1pt}
|
||||
\end{minipage}%
|
||||
}
|
||||
|
||||
\@ifundefined{backgroundcolor}%
|
||||
{\def\backgroundcolor#1{\gdef\@backgroundcolor{#1}}}{}
|
||||
\colorlet{panelbackground}{orange!10}
|
||||
\backgroundcolor{orange!10}
|
||||
\def\@urlcolor{brown}
|
||||
\def\@linkcolor{brown}
|
||||
\def\@menucolor{brown}
|
||||
|
||||
\RequirePackage{moreverb}
|
||||
|
||||
\newenvironment{vquote}%
|
||||
{\medskip
|
||||
\verbatimwrite{tmp.tex}}
|
||||
{\endverbatimwrite
|
||||
\aftergroup\printBox}
|
||||
|
||||
\def\printBox{\bgroup\def\rulecolor{orange}%
|
||||
\def\rulewidth{.2pt}%
|
||||
\noindent\begin{tikzpicture}
|
||||
\node[fill=blue!10,draw,shade,top color=white!10,
|
||||
bottom color=cyan!5,shape=quotedbox,
|
||||
inner sep=8pt,text width=.95\linewidth]
|
||||
{\color{orange}\vspace*{-1pc}%
|
||||
\verbatiminput{tmp.tex}%
|
||||
\vspace*{-\baselineskip}%
|
||||
} ;
|
||||
\end{tikzpicture}%
|
||||
\egroup
|
||||
\medskip
|
||||
}
|
||||
\def\red{\color{Sepia}}
|
||||
\def\verbatim@font{\red\normalfont\ttfamily}
|
||||
|
||||
\def\verbatimcontinuewrite{%
|
||||
\@bsphack
|
||||
% \verbatim@out=#1
|
||||
\let\do\@makeother\dospecials
|
||||
\obeyspaces\catcode`\^^M\active \catcode`\^^I=12
|
||||
\def\verbatim@processline{%
|
||||
\immediate\write\verbatim@out
|
||||
{\the\verbatim@line}}%
|
||||
\verbatim@start}
|
||||
|
||||
\def\@@@lbr{\expandafter\@gobble\string\{}
|
||||
\def\@@@rbr{\expandafter\@gobble\string\}}
|
||||
\def\@@@pcr{\expandafter\@gobble\string\%}
|
||||
|
||||
|
||||
%\immediate\write18{touch mytool.tex
|
||||
% ^^J rm mytool.tex ^^J touch mytool.tex}
|
||||
|
||||
\newenvironment{toolwrite}[1]%
|
||||
{\@tempdima=#1
|
||||
\verbatimwrite{xx}}
|
||||
{\endverbatimwrite
|
||||
\immediate\write18{echo
|
||||
"\string\Clear\@@@lbr\the\@tempdima\@@@rbr\@@@lbr\@@@pcr">>mytool.tex^^J
|
||||
cat xx.tex >> mytool.tex ^^J
|
||||
echo "\@@@rbr" >> mytool.tex}}
|
||||
|
||||
\tikzstyle{place}=[scale=.39,rectangle,draw=blue!90,fill=blue!30,thin,%
|
||||
minimum height=1mm,minimum width=13mm]
|
||||
\tikzstyle{trans}=[scale=.39,rectangle,draw=Olive,fill=Olive!20,thin,%
|
||||
minimum height=1mm,minimum width=13mm]
|
||||
\tikzstyle{past}=[scale=.39,rectangle,draw=Olive,fill=Olive!60,thin,%
|
||||
minimum height=1mm,minimum width=13mm]
|
||||
|
||||
\def\printSq#1{\parbox{107mm}{\@tempcnta=1
|
||||
\let\printfill\@empty
|
||||
\loop\ifnum\@tempcnta<#1
|
||||
{\printfill\ifnum\c@page=\@tempcnta
|
||||
\tikz\node at(0,0) [place]{};\else
|
||||
\ifnum\c@page<\@tempcnta
|
||||
\hyperlink{page.\the\@tempcnta}{\tikz\node at(0,0)
|
||||
[trans]{};}%
|
||||
\else
|
||||
\hyperlink{page.\the\@tempcnta}{\tikz\node at(0,0)
|
||||
[past]{};}%
|
||||
\fi\fi}%
|
||||
\advance\@tempcnta 1 \let\printfill\,\repeat}}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
|
476
tex/1_submission/doc/rvdtx.sty
Normal file
476
tex/1_submission/doc/rvdtx.sty
Normal file
@ -0,0 +1,476 @@
|
||||
%
|
||||
%
|
||||
% File: rvdtx.sty
|
||||
%
|
||||
% Auxiliary package to format *.dtx documents.
|
||||
%
|
||||
% Copyright (c) 2008-2020 CV Radhakrishnan <cvr@stmdocs.in>,
|
||||
%
|
||||
% This file may be distributed and/or modified 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.
|
||||
%
|
||||
%
|
||||
\newcounter{colorscheme}
|
||||
|
||||
\newif\if@xcolor \@xcolorfalse
|
||||
\newif\if@mylogo \@mylogofalse
|
||||
|
||||
\DeclareOption{mylogo}{\global\@mylogotrue}
|
||||
\DeclareOption{green}{\setcounter{colorscheme}{1}}
|
||||
\DeclareOption{orange}{\setcounter{colorscheme}{0}}
|
||||
\DeclareOption{xcolor}{\global\@xcolortrue}
|
||||
\DeclareOption{qone}{\AtEndOfPackage{\global\let\dtxmark\dtxmarkone}}
|
||||
\DeclareOption{qtwo}{\AtEndOfPackage{\global\let\dtxmark\dtxmarktwo}}
|
||||
|
||||
\ProcessOptions
|
||||
\def\loadXcolor{\if@xcolor\RequirePackage[dvipsnames,svgnames]{xcolor}\fi}
|
||||
|
||||
\loadXcolor
|
||||
\ifcase\thecolorscheme
|
||||
%
|
||||
% Orange color spec (default)
|
||||
%
|
||||
\colorlet{itemcolor}{brown}
|
||||
\colorlet{verbcolor}{Sepia}
|
||||
\colorlet{botrulecolor}{orange!25}
|
||||
\colorlet{botbgcolor}{orange!15}
|
||||
\colorlet{botcolor}{orange!80}
|
||||
\colorlet{pgrulecolor}{orange}
|
||||
\colorlet{pgbgcolor}{white}
|
||||
|
||||
\colorlet{quicklinkrulecolor}{orange!40}
|
||||
\colorlet{quicklinkcolor}{brown}
|
||||
\colorlet{topverticalrule}{brown}
|
||||
\colorlet{titlecolor}{brown}
|
||||
\colorlet{hlinkcolor}{brown}
|
||||
\colorlet{hlinktricolor}{orange!70}
|
||||
\colorlet{linkcolor}{brown}
|
||||
\colorlet{urlcolor}{brown}
|
||||
|
||||
% \colorlet{arrayrulecolor}{olive!30}
|
||||
\colorlet{seccolor}{brown}
|
||||
|
||||
\colorlet{toprulecolor}{orange!30}
|
||||
\colorlet{topbgcolor}{orange!10}
|
||||
\colorlet{topcolor}{brown!80}
|
||||
%
|
||||
%
|
||||
\or% Green color specs
|
||||
%
|
||||
%
|
||||
\colorlet{itemcolor}{OliveGreen}
|
||||
\colorlet{verbcolor}{OliveGreen}
|
||||
\colorlet{botrulecolor}{GreenYellow!25}
|
||||
\colorlet{botbgcolor}{GreenYellow!30}
|
||||
\colorlet{botcolor}{Green!80}
|
||||
\colorlet{pgrulecolor}{GreenYellow}
|
||||
\colorlet{pgbgcolor}{white}
|
||||
|
||||
\colorlet{quicklinkrulecolor}{Green!40}
|
||||
\colorlet{quicklinkcolor}{Green}
|
||||
\colorlet{topverticalrule}{Green}
|
||||
\colorlet{titlecolor}{DarkOliveGreen}
|
||||
\colorlet{hlinkcolor}{DarkOliveGreen}
|
||||
\colorlet{hlinktricolor}{Green!70}
|
||||
\colorlet{linkcolor}{OliveGreen}
|
||||
\colorlet{urlcolor}{OliveGreen}
|
||||
|
||||
% \colorlet{arrayrulecolor}{olive!30}
|
||||
\colorlet{seccolor}{OliveGreen}
|
||||
|
||||
\colorlet{toprulecolor}{GreenYellow!50}
|
||||
\colorlet{topbgcolor}{GreenYellow!20}
|
||||
\colorlet{topcolor}{GreenYellow!80}
|
||||
\fi
|
||||
|
||||
\def\floatpagefraction{.99}
|
||||
\usepackage{geometry}
|
||||
\geometry{top=2in,
|
||||
bottom=1in,
|
||||
left=2in,
|
||||
right=1in,
|
||||
a4paper}
|
||||
|
||||
%\DeclareRobustCommand{\LaTeX}{L\kern-.25em%
|
||||
% {\sbox\z@ T%
|
||||
% \vbox to\ht\z@{%
|
||||
% {\check@mathfonts
|
||||
% \fontsize\sf@size\z@
|
||||
% \math@fontsfalse\selectfont
|
||||
% A}%
|
||||
% \vss}%
|
||||
% }%-.10em%
|
||||
% \TeX
|
||||
%}
|
||||
\DeclareRobustCommand{\LaTeX}{L\kern-.25em%
|
||||
{\sbox\z@ T%
|
||||
\vbox to\ht\z@{%
|
||||
\hbox{%
|
||||
\check@mathfonts
|
||||
\fontsize\sf@size\z@
|
||||
\math@fontsfalse\selectfont
|
||||
A}%
|
||||
\vss}%
|
||||
}%
|
||||
\kern-.10em%
|
||||
\TeX}
|
||||
|
||||
\RequirePackage{pdfwidgets}
|
||||
|
||||
\RequirePackage{comment,xspace}
|
||||
\def\xml{\textsc{xml}\xspace}
|
||||
\def\latex{\LaTeX\xspace}
|
||||
\def\pdf{\textsc{pdf}\xspace}
|
||||
\def\pdfa{\textsc{pdf/a-1}b\xspace}
|
||||
\def\pdfx{\textsc{pdf/x-1}a\xspace}
|
||||
\def\xmp{\textsc{xmp}\xspace}
|
||||
\def\pdftex{\textsc{pdf\TeX}\xspace}
|
||||
\def\defmacro#1{\texttt{\@bsl#1}}
|
||||
\def\thanh{H\`an Th\^e Th\`anh\xspace}
|
||||
\def\gnulinux{\textsc{gnu/linux}\xspace}
|
||||
|
||||
\let\@DRAFTout@Hook\@empty
|
||||
\newcommand{\DRAFTout}{\g@addto@macro\@DRAFTout@Hook}
|
||||
\newcommand{\@DRAFTout@Out}{%
|
||||
\afterassignment\@DRAFTout@Test
|
||||
\global\setbox\@cclv=
|
||||
}
|
||||
\newcommand{\@DRAFTout@Test}{%
|
||||
\ifvoid\@cclv\relax
|
||||
\aftergroup\@DRAFTout@Output
|
||||
\else
|
||||
\@DRAFTout@Output
|
||||
\fi%
|
||||
}
|
||||
\newcommand{\@DRAFTout@Output}{%
|
||||
\@DRAFTout@Hook%
|
||||
\@DRAFTout@Org@Out\box\@cclv%
|
||||
}
|
||||
\newcommand{\@DRAFTout@Org@Out}{}
|
||||
\newcommand*{\@DRAFTout@Init}{%
|
||||
\let\@DRAFTout@Org@Out\shipout
|
||||
\let\shipout\@DRAFTout@Out
|
||||
}
|
||||
\newdimen\OHeight
|
||||
\setlength\OHeight{\textheight}
|
||||
\addtolength\OHeight{\headheight}
|
||||
\addtolength\OHeight{\headsep}
|
||||
\addtolength\OHeight{\footskip}
|
||||
|
||||
|
||||
\newif\ifoverlay\overlayfalse
|
||||
|
||||
\AtBeginDocument{\@DRAFTout@Init}
|
||||
\newcommand{\@DraftOverlay@Hook}{}
|
||||
\newcommand{\AddToDraftOverlay}{\g@addto@macro\@DraftOverlay@Hook}
|
||||
\newcommand{\ClearDraftOverlay}{\let\@DraftOverlay@Hook\@empty}
|
||||
\newcommand{\@DraftOverlay}{%
|
||||
\ifx\@DraftOverlay@Hook\@empty
|
||||
\else
|
||||
\bgroup
|
||||
\@tempdima=1in
|
||||
\@tempcnta=\@tempdima
|
||||
\@tempcntb=-\@tempdima
|
||||
\advance\@tempcntb\paperheight
|
||||
\ifoverlay
|
||||
\global\setbox\@cclv\vbox{%
|
||||
\box\@cclv
|
||||
\vbox{\let\protect\relax%
|
||||
\unitlength=1pt%
|
||||
\pictur@(0,0)(\strip@pt\@tempdima,\strip@pt\@tempdimb)%
|
||||
\@DraftOverlay@Hook%
|
||||
\endpicture}}%
|
||||
\else
|
||||
\global\setbox\@cclv\vbox{%
|
||||
\vbox{\let\protect\relax%
|
||||
\unitlength=1sp%
|
||||
\pictur@(0,0)(\@tempcnta,\@tempcntb)%
|
||||
\@DraftOverlay@Hook%
|
||||
\endpicture}%
|
||||
\box\@cclv}%
|
||||
\fi
|
||||
\egroup
|
||||
\fi
|
||||
}
|
||||
|
||||
\definecolor{gray30}{gray}{.7}
|
||||
\definecolor{gray20}{gray}{.8}
|
||||
\definecolor{gray10}{gray}{.9}
|
||||
|
||||
\DRAFTout{\@DraftOverlay}
|
||||
\long\def\puttext(#1)#2{\AddToDraftOverlay{%
|
||||
\setlength{\unitlength}{1pt}\thinlines%
|
||||
\put(#1){#2}}}
|
||||
|
||||
\RequirePackage{shortvrb}
|
||||
\MakeShortVerb{\|}
|
||||
\RequirePackage{amsfonts,amssymb}
|
||||
\IfFileExists{pxfonts.sty}{\RequirePackage{pxfonts}}{}
|
||||
%\IfFileExists{charter.sty}{\RequirePackage{charter}}{}
|
||||
\IfFileExists{lfr.sty}{\RequirePackage[scaled=.85]{lfr}}{}
|
||||
%\IfFileExists{prima.sty}{\RequirePackage[scaled=.8]{prima}}{}
|
||||
|
||||
\def\theCodelineNo{\reset@font\tiny\arabic{CodelineNo}}
|
||||
|
||||
\def\@seccntformat#1{\llap{\csname the#1\endcsname.\hspace*{6pt}}}
|
||||
\def\section{\@startsection {section}{1}{\z@}%
|
||||
{-3.5ex \@plus -1ex \@minus -.2ex}%
|
||||
{2.3ex \@plus.2ex}%
|
||||
{\normalfont\large\bfseries\color{seccolor}}}
|
||||
\def\subsection{\@startsection{subsection}{2}{\z@}%
|
||||
{-2.25ex\@plus -1ex \@minus -.2ex}%
|
||||
{1.5ex \@plus .2ex}%
|
||||
{\normalfont\normalsize\bfseries\color{seccolor}}}
|
||||
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
|
||||
{-1.25ex\@plus -1ex \@minus -.2ex}%
|
||||
{1.5ex \@plus .2ex}%
|
||||
{\normalfont\normalsize\bfseries\color{seccolor}}}
|
||||
|
||||
%\RequirePackage[draft]{pdfdraftcopy}
|
||||
% \draftstring{}
|
||||
\puttext(0,36){\botstring}%
|
||||
\puttext(0,840){\copy\topbox}
|
||||
\if@mylogo
|
||||
\puttext(531,829){\cvrlogo}
|
||||
\fi
|
||||
|
||||
\RequirePackage{colortbl}
|
||||
%\arrayrulecolor{arrayrulecolor}
|
||||
\let\shline\hline
|
||||
\def\hline{\noalign{\vskip3pt}\shline\noalign{\vskip4pt}}
|
||||
|
||||
\RequirePackage[pdftex,colorlinks]{hyperref}
|
||||
\def\Hlink#1#2{\hyperlink{#2}{\color{hlinktricolor}%
|
||||
$\blacktriangleright$~\color{hlinkcolor}#1}}
|
||||
\def\@linkcolor{linkcolor}
|
||||
\def\@urlcolor{urlcolor}
|
||||
|
||||
\pagestyle{empty}
|
||||
\def\version#1{\gdef\@version{#1}}
|
||||
\def\@version{1.0}
|
||||
\def\contact#1{\gdef\@contact{#1}}
|
||||
\def\author#1{\gdef\@author{#1}}
|
||||
\def\@author{STM Document Engineering Pvt Ltd.}
|
||||
\def\@contact{\texttt{support@stmdocs.in}}
|
||||
\def\keywords#1{\gdef\@keywords{#1}}
|
||||
\def\@keywords{\LaTeX, \xml}
|
||||
|
||||
\long\def\Hrule{\\[-4pt]\hspace*{-3em}%
|
||||
{\color{quicklinkrulecolor}\rule{\linewidth}{.1pt}}\\}
|
||||
|
||||
\long\def\dtxmarkone[#1][#2]#3#4#5{\def\next{#1}%
|
||||
\ifcase\next\or\Hlink{#4}{#3}\Hrule \fi}
|
||||
|
||||
\newcounter{dtx}
|
||||
|
||||
\long\def\dtxmarktwo[#1][#2]#3#4#5{\def\next{#1}%
|
||||
\stepcounter{dtx}\parbox{.45\linewidth}%
|
||||
{\ifcase\next\or\Hlink{#4}{#3}\fi}%
|
||||
\ifodd\thedtx\relax\else\Hrule\fi}
|
||||
|
||||
\let\dtxmark\dtxmarkone
|
||||
|
||||
\newbox\topbox
|
||||
\long\def\maketitle{\global\setbox\topbox=\vbox{\hsize=\paperwidth
|
||||
\parindent=0pt
|
||||
\fcolorbox{toprulecolor}{topbgcolor}%
|
||||
{\parbox[t][2in][c]{\paperwidth}%
|
||||
{\hspace*{15mm}%
|
||||
\parbox[c]{.35\paperwidth}{\fontsize{18pt}{20pt}%
|
||||
\raggedright\normalfont\sffamily \selectfont
|
||||
\color{titlecolor} \@title\\[6pt]
|
||||
{\normalsize\rmfamily\scshape\@author}}%
|
||||
% {\footnotesize\textsc{keywords:} \@keywords}}%
|
||||
\hfill
|
||||
\parbox[c][2in][c]{1mm}{\color{topverticalrule}%
|
||||
\rule{.1pt}{2in}}%
|
||||
\hfill
|
||||
\parbox[c][2in][c]{.35\paperwidth}%
|
||||
{\normalfont\footnotesize\sffamily\color{quicklinkcolor}%
|
||||
\advance\baselineskip-3pt%
|
||||
\vspace*{6pt} QUICK LINKS\Hrule
|
||||
\IfFileExists{tmp.out}{\input tmp.out}{}%
|
||||
}\hspace*{5mm}%
|
||||
}%
|
||||
}%
|
||||
}%
|
||||
}
|
||||
\gdef\botstring{\fcolorbox{botrulecolor}{botbgcolor}%
|
||||
{\parbox[t][.5in][t]{\paperwidth}%
|
||||
{\normalfont\sffamily\footnotesize%
|
||||
\color{botcolor}%
|
||||
\hspace*{5mm}\parbox[c][.5in][c]{.45\paperwidth}%
|
||||
{\raggedright \textcopyright\ 2019, Elsevier Ltd.
|
||||
Bugs, feature requests, suggestions and comments %\\
|
||||
shall be mailed to \href{mailto:elsarticle@stmdocs.in}
|
||||
{$<$elsarticle@stmdocs.in$>$}.
|
||||
}\hfill%
|
||||
\parbox[c][.5in][c]{1cm}
|
||||
{\centering\sffamily\mdseries
|
||||
\fcolorbox{pgrulecolor}{pgbgcolor}{\thepage}%
|
||||
}\hfill
|
||||
\parbox[c][.5in][c]{.45\paperwidth}
|
||||
{\raggedleft\begin{tabular}{rl}%
|
||||
Version:&\@version\\
|
||||
Date:&\@date\\
|
||||
Contact:&\@contact
|
||||
\end{tabular}\hspace*{5mm}%
|
||||
}%
|
||||
}%
|
||||
}%
|
||||
}
|
||||
|
||||
\def\MacroFont{\fontencoding\encodingdefault
|
||||
\fontfamily\ttdefault
|
||||
\fontseries\mddefault
|
||||
\fontshape\updefault
|
||||
\color{verbcolor}\small}%
|
||||
|
||||
\def\verbatim@font{\normalfont\color{verbcolor}\ttfamily}
|
||||
|
||||
\def\verb{\relax\ifmmode\hbox\else\leavevmode\null\fi
|
||||
\bgroup
|
||||
\verb@eol@error \let\do\@makeother \dospecials
|
||||
\verbatim@font\@noligs
|
||||
\@ifstar\@sverb\@verb}
|
||||
|
||||
|
||||
\def\@lbr{\expandafter\@gobble\string\{}
|
||||
\def\@rbr{\expandafter\@gobble\string\}}
|
||||
\def\@bsl{\expandafter\@gobble\string\\}
|
||||
\def\@Bsl#1{\texttt{\@bsl#1}\xspace}
|
||||
\def\trics#1{\protect\@Bsl{#1}}
|
||||
\def\onecs#1{\protect\@Bsl{#1}}
|
||||
%\let\trics\onecs
|
||||
\@ifundefined{c@Glossary}{}{\c@GlossaryColumns=1
|
||||
\c@IndexColumns=2}
|
||||
|
||||
\def\index@prologue{\section{Index}%
|
||||
\markboth{Index}{Index}%
|
||||
% Numbers written in italic refer to the page
|
||||
% where the corresponding entry is described;
|
||||
% numbers underlined refer to the
|
||||
% \ifcodeline@index
|
||||
% code line of the
|
||||
% \fi
|
||||
% definition; numbers in roman refer to the
|
||||
% \ifcodeline@index
|
||||
% code lines
|
||||
% \else
|
||||
% pages
|
||||
% \fi
|
||||
% where the entry is used.
|
||||
}
|
||||
|
||||
\@ifundefined{theglossary}{}{%
|
||||
\renewenvironment{theglossary}{%
|
||||
\glossary@prologue%][\GlossaryMin]%
|
||||
\GlossaryParms \let\item\@idxitem \ignorespaces}%
|
||||
{}}
|
||||
|
||||
\newenvironment{decl}[1][]%
|
||||
{\par\small\addvspace{1.5ex plus 1ex}%
|
||||
\vskip -\parskip
|
||||
\ifx\relax#1\relax
|
||||
\def\@decl@date{}%
|
||||
\else
|
||||
\def\@decl@date{\NEWfeature{#1}}%
|
||||
\fi
|
||||
\noindent%\hspace{-\leftmargini}%
|
||||
\begin{tabular}{l}\hline\ignorespaces}%
|
||||
{\\\hline\end{tabular}\nobreak\@decl@date\par\nobreak
|
||||
\vspace{0.75ex}\vskip -\parskip\ignorespacesafterend\noindent}
|
||||
|
||||
\newif\ifhave@multicol
|
||||
\newif\ifcodeline@index
|
||||
|
||||
\IfFileExists{multicol.sty}{\have@multicoltrue
|
||||
\RequirePackage{multicol}%
|
||||
}{}
|
||||
|
||||
\newdimen\IndexMin \IndexMin = 80pt
|
||||
\newcount\c@IndexColumns \c@IndexColumns = 2
|
||||
\ifhave@multicol
|
||||
\renewenvironment{theindex}
|
||||
{\begin{multicols}\c@IndexColumns[\index@prologue][\IndexMin]%
|
||||
\IndexParms \let\item\@idxitem \ignorespaces}%
|
||||
{\end{multicols}}
|
||||
\else
|
||||
\typeout{Can't find multicol.sty -- will use normal index layout if
|
||||
necessary.}
|
||||
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
|
||||
\columnseprule \z@ \columnsep 35\p@
|
||||
\twocolumn[\index@prologue]%
|
||||
\IndexParms \let\item\@idxitem \ignorespaces}
|
||||
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
|
||||
\fi
|
||||
\long\def\IndexPrologue#1{\@bsphack\def\index@prologue{#1}\@esphack}
|
||||
\@ifundefined{index@prologue}
|
||||
{\def\index@prologue{\section{Index}%
|
||||
\markboth{Index}{Index}%
|
||||
% Numbers written in italic refer to the page
|
||||
% where the corresponding entry is described;
|
||||
% numbers underlined refer to the
|
||||
% \ifcodeline@index
|
||||
% code line of the
|
||||
% \fi
|
||||
% definition; numbers in roman refer to the
|
||||
% \ifcodeline@index
|
||||
% code lines
|
||||
% \else
|
||||
% pages
|
||||
% \fi
|
||||
% where the entry is used.
|
||||
}}{}
|
||||
\@ifundefined{IndexParms}
|
||||
{\def\IndexParms{%
|
||||
\parindent \z@
|
||||
\columnsep 15pt
|
||||
\parskip 0pt plus 1pt
|
||||
\rightskip 15pt
|
||||
\mathsurround \z@
|
||||
\parfillskip=-15pt
|
||||
\footnotesize
|
||||
\def\@idxitem{\par\hangindent 30pt}%
|
||||
\def\subitem{\@idxitem\hspace*{15pt}}%
|
||||
\def\subsubitem{\@idxitem\hspace*{25pt}}%
|
||||
\def\indexspace{\par\vspace{10pt plus 2pt minus 3pt}}%
|
||||
}}{}
|
||||
\def\efill{\hfill\nopagebreak}%
|
||||
\def\dotfill{\leaders\hbox to.6em{\hss .\hss}\hskip\z@ plus 1fill}%
|
||||
\def\dotfil{\leaders\hbox to.6em{\hss .\hss}\hfil}%
|
||||
\def\pfill{\unskip~\dotfill\penalty500\strut\nobreak
|
||||
\dotfil~\ignorespaces}%
|
||||
|
||||
\let\scan@allowedfalse\relax
|
||||
|
||||
\def\tlformat#1{\begingroup\Large
|
||||
\parbox[c][1.25em][c]{1.25em}{\centering\fontfamily{phv}
|
||||
\fontseries{m}%
|
||||
\selectfont\color{white}\huge#1}%
|
||||
\endgroup}
|
||||
\def\tlFormat#1{\begingroup\Large
|
||||
\parbox[c][1.25em][c]{1.25em}{\centering\fontfamily{phv}
|
||||
\fontseries{m}%
|
||||
\selectfont\color{black}\huge#1}%
|
||||
\endgroup}
|
||||
\def\cvrlogo{\begingroup\fboxsep=2pt
|
||||
\colorbox{olive}{\tlformat{c}}%
|
||||
\colorbox{blue}{\tlformat{v}}%
|
||||
\colorbox{red}{\tlformat{r}}
|
||||
\endgroup}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
%%
|
||||
%% End of file 'rvdtx.sty'
|
||||
%%
|
||||
|
Reference in New Issue
Block a user