% Define autousepackage
\makeatletter
\newcommand{\autousepackage}[2][]{%
  \@ifpackageloaded{#2}%
    {\typeout{Package #2 is already loaded.}}% 如果包已加载
    {\usepackage[#1]{#2}}% 如果包未加载，加载包并传递参数
}
\makeatother

% Define autonewtheorem
\makeatletter
\newcommand{\autonewtheorem}[2]{%
  \@ifundefined{#1}{% Check if the theorem environment is already defined
    \newtheorem{#1}{#2}% If not defined, define it
  }{}% If already defined, do nothing
}
\makeatother


\usepackage{xcolor}         % colors
 
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{amsmath,amsthm}
\usepackage{dsfont}
\usepackage{mathrsfs} 
\usepackage{listings}
%\usepackage{algorithm}
%\usepackage{algpseudocode}
\usepackage{subfigure}
\usepackage[para]{footmisc}
\usepackage{caption}

\usepackage{booktabs}
\usepackage{thmtools}
\usepackage{thm-restate}
\usepackage{mathtools}
\usepackage{pifont}
\input{math_commands.tex}
%\declaretheorem[name=Theorem,numberwithin=section]{theorem}




%\definecolor{NavyBlue}{rgb}{0.1, 0.4, 0.8}
\definecolor{NavyBlue}{HTML}{1456a6}
\autousepackage[colorlinks, 
            linkcolor=NavyBlue,
            urlcolor=gray,
            citecolor=NavyBlue,
            anchorcolor=NavyBlue,
            backref=page
]{hyperref}


\newcommand{\fzh}[1]{\textcolor{orange}{\textbf{[FZH: #1]}}}
%\newtheorem{theorem}{Theorem}
%\newtheorem{corollary}{Corollary}
%\newtheorem{proposition}{Proposition}
%\newtheorem{lemma}{Lemma}
%\newtheorem{definition}{Definition}
\DeclareMathOperator{\A}{\mathcal{A}}
\DeclareMathOperator{\M}{\mathcal{M}}
\DeclareMathOperator{\LL}{\mathcal{L}}
\def\hv{{\hat{v}}}
\def\hb{{\hat{b}}}
\def\hw{{\hat{w}}}
\def\T{\mathsf{T}}
%\renewcommand{\baselinestretch}{0.968}
\setlength{\parskip}{3.pt}
\definecolor{almond}{rgb}{0.99, 0.96, 0.89} 

\renewcommand\cite{\citep}	% to get "(Author Year)" with natbib    
\newcommand\shortcite{\citeyearpar}% to get "(Year)" with natbib    
\newcommand\newcite{\citet}	% to get "Author (Year)" with natbib


\usepackage{cleveref}
\crefformat{section}{\S#2#1#3} % see manual of cleveref, section 8.2.1
\crefformat{subsection}{\S#2#1#3}
\crefformat{subsubsection}{\S#2#1#3}

\usepackage{titlesec}
\titleformat{\subsubsection}[runin]% runin puts it in the same paragraph
       {\normalfont\bfseries}% formatting commands to apply to the whole heading
       {\thesubsubsection}% the label and number
       {0.5em}% space between label/number and subsection title
       {}% formatting commands applied just to subsection title
       [.\ \ ]% punctuation or other commands following subsection title

\usepackage{colortbl}
%\definecolor{mina-green}{rgb}{0.4078, 0.7392, 0.4274}
\definecolor{mina-green}{rgb}{0.5215, 0.8, 0.0}
\newcommand{\CC}[1]{\cellcolor{blue!#1}}
\newcommand{\CCR}[1]{\cellcolor{red!#1}}
\newcommand{\CCG}[1]{\cellcolor{mina-green!#1}}

\DeclareCaptionFormat{tableformat}{\fontsize{8.5}{9}\selectfont#1#2#3}

\theoremstyle{plain}
\autonewtheorem{theorem}{Theorem}

\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}


%\autonewtheorem{proposition}[theorem]{Proposition}
%\autonewtheorem{lemma}[theorem]{Lemma}
%\autonewtheorem{corollary}[theorem]{Corollary}
%\theoremstyle{definition}
%\autonewtheorem{definition}[theorem]{Definition}
%\autonewtheorem{assumption}[theorem]{Assumption}
%\theoremstyle{remark}
%\autonewtheorem{remark}[theorem]{Remark}

\title{FairImagen: Post-Processing for Bias Mitigation in Text-to-Image Models}