summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/opt
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/opt')
-rw-r--r--Master/texmf-dist/tex/latex/ctex/opt/ctex-caption-opts.def11
-rw-r--r--Master/texmf-dist/tex/latex/ctex/opt/ctex-class-opts.def26
-rw-r--r--Master/texmf-dist/tex/latex/ctex/opt/ctex-common-opts.def59
3 files changed, 96 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/opt/ctex-caption-opts.def b/Master/texmf-dist/tex/latex/ctex/opt/ctex-caption-opts.def
new file mode 100644
index 00000000000..4f91d9ac8b7
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ctex/opt/ctex-caption-opts.def
@@ -0,0 +1,11 @@
+% ctex-caption.opt: options just for ctexcap.sty and document classes
+% vim:ft=tex
+
+% section depths
+
+\newcounter{CTEX@sectiondepth}
+\setcounter{CTEX@sectiondepth}{2}
+\DeclareOption{sub3section}{\setcounter{CTEX@sectiondepth}{3}}
+\DeclareOption{sub4section}{\setcounter{CTEX@sectiondepth}{4}}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ctex/opt/ctex-class-opts.def b/Master/texmf-dist/tex/latex/ctex/opt/ctex-class-opts.def
new file mode 100644
index 00000000000..7e43247b92e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ctex/opt/ctex-class-opts.def
@@ -0,0 +1,26 @@
+% ctex-class.opt: options for ctex class files
+% vim:ft=tex
+
+% font size
+
+\newif\ifCTEX@sfoursize \CTEX@sfoursizefalse
+\DeclareOption{cs4size}{\CTEX@sfoursizetrue\CTEX@fivesizefalse}
+\newif\ifCTEX@fivesize \CTEX@fivesizetrue
+\DeclareOption{c5size}{\CTEX@fivesizetrue\CTEX@sfoursizefalse}
+
+\DeclareOption{10pt}{%
+ \CTEX@sfoursizefalse\CTEX@fivesizefalse%
+ \PassOptionsToClass{\CurrentOption}%
+ {\CTEX@classtoload}}
+\DeclareOption{11pt}{%
+ \CTEX@sfoursizefalse\CTEX@fivesizefalse%
+ \PassOptionsToClass{\CurrentOption}%
+ {\CTEX@classtoload}}
+\DeclareOption{12pt}{%
+ \CTEX@sfoursizefalse\CTEX@fivesizefalse%
+ \PassOptionsToClass{\CurrentOption}%
+ {\CTEX@classtoload}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}%
+ {\CTEX@classtoload}}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/ctex/opt/ctex-common-opts.def b/Master/texmf-dist/tex/latex/ctex/opt/ctex-common-opts.def
new file mode 100644
index 00000000000..c9ef2d9d1d2
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ctex/opt/ctex-common-opts.def
@@ -0,0 +1,59 @@
+% ctex-common.opt: options for all ctex packages/classes
+% vim:ft=tex
+
+% encoding
+\newif\ifCTEX@GBK \CTEX@GBKtrue
+\DeclareOption{GBK}{\CTEX@GBKtrue}
+\DeclareOption{UTF8}{\CTEX@GBKfalse}
+
+% fonts
+\newif\ifCTEX@nofonts \CTEX@nofontsfalse
+\newif\ifCTEX@cjkfonts \CTEX@cjkfontstrue
+\newif\ifCTEX@winfonts \CTEX@winfontsfalse
+\newif\ifCTEX@adobefonts \CTEX@adobefontsfalse
+\DeclareOption{nofonts}{\CTEX@nofontstrue
+ \CTEX@cjkfontsfalse
+ \CTEX@winfontsfalse
+ \CTEX@adobefontsfalse}
+\DeclareOption{cjkfonts}{\CTEX@cjkfontstrue
+ \CTEX@nofontsfalse
+ \CTEX@winfontsfalse
+ \CTEX@adobefontsfalse}
+\DeclareOption{winfonts}{\CTEX@winfontstrue
+ \CTEX@cjkfontsfalse
+ \CTEX@nofontsfalse
+ \CTEX@adobefontsfalse}
+\DeclareOption{adobefonts}{\CTEX@adobefontstrue
+ \CTEX@cjkfontsfalse
+ \CTEX@nofontsfalse
+ \CTEX@winfontsfalse}
+
+\newif\ifCTEX@cct \CTEX@cctfalse
+\DeclareOption{CCT}{\CTEX@ccttrue}
+
+\newif\ifCTEX@cctfont \CTEX@cctfontfalse
+\DeclareOption{CCTfont}{\CTEX@ccttrue\CTEX@cctfonttrue}
+
+\newif\ifCTEX@punct \CTEX@puncttrue
+\DeclareOption{punct}{\CTEX@puncttrue}
+\DeclareOption{nopunct}{\CTEX@punctfalse}
+
+\newif\ifCTEX@space \CTEX@spacefalse
+\DeclareOption{space}{\CTEX@spacetrue}
+\DeclareOption{nospace}{\CTEX@spacefalse}
+
+\newif\ifCTEX@caption \CTEX@captiontrue
+\DeclareOption{nocap}{\CTEX@captionfalse}
+\DeclareOption{cap}{\CTEX@captiontrue}
+
+\newif\ifCTEX@indent \CTEX@indenttrue
+\DeclareOption{noindent}{\CTEX@indentfalse}
+\DeclareOption{indent}{\CTEX@indenttrue}
+
+\newif\ifCTEX@fancyhdr \CTEX@fancyhdrfalse
+\DeclareOption{fancyhdr}{\CTEX@fancyhdrtrue}
+
+\newif\ifCTEX@fntef \CTEX@fnteffalse
+\DeclareOption{fntef}{\CTEX@fnteftrue}
+
+\endinput