\usepackage[T1]{fontenc} % use 8-bit T1 fonts
\usepackage{amsfonts} % blackboard math symbols
\usepackage{nicefrac} % compact symbols for 1/2, etc.
\usepackage{microtype} % microtypography
\usepackage{xcolor} % colors
% Arxiv Tmeplate Setting
\usepackage{url} % simple URL typesetting
\usepackage{lipsum} % Can be removed after putting your text content
\usepackage[textsize=tiny]{todonotes}
\newcommand*{\TODO}[1]{\colorbox{red}{\color{white}{#1}}}
% For name label bibtex
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage{comment}
\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}
\addbibresource{main.bib}
% Original Setting
\usepackage{color}
\usepackage{graphicx}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{latexsym}
\usepackage{multirow}
\usepackage{amssymb}
\usepackage{amsmath,amssymb}
\usepackage{mathtools}
\usepackage{fancyhdr}
\usepackage{booktabs}
\usepackage{bm}
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname\@mkboth{\refname}{\refname}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\setlength\itemsep{0zh}
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty\clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
\setcounter{secnumdepth}{4}
% \usepackage[dvipdfmx]{hyperref}
\usepackage{hyperref}
\hypersetup{
colorlinks=true, % リンクに色をつけない設定
bookmarksnumbered=true,
pdfborder={0 0 0},
citecolor=cyan,
linkcolor=red,
urlcolor=green,
bookmarkstype=toc
}
%%% Add PDF metadata to help others organize their library
%%% Once the PDF is generated, you can check the metadata with
%%% $ pdfinfo template.pdf
\usepackage{caption}
\captionsetup[figure]{format=plain, labelformat=simple, labelsep=period}
\usepackage{subcaption}
\captionsetup{subrefformat=parens}
\newcommand{\argmax}{\mathop{\rm arg~max}\limits}
\newcommand{\argmin}{\mathop{\rm arg~min}\limits}
\newcommand{\kldiv}{D_{KL}\infdivx}
\newcommand{\kldivs}{Ds_{KL}\infdivx}
\DeclareMathOperator{\E}{\mathbb{E}}
\DeclareMathOperator{\R}{\mathbb{R}}
\def\vector#1{\mbox{\boldmath $#1$}}
\DeclareMathOperator{\x}{\mathbf{x}}
\DeclareMathOperator{\y}{\mathbf{y}}
\DeclareMathOperator{\bb}{\mathbf{b}}
\DeclareMathOperator{\w}{\mathbf{w}}
\DeclareMathOperator{\W}{\mathbf{W}}
\DeclareMathOperator{\bH}{\mathbf{H}}
\DeclareMathOperator{\Z}{\mathbf{Z}}
\DeclareMathOperator{\A}{\mathbf{A}}
\DeclareMathOperator{\G}{\mathbf{G}}
\DeclareMathOperator{\D}{\mathcal{D}}
\DeclareMathOperator{\s}{\mathbf{s}}
\DeclareMathOperator{\bS}{\mathbf{S}}
\DeclareMathOperator{\g}{\mathbf{g}}
\DeclareMathOperator{\ba}{\mathbf{a}}
\DeclareMathOperator{\bd}{\mathbf{d}}
\DeclareMathOperator{\bg}{\mathbf{g}}
\DeclareMathOperator{\F}{\mathbf{F}}
\DeclareMathOperator{\J}{\mathbf{J}}
\DeclareMathOperator{\T}{\mathrm{T}}
\DeclareMathOperator{\dx}{\mathrm{d}\hspace{-0.35ex}\x\hspace{-0.35ex}}
\DeclareMathOperator{\dy}{\mathrm{d}\hspace{-0.35ex}\y\hspace{-0.35ex}}
\DeclareMathOperator{\btheta}{\boldsymbol\theta}
\DeclareMathOperator{\bphi}{\boldsymbol\phi}
\DeclareMathOperator{\bdelta}{\boldsymbol\delta}
\DeclareMathOperator{\bOmega}{\mathbf{\Omega}}
\DeclareMathOperator{\bGamma}{\mathbf{\Gamma}}
\def\diag{\mathop{\rm diag}\nolimits}
\newcommand\bigzero{\makebox(0,0){\text{\huge0}}}
\renewcommand{\algorithmicrequire}{\textbf{Params:}}
\renewcommand{\algorithmicensure}{\textbf{init:}}
%%%%
\newtheorem{dfn}{Definition}[section]
\newtheorem{thm}{Theorem}[section]
\newtheorem{prop}{Proposition}[section]
\newtheorem{lem}{Lemma}[section]
\newtheorem{cor}{Corollary}[section]
\newtheorem{rem}{Remark}[section]
\newtheorem{expl}{Example}[section]
\newtheorem{prob}{Problem}[section]
\newtheorem{algo}{Algorithm}[section]
\newtheorem{assum}{Assumption}[section]
\newcommand{\bsquare}{\hbox{\rule{6pt}{6pt}}}
\renewcommand{\theenumi}{\roman{enumi}}
\def\Vec#1{\mbox{\boldmath $#1$}}
\usepackage{lscape}
\usepackage{booktabs}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{scrwfile}
\TOCclone[\contentsname~(\appendixname)]{toc}{atoc}
\newcommand\StartAppendixEntries{}
\AfterTOCHead[toc]{
\renewcommand\StartAppendixEntries{\value{tocdepth}=-10000\relax}
}
\AfterTOCHead[atoc]{
\edef\maintocdepth{\the\value{tocdepth}}
\value{tocdepth}=-10000\relax
\renewcommand\StartAppendixEntries{\value{tocdepth}=\maintocdepth\relax}
}
\newcommand*\appendixwithtoc{
\cleardoublepage
\appendix
\addtocontents{toc}{\protect\StartAppendixEntries}
\listofatoc
}
\usepackage{blindtext}