% ctexcap.cfg: default Chinese caption settings
% vim:ft=tex

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% caption by encoding
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifCTEX@GBK
  \input{ctexcap-gbk.cfg}
\else
  \input{ctexcap-utf8.cfg}
\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% caption number
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\CTEX@thepart{\chinese{part}}
\def\CTEX@thechapter{\chinese{chapter}}

\def\CTEX@thesection{\thesection}
\def\CTEX@thesubsection{\thesubsection}
\def\CTEX@thesubsubsection{\thesubsubsection}
\def\CTEX@theparagraph{\theparagraph}
\def\CTEX@thesubparagraph{\thesubparagraph}

\ifCTEX@cls{article}{
  \def\CTEX@appendixnumber{\@Alph\c@section}
}{
  \def\CTEX@appendixnumber{\@Alph\c@chapter}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% caption format
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifCTEX@cls{article}{
  \def\CTEX@part@format{\centering}
  \def\CTEX@part@nameformat{\Large\bfseries}
  \def\CTEX@part@aftername{\quad}
  \def\CTEX@part@titleformat{\Large\bfseries}
  \def\CTEX@part@beforeskip{4ex}
  \def\CTEX@part@afterskip{3ex}
  \def\CTEX@part@indent{\z@}
}{
  \def\CTEX@part@format{\centering}
  \def\CTEX@part@nameformat{\huge\bfseries}
  \def\CTEX@part@aftername{\par\vskip 20\p@}
  \def\CTEX@part@titleformat{\huge\bfseries}
}

\def\CTEX@chapter@format{\centering}
\def\CTEX@chapter@nameformat{\huge\bfseries}
\def\CTEX@chapter@aftername{\quad}
\def\CTEX@chapter@titleformat{\huge\bfseries}
\def\CTEX@chapter@beforeskip{50\p@}
\def\CTEX@chapter@afterskip{40\p@}
\def\CTEX@chapter@indent{\z@}

\def\CTEX@section@format{\Large\bfseries\centering}
\def\CTEX@section@aftername{\quad}
\def\CTEX@section@beforeskip{-3.5ex \@plus -1ex \@minus -.2ex}
\def\CTEX@section@afterskip{2.3ex \@plus .2ex}
\def\CTEX@section@indent{\z@}

\def\CTEX@subsection@format{\large\bfseries\flushleft}
\def\CTEX@subsection@aftername{\quad}
\def\CTEX@subsection@beforeskip{-3.25ex \@plus -1ex \@minus -.2ex}
\def\CTEX@subsection@afterskip{1.5ex \@plus .2ex}
\def\CTEX@subsection@indent{\z@}

\def\CTEX@subsubsection@format{\normalsize\bfseries\flushleft}
\def\CTEX@subsubsection@aftername{\quad}
\def\CTEX@subsubsection@beforeskip{-3.25ex \@plus -1ex \@minus -.2ex}
\def\CTEX@subsubsection@afterskip{1.5ex \@plus .2ex}
\def\CTEX@subsubsection@indent{\z@}

\def\CTEX@paragraph@format{\normalsize\bfseries\flushleft}
\def\CTEX@paragraph@aftername{\quad}
\ifnum\c@CTEX@sectiondepth>2
  \def\CTEX@paragraph@beforeskip{-3.25ex \@plus -1ex \@minus -.2ex}
  \def\CTEX@paragraph@afterskip{1ex \@plus .2ex}
\else
  \def\CTEX@paragraph@beforeskip{3.25ex \@plus1ex \@minus .2ex}
  \def\CTEX@paragraph@afterskip{-1em}
\fi
\def\CTEX@paragraph@indent{\z@}

\def\CTEX@subparagraph@format{\normalsize\bfseries\flushleft}
\def\CTEX@subparagraph@aftername{\quad}
\ifnum\c@CTEX@sectiondepth>3
  \def\CTEX@subparagraph@beforeskip{-3.25ex \@plus -1ex \@minus -.2ex}
  \def\CTEX@subparagraph@afterskip{1ex \@plus .2ex}
\else
  \def\CTEX@subparagraph@beforeskip{3.25ex \@plus1ex \@minus .2ex}
  \def\CTEX@subparagraph@afterskip{-1em}
\fi
\ifnum\c@CTEX@sectiondepth>2
  \def\CTEX@subparagraph@indent{\z@}
\else
  \def\CTEX@subparagraph@indent{\parindent}
\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% other configurations
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\CTEX@caption@delimiter{: }

\endinput

