summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/ctexcap.sty
blob: 1f880e8dbb44168b30ab4320cb5942213da7fa63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% ctexcap.sty

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{ctexcap}
  [2014/06/09 v1.02d ctexcap
   macros package]

\input{ctex-common-opts.def}
\input{ctex-caption-opts.def}

\InputIfFileExists{ctexopts.cfg}{}{}

\ProcessOptions

\input{ctex-common.def}
\input{ctex-caption.def}

\@ifundefined{if@mainmatter}{\let\if@mainmatter\iftrue}{}

\ifCTEX@cls{article}{\input{ctex-article.def}}{}
\ifCTEX@cls{report}{\input{ctex-report.def}}{}
\ifCTEX@cls{book}{\input{ctex-book.def}}{}

% ctex.cfg should be loaded very last
\AtEndOfPackage{%
  \makeatletter
  \InputIfFileExists{ctex.cfg}{}{}
  \makeatother}

\endinput