summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-28 20:11:42 +0000
committerKarl Berry <karl@freefriends.org>2022-07-28 20:11:42 +0000
commitb237c781052da2153e8e120f0e69909e54dad584 (patch)
treecb85963094b12969a2caeb82cc4688abc9028405 /Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex
parentc617f3c41b0840c82ed1f943d62a60cdadb9b2e5 (diff)
exam-zh (28jul22)
git-svn-id: svn://tug.org/texlive/trunk@63995 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex')
-rw-r--r--Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex65
1 files changed, 65 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex b/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex
new file mode 100644
index 00000000000..19b2ed0661d
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/exam-zh/doc/exam-zh-doc-setup.tex
@@ -0,0 +1,65 @@
+\usepackage{xeCJKfntef, xpinyin}
+\usepackage{graphicx}
+\usepackage{tabularray}
+\usepackage{../exam-zh-choices}
+\usepackage{../exam-zh-question}
+\usepackage{../exam-zh-symbols}
+\usepackage{../exam-zh-chinese-english}
+
+\ExplSyntaxOn
+\NewDocumentCommand \examsetup { m }
+ { \keys_set:nn { exam-zh } {#1} }
+\ExplSyntaxOff
+% \usepackage[
+% backend = biber,
+% style = gb7714-2015
+% ]{biblatex}
+% \addbibresource{exam-zh.bib}
+\graphicspath{{figures}}
+
+\hypersetup{
+ pdftitle = {exam-zh: 高考试卷 LaTeX 模板},
+ pdfauthor = {夏康玮}
+}
+% 全角标点放在引号中,需要改成半角式,否则间距过大,不好看
+\def\FSID{“{\xeCJKsetup{PunctStyle=banjiao}。}”} % U+3002
+\def\FSFW{“{\xeCJKsetup{PunctStyle=banjiao}.}”} % U+FF0E
+\def\COFW{“{\xeCJKsetup{PunctStyle=banjiao}:}”} % U+FF1A
+\def\SCFW{“{\xeCJKsetup{PunctStyle=banjiao};}”} % U+FF1B
+
+
+\title{\textcolor{MaterialIndigo800}{%
+ \textbf{exam-zh: 高考试卷 \LaTeX \xpinyin[font=\sffamily,format=\color{MaterialIndigo800}]{模}{mu2}板}}}
+\author{李泽平,夏康玮,郭李军}
+\date{2022/07/28\quad v0.1.13%
+ \thanks{%
+ \url{https://gitee.com/zepinglee/exam-zh}
+ }
+}
+
+\ExplSyntaxOn
+\NewDocumentCommand \eu { } { \mathrm{ e } }
+\NewDocumentCommand \iu { } { \mathrm{ i } }
+\NewDocumentCommand { \scoringbox } { s }
+ {
+ \IfBooleanTF {#1}
+ { \__examzh_scoringbox_onecolumn: }
+ { \__examzh_scoringbox_twocolumn: }
+ }
+\cs_new_protected:Nn \__examzh_scoringbox_twocolumn:
+ {
+ \begin{tabular}{|c|c|}
+ \hline
+ 得分 & \rule{3em}{0pt}\rule[-0.7em]{0pt}{2em} \\\hline
+ 阅卷人 & \rule{3em}{0pt}\rule[-0.7em]{0pt}{2em} \\\hline
+ \end{tabular}
+ }
+\cs_new_protected:Nn \__examzh_scoringbox_onecolumn:
+ {
+ \begin{tabular}{|c|}
+ \hline
+ 得分\rule[-0.7em]{0pt}{2em} \\\hline
+ \rule[-0.7em]{0pt}{2em} \\\hline
+ \end{tabular}
+ }
+\ExplSyntaxOff \ No newline at end of file