%!TEX program=xelatex
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
% To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
% Author: Sheng-Fu Chang
\documentclass[10pt, a4paper, twocolumn]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[font=bf, labelsep=space, skip=10pt]{caption} % English = period, Chinese = space
\usepackage{enumerate}
\usepackage[inline, shortlabels]{enumitem}
\usepackage[utf8]{inputenc}
\usepackage[margin=2.5cm]{geometry}
\usepackage{fancyhdr}
\usepackage{fontspec}
\usepackage[hidelinks]{hyperref}
\usepackage{multirow}
\usepackage{titlesec}
\usepackage{titling}
\usepackage{xcolor}
\usepackage{authblk}
\usepackage[BoldFont, SlantFont]{xeCJK}
% header settings
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt} % hide horizontal line
\lhead{第三十屆全國資訊安全會議(CISC 2020) Cryptology and Information Security Conference 2020}
% font settings
\setmainfont{Times New Roman}
\setCJKmainfont{AR PL UKai TW}
%\setCJKmainfont{DFKai-SB} % for Windows
%\setCJKmainfont{[kaiu.ttf]} % BiauKai for Linux/Unix OSes
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
% page settings
\setlength{\columnsep}{0.5cm}
\setlength{\headsep}{0pt}
%\setlength{\footskip}{0pt}
\setlength{\marginparsep}{0pt}
\setlength{\marginparwidth}{0pt}
\setlength{\topmargin}{0pt}
\setlength{\textheight}{690.74pt} % dirty hack
\linespread{1.0}
% custom abstract style (CISC style)
\newenvironment{cisc_abstract}[1]
{\parskip=0pt\par\centering\normalsize\bfseries{#1}}
{\par}
% *section settings
\titleformat{\section}{\fontsize{12pt}{14.4pt}\selectfont\bfseries}{\thesection.}{1em}{}
\titleformat{\subsection}{\fontsize{11pt}{13.2pt}\selectfont\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\fontsize{11pt}{13.2pt}\selectfont\bfseries}{\thesubsubsection}{1em}{}
\titlespacing{\section}{0pt}{1\baselineskip}{1\baselineskip}
\titlespacing{\subsection}{0pt}{1\baselineskip}{1\baselineskip}
\titlespacing{\subsubsection}{0pt}{1\baselineskip}{1\baselineskip}
% title setting
\setlength{\droptitle}{-3\baselineskip}
\pretitle{\center\fontsize{16pt}{19.2pt}\selectfont\bfseries}
\title{第三十屆全國資訊安全會議\\Cryptology and Information Security Conference 2020 (CISC2020)}
\posttitle{\center}
% author setting
\renewcommand{\Authsep}{~}
\renewcommand{\Authand}{~}
\renewcommand{\Authands}{~}
\renewcommand{\Authfont}{\fontsize{12pt}{13.2pt}\selectfont\bfseries}
\renewcommand{\Affilfont}{\fontsize{12pt}{13.2pt}\selectfont\bfseries}
\setlength{\affilsep}{0pt}
\preauthor{\center\fontsize{12pt}{13.2pt}\selectfont\bfseries}
\author[ ]{作者姓名\textsuperscript{1}}
\author[ ]{作者姓名\textsuperscript{2}}
\author[ ]{作者姓名\textsuperscript{3}}
\affil[ ]{服務單位\textsuperscript{1, 3}}
\affil[ ]{服務單位\textsuperscript{2}}
\affil[ ]{Email\textsuperscript{1}}
\affil[ ]{Email\textsuperscript{2}}
\affil[ ]{Email\textsuperscript{3}}
\postauthor{\center\vspace*{-1\baselineskip}}
\predate{} \date{} \postdate{}
% biblatex setting
\renewcommand{\refname}{參考文獻}
% figures setting
\usepackage{graphicx}
\usepackage{subfigure}
\graphicspath{{figures/}}
\setlength{\textfloatsep}{1\baselineskip}
% for Chinese thesis only
\renewcommand\figurename{圖}
\renewcommand\tablename{表}
\parindent=2em % English = 1em, Chinese = 2em
\begin{document}
\maketitle
\thispagestyle{fancy}
\input{sections/abstract}
\input{sections/introduction}
\input{sections/content}
\nocite{*}
\bibliographystyle{IEEEtranS}
\bibliography{refs}
\end{document}