diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-20 18:00:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-20 18:00:53 +0000 |
commit | 160531a5e2d0c9b532fb083d090e1f0c451a52f8 (patch) | |
tree | 3cd7622e75a050e7dc06dac94221eb8e999d1053 /Master/texmf-dist/tex/latex/ctex/cfg | |
parent | 20db2dd2ad3cdd6e3720c1b5d7c4acc2a5de4f24 (diff) |
new chinese latex package ctex (5jul09)
git-svn-id: svn://tug.org/texlive/trunk@14341 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/cfg')
5 files changed, 213 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/cfg/ctex.cfg b/Master/texmf-dist/tex/latex/ctex/cfg/ctex.cfg new file mode 100644 index 00000000000..0feb9f95ec1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ctex/cfg/ctex.cfg @@ -0,0 +1,4 @@ +% ctex.cfg: for user's customized definitions +% vim:ft=tex + +\endinput diff --git a/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap-gbk.cfg b/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap-gbk.cfg new file mode 100644 index 00000000000..900864986eb --- /dev/null +++ b/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap-gbk.cfg @@ -0,0 +1,46 @@ +% ctexcap-gbk.cfg: default Chinese caption settings +% vim:ft=tex + +%% Chinese captions +%% +%% character set: GBK +%% encoding: EUC + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% caption name +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\CTEX@contentsname{目录} +\def\CTEX@listfigurename{插图} +\def\CTEX@listtablename{表格} + +\def\CTEX@figurename{图} +\def\CTEX@tablename{表} + +\def\CTEX@abstractname{摘要} +\def\CTEX@indexname{索引} +\def\CTEX@bibname{参考文献} + +\def\CTEX@prepart{第} +\def\CTEX@postpart{部分} +\def\CTEX@prechapter{第} +\def\CTEX@postchapter{章} +\def\CTEX@presection{} +\def\CTEX@postsection{} +\def\CTEX@presubsection{} +\def\CTEX@postsubsection{} +\def\CTEX@presubsubsection{} +\def\CTEX@postsubsubsection{} +\def\CTEX@preparagraph{} +\def\CTEX@postparagraph{} +\def\CTEX@presubparagraph{} +\def\CTEX@postsubparagraph{} + +\ifCTEX@cls{article}{ + \def\CTEX@appendixname{} +}{ + \def\CTEX@appendixname{附录~} +} + +\endinput + diff --git a/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap-utf8.cfg b/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap-utf8.cfg new file mode 100644 index 00000000000..f9d39747048 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap-utf8.cfg @@ -0,0 +1,46 @@ +% ctexcap-utf8.cfg: default Chinese caption settings +% vim:ft=tex + +%% Chinese captions +%% +%% character set: UTF-8 +%% encoding: EUC + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% caption name +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\CTEX@contentsname{鐩綍} +\def\CTEX@listfigurename{鎻掑浘} +\def\CTEX@listtablename{琛ㄦ牸} + +\def\CTEX@figurename{鍥緘 +\def\CTEX@tablename{琛▆ + +\def\CTEX@abstractname{鎽樿} +\def\CTEX@indexname{绱㈠紩} +\def\CTEX@bibname{鍙傝冩枃鐚畗 + +\def\CTEX@prepart{绗瑌 +\def\CTEX@postpart{閮ㄥ垎} +\def\CTEX@prechapter{绗瑌 +\def\CTEX@postchapter{绔爙 +\def\CTEX@presection{} +\def\CTEX@postsection{} +\def\CTEX@presubsection{} +\def\CTEX@postsubsection{} +\def\CTEX@presubsubsection{} +\def\CTEX@postsubsubsection{} +\def\CTEX@preparagraph{} +\def\CTEX@postparagraph{} +\def\CTEX@presubparagraph{} +\def\CTEX@postsubparagraph{} + +\ifCTEX@cls{article}{ + \def\CTEX@appendixname{} +}{ + \def\CTEX@appendixname{闄勫綍~} +} + +\endinput + diff --git a/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap.cfg b/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap.cfg new file mode 100644 index 00000000000..842d54d2e84 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ctex/cfg/ctexcap.cfg @@ -0,0 +1,111 @@ +% 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 + diff --git a/Master/texmf-dist/tex/latex/ctex/cfg/ctexopts.cfg.template b/Master/texmf-dist/tex/latex/ctex/cfg/ctexopts.cfg.template new file mode 100644 index 00000000000..bbd8d3afba8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ctex/cfg/ctexopts.cfg.template @@ -0,0 +1,6 @@ +% ctexopts.cfg.template: set default options +% vim:ft=tex + +\ExecuteOptions{winfonts} + +\endinput |