% % Trim Size: 10in x 7in
% % Text Area: 20cm (include Runningheads) x 12cm
% % mjms-style.sty   :   1-1-2014
% % It is developed and adapted by Saeid Molladavoudi.
% % Tex file to use with mjms-style.sty package.
% % The bibliography style file is mjms-bib-style.bst.

%----------Packages---------- %
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amstext}
\usepackage{amsfonts}
\usepackage{bbold}
\usepackage{color}
\usepackage{color}
\usepackage{curves}
\usepackage{epsf}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{rotating}
\usepackage{epic}
\usepackage{geometry}
\geometry{twoside,height=20cm,width=12cm,papersize={7.17in,10.12in},bindingoffset=8mm,includeheadfoot,headsep=5mm}
%\usepackage[cam,a4,center]{crop} %for trimming and crop-marks
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{abstract}
\usepackage[comma,sort&compress]{natbib}
\usepackage[auth-lg,affil-it]{authblk}
\usepackage{tikz}
%\usepackage{pgfplots}
\usepackage{eso-pic,picture}
\usepackage[font=large,labelfont=bf]{caption}
\usepackage{url}
\usepackage{setspace}
%\usepackage[all]{xy}
\usepackage{verbatim}
\usepackage{titlesec}
\usepackage[hidelinks]{hyperref}
\usepackage{times}
%--------Newcommands---------- %
\titleformat{\section}[block]{\Large\bfseries\filcenter}{\MakeUppercase{\thesection}}{1em}{\MakeUppercase}
\titleformat{\subsection}[block]{\large\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}[block]{\bfseries}{\thesubsubsection}{1em}{}
\renewcommand{\abstractname}{\Large ABSTRACT}

%\renewcommand\Authfont{\bf}
%----------Keywords----------%
\newcommand{\keywordname}{Keywords}
\newenvironment{keywords}{ \vspace{.5cm}
  \begin{list}{}{%
    \settowidth{\labelwidth}{\textbf{\keywordname:}}
    \setlength{\leftmargin}{\labelwidth}
    \addtolength{\leftmargin}{\labelsep}
%   \setlength{\topsep}{\medskipamount}
  }
  \item[\textbf{\keywordname:}]\relax
}
{\end{list}}
%----------Header/Footer using fancyhdr package----------%
\fancypagestyle{otherpage}{%
\fancyhf{} % clear all header and footer fields
\setlength{\headheight}{0.5in}
\fancyhead[CE]{\footnotesize{\authors}}
\fancyhead[CO]{\footnotesize{\ttitle}}
\fancyfoot[LE,RO]{\footnotesize{\slshape{\thepage}}}
\fancyfoot[C]{\footnotesize{\slshape{CRYPTOLOGY2022}}}
%\setlength\headsep{25pt}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}

\fancypagestyle{firstpage}{%
\fancyhf{} % clear all header and footer fields
\setlength{\headheight}{0.5in}
\fancyhead[C]{\footnotesize{\slshape{Proceedings of the $8^{\text{th}}$ International Cryptology and Information Security Conference 2022 (CRYPTOLOGY2022)}}}
%\setlength\headsep{25pt}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}

\pagestyle{otherpage}
%----------theorem environments----------%
\newtheorem{theorem}{Theorem}[section]  
\newtheorem{corollary}{Corollary}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{example}{Example}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{notation}{Notation}[section]
\newtheorem{question}{Question}[section]
\newtheorem{prop}{Prop}[section]
\newtheorem{step}{Step}
\newtheorem{claim}{Claim}[section]
\newtheorem{conjecture}{Conjecture}[section]
\renewenvironment{proof}{\paragraph{\textbf{Proof.}}}{\hfill$\square$}

\setlength{\parskip}{\baselineskip}%

