如图,我在网上下载的模板,想把答案部分字体改为楷体,其他的还是宋体。自己改了一下,结果从空格之后全是楷体了
贴一下代码:
源文件:
\documentclass[12pt,twocolumn,landscape,UTF8,twoside]{ctexart}
\input{data/shijuan_ys}
\usepackage{graphicx}% 引用插图宏包
\usepackage{fontspec}% 引用圈号宏包
%%%%%%%%%%%
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont} %小四号
\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont} %小二号
\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont} %五号
\newcommand{\degree}{\ensuremath{^{\circ}}} % 定义度数输入
\setCJKfamilyfont{dbs}{方正大标宋_GBK}
\newcommand{\dbs}{\CJKfamily{dbs}}
\setCJKfamilyfont{xbs}{方正小标宋_GBK}
\newcommand{\xbs}{\CJKfamily{xbs}}
\setCJKfamilyfont{kt}{方正楷体_GBK}
\newcommand{\kt}{\CJKfamily{kt}}
\setCJKfamilyfont{st}{方正书宋_GBK}
\newcommand{\st}{\CJKfamily{st}}
\setCJKfamilyfont{het}{方正黑体_GBK}
\newcommand{\het}{\CJKfamily{het}}
\newfontfamily\bz{EU-BZ}
\newfontfamily\bx{EU-BX}
%%%%%%%%%%%
% \setboolean{print}{true}
\setboolean{print}{false} %是否打印答案
\begin{document}
\st
\bz
\noindent
\vspace{-10pt}\zihao{5}
\begin{spacing}{1.3}
\begin{enumerate} [1.]
\item[\heiti 一、] {\heiti 填空题(每空0.5分,共20分)}\\
\includegraphics[scale=0.6]{1.png}\\
\item 在下列横线上填出途中字母所代表的地理事物名称。\\A \tk{阿尔泰}山脉 B \tk{天山}山脉 C \tk{昆仑}山脉 D \tk{祁连}山脉 F \tk{内蒙古}高原 H \tk{塔里木}盆地 G \tk{准噶尔}盆地
\item 西北地区自\songti ①—②—③ \st 的自然景观依次是\tk{草原},\tk{荒漠草原},\tk{荒漠};产生这样变化的差异的原因是\tk{海陆位置导致降水量自东向西逐渐递减}。
\item 西北地区种职业发展的限制因素是\tk{降水},区域内有著名的种植业工业区E \tk{河西走廊}。
\end{enumerate}
\end{spacing}
\end{document}
原「data/shijuan_ys」
\usepackage[utf8]{inputenc}
\usepackage[paperwidth=36.8cm,paperheight=26cm,
top=2cm,bottom=2cm,right=2cm,left=3.cm,
columnsep=1.5cm]{geometry}
\columnseprule=.4pt
\usepackage{bbding}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{wasysym}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{tabu}
\usepackage{paralist}
\usepackage{lastpage}
\usepackage{enumerate}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}
\fancyfoot[CO,CE]{第~\thepage~页~~共~\pageref{LastPage}~页}
\fancyhead[RE]{\leavevmode\vbox to0pt{
\vss\rlap{\putzdxx }\vskip -26cm }} %奇数页眉的右边
\fancyhead[LO]{\leavevmode\vbox to0pt{
\vss\rlap{\putzdx }\vskip -26cm }} %偶数页眉的左边
\newsavebox{\zdxa}%装订线
\sbox{\zdxa}
{\parbox{27cm}{\centering \heiti \hspace{1cm}
系~部:\underline{\makebox[30mm][c]{}}~~~ 班~级:\underline{\makebox[45mm][c]{}}~~~ 姓~名:\underline{\makebox[30mm][c]{}}~~~ 学~号:\underline{\makebox[30mm][c]{}} \\
\vspace{1mm}
% 请在所附答题纸上空出密封位置。并填写试卷序号、班级、学号和 姓名\\
%答题时学号
% \vspace{1mm}
\dotfill{} 〇 \dotfill{} 密\dotfill{}封\dotfill{}线\dotfill{}〇\dotfill{} \\
}}
\newsavebox{\zdxb}%装订线
\sbox{\zdxb}
{\parbox{27cm}{\centering \heiti
\vspace{30mm}
\vspace{1mm}
\dotfill{} 〇 \dotfill{}密\dotfill{}封\dotfill{}线\dotfill{}〇\dotfill{} \\
}}
\newcommand{\putzdx}{
\hspace{-1.7cm}\parbox{1cm}{\vspace{-1.5cm}
\rotatebox[origin=c]{90}{
\usebox{\zdxa}
}}
}
\newcommand{\putzdxx}{
\hspace{0.3cm}\parbox{1cm}{\vspace{-1.5cm}
\rotatebox[origin=c]{-90}{
\usebox{\zdxb}
}}
}
\usepackage{ifthen}
%选择题选项命令 \xx \xxiii \xxv \xxvi
\newlength{\la}
\newlength{\lb}
\newlength{\lc}
\newlength{\ld}
\newlength{\lee}
\newlength{\lf}
\newlength{\lhalf}
\newlength{\lquarter}
\newlength{\lmax}
\newcommand{\xx}[4]{\\[.5pt]%
\settowidth{\la}{A、#1~~~}
\settowidth{\lb}{B、#2~~~}
\settowidth{\lc}{C、#3~~~}
\settowidth{\ld}{D、#4~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {} \ifthenelse{\lengthtest{\lmax < \ld}} {\setlength{\lmax}{\ld}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A、#1 \\ B、#2 \\ C、#3 \\ D、#4 } { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A、#1~~~}%
\makebox[\lhalf][l]{B、#2~~~}\\%
\makebox[\lhalf][l]{C、#3~~~}%
\makebox[\lhalf][l]{D、#4~~~}}%
{\noindent\makebox[\lquarter][l]{A、#1~~~}%
\makebox[\lquarter][l]{B、#2~~~}%
\makebox[\lquarter][l]{C、#3~~~}%
\makebox[\lquarter][l]{D、#4~~~}}
}}
\newcommand{\xxiii}[3]{\\[.5pt]%
\settowidth{\la}{A、#1~~~}
\settowidth{\lb}{B、#2~~~}
\settowidth{\lc}{C、#3~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A、#1 \\ B、#2 \\ C、#3 } { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A、#1~~~}%
\makebox[\lhalf][l]{B、#2~~~}\\%
\makebox[\lhalf][l]{C、#3~~~}}%
{\noindent
\makebox[\lquarter][l]{A、#1~~~}%
\makebox[\lquarter][l]{B、#2~~~}%
\makebox[\lquarter][l]{C、#3~~~}}
}}
\newcommand{\xxv}[5]{\\[.5pt]%
\settowidth{\la}{A、#1~~~}
\settowidth{\lb}{B、#2~~~}
\settowidth{\lc}{C、#3~~~}
\settowidth{\ld}{D、#4~~~}
\settowidth{\lee}{E、#5~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {}
\ifthenelse{\lengthtest{\lmax < \ld}} {\setlength{\lmax}{\ld}} {}
\ifthenelse{\lengthtest{\lmax < \lee}} {\setlength{\lmax}{\lee}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A、#1 \\ B、#2 \\ C、#3 \\ D、#4 \\ E、#5} { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A、#1~~~}%
\makebox[\lhalf][l]{B、#2~~~}\\%
\makebox[\lhalf][l]{C、#3~~~}%
\makebox[\lhalf][l]{D、#4~~~}\\%
\makebox[\lhalf][l]{E、#5~~~}}%
{\noindent
\makebox[\lquarter][l]{A、#1~~~}%
\makebox[\lquarter][l]{B、#2~~~}%
\makebox[\lquarter][l]{C、#3~~~}%
\makebox[\lquarter][l]{D、#4~~~}\\%
\makebox[\lquarter][l]{E、#5~~~}}
}}
\newcommand{\xxvi}[6]{\\[.5pt]%
\settowidth{\la}{A、#1~~~}
\settowidth{\lb}{B、#2~~~}
\settowidth{\lc}{C、#3~~~}
\settowidth{\ld}{D、#4~~~}
\settowidth{\lee}{E、#5~~~}
\settowidth{\lf}{E、#6~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {}
\ifthenelse{\lengthtest{\lmax < \ld}} {\setlength{\lmax}{\ld}} {}
\ifthenelse{\lengthtest{\lmax < \lee}} {\setlength{\lmax}{\lee}} {}
\ifthenelse{\lengthtest{\lmax < \lf}} {\setlength{\lmax}{\lf}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A、#1 \\ B、#2 \\ C、#3 \\ D、#4 \\ E、#5 \\ F、#6} { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A、#1~~~}%
\makebox[\lhalf][l]{B、#2~~~}\\%
\makebox[\lhalf][l]{C、#3~~~}%
\makebox[\lhalf][l]{D、#4~~~}\\%
\makebox[\lhalf][l]{E、#5~~~}%
\makebox[\lhalf][l]{F、#6~~~}}%
{\noindent
\makebox[\lquarter][l]{A、#1~~~}%
\makebox[\lquarter][l]{B、#2~~~}%
\makebox[\lquarter][l]{C、#3~~~}%
\makebox[\lquarter][l]{D、#4~~~}\\%
\makebox[\lquarter][l]{E、#5~~~}%
\makebox[\lquarter][l]{F、#6~~~}}%
}}
%填空题画线 \tk
%\newcommand{\tk}[2][2.5]{\; \underline{\hspace{#1 cm} \hphantom{#2} \hspace{#1 cm} } \, }
%判断题后面加括号
\newcommand{\pd}[2][1]{\nolinebreak\dotfill\mbox{\raisebox{-1.8pt}
{$\cdots$}(\makebox[#1 cm][c]{
\ifthenelse{\boolean{print}}
{\ifthenelse{\equal{#2}{t}}{\Checkmark}{\XSolid}}
{}
})}}
\newboolean{print}
\setboolean{print}{true}
\usepackage{ulem}
\newcommand{\tk}[2][0.5]{\;\uline{
\hspace*{#1 cm}
\ifthenelse{\boolean{print}}{#2}{\hphantom{#2}}
\hspace*{#1 cm}
} }
\newcommand{\jd}[2][4]{\par
\begin{minipage}[t][#1cm][t]{0.92\linewidth}
\ifthenelse{\boolean{print}}{#2}{}
\end{minipage}
}
改过的「data/shijuan_ys」
\usepackage[utf8]{inputenc}
\usepackage[paperwidth=36.8cm,paperheight=26cm,
top=2cm,bottom=2cm,right=2cm,left=3.cm,
columnsep=1.5cm]{geometry}
\columnseprule=.4pt
\usepackage{bbding}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{wasysym}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{tabu}
\usepackage{paralist}
\usepackage{lastpage}
\usepackage{enumerate}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}
\fancyfoot[CO,CE]{第~\thepage~页~~共~\pageref{LastPage}~页}
\fancyhead[RE]{\leavevmode\vbox to0pt{
\vss\rlap{\putzdxx }\vskip -26cm }} %奇数页眉的右边
\fancyhead[LO]{\leavevmode\vbox to0pt{
\vss\rlap{\putzdx }\vskip -26cm }} %偶数页眉的左边
\newsavebox{\zdxa}%装订线
\sbox{\zdxa}
{\parbox{27cm}{\centering \heiti \hspace{1cm}
系~部:\underline{\makebox[30mm][c]{}}~~~ 班~级:\underline{\makebox[45mm][c]{}}~~~ 姓~名:\underline{\makebox[30mm][c]{}}~~~ 学~号:\underline{\makebox[30mm][c]{}} \\
\vspace{1mm}
% 请在所附答题纸上空出密封位置。并填写试卷序号、班级、学号和 姓名\\
%答题时学号
% \vspace{1mm}
\dotfill{} 〇 \dotfill{} 密\dotfill{}封\dotfill{}线\dotfill{}〇\dotfill{} \\
}}
\newsavebox{\zdxb}%装订线
\sbox{\zdxb}
{\parbox{27cm}{\centering \heiti
\vspace{30mm}
\vspace{1mm}
\dotfill{} 〇 \dotfill{}密\dotfill{}封\dotfill{}线\dotfill{}〇\dotfill{} \\
}}
\newcommand{\putzdx}{
\hspace{-1.7cm}\parbox{1cm}{\vspace{-1.5cm}
\rotatebox[origin=c]{90}{
\usebox{\zdxa}
}}
}
\newcommand{\putzdxx}{
\hspace{0.3cm}\parbox{1cm}{\vspace{-1.5cm}
\rotatebox[origin=c]{-90}{
\usebox{\zdxb}
}}
}
\usepackage{ifthen}
%选择题选项命令 \xx \xxiii \xxv \xxvi
\newlength{\la}
\newlength{\lb}
\newlength{\lc}
\newlength{\ld}
\newlength{\lee}
\newlength{\lf}
\newlength{\lhalf}
\newlength{\lquarter}
\newlength{\lmax}
\newcommand{\xx}[4]{\\[.5pt]%
\settowidth{\la}{A.#1~~~}
\settowidth{\lb}{B.#2~~~}
\settowidth{\lc}{C.#3~~~}
\settowidth{\ld}{D.#4~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {} \ifthenelse{\lengthtest{\lmax < \ld}} {\setlength{\lmax}{\ld}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A.#1 \\ B.#2 \\ C.#3 \\ D.#4 } { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A.#1~~~}%
\makebox[\lhalf][l]{B.#2~~~}\\%
\makebox[\lhalf][l]{C.#3~~~}%
\makebox[\lhalf][l]{D.#4~~~}}%
{\noindent\makebox[\lquarter][l]{A.#1~~~}%
\makebox[\lquarter][l]{B.#2~~~}%
\makebox[\lquarter][l]{C.#3~~~}%
\makebox[\lquarter][l]{D.#4~~~}}
}}
\newcommand{\xxiii}[3]{\\[.5pt]%
\settowidth{\la}{A.#1~~~}
\settowidth{\lb}{B.#2~~~}
\settowidth{\lc}{C.#3~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A.#1 \\ B.#2 \\ C.#3 } { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A.#1~~~}%
\makebox[\lhalf][l]{B.#2~~~}\\%
\makebox[\lhalf][l]{C.#3~~~}}%
{\noindent
\makebox[\lquarter][l]{A.#1~~~}%
\makebox[\lquarter][l]{B.#2~~~}%
\makebox[\lquarter][l]{C.#3~~~}}
}}
\newcommand{\xxv}[5]{\\[.5pt]%
\settowidth{\la}{A.#1~~~}
\settowidth{\lb}{B.#2~~~}
\settowidth{\lc}{C.#3~~~}
\settowidth{\ld}{D.#4~~~}
\settowidth{\lee}{E.#5~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {}
\ifthenelse{\lengthtest{\lmax < \ld}} {\setlength{\lmax}{\ld}} {}
\ifthenelse{\lengthtest{\lmax < \lee}} {\setlength{\lmax}{\lee}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A.#1 \\ B.#2 \\ C.#3 \\ D.#4 \\ E.#5} { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A.#1~~~}%
\makebox[\lhalf][l]{B.#2~~~}\\%
\makebox[\lhalf][l]{C.#3~~~}%
\makebox[\lhalf][l]{D.#4~~~}\\%
\makebox[\lhalf][l]{E.#5~~~}}%
{\noindent
\makebox[\lquarter][l]{A.#1~~~}%
\makebox[\lquarter][l]{B.#2~~~}%
\makebox[\lquarter][l]{C.#3~~~}%
\makebox[\lquarter][l]{D.#4~~~}\\%
\makebox[\lquarter][l]{E.#5~~~}}
}}
\newcommand{\xxvi}[6]{\\[.5pt]%
\settowidth{\la}{A.#1~~~}
\settowidth{\lb}{B.#2~~~}
\settowidth{\lc}{C.#3~~~}
\settowidth{\ld}{D.#4~~~}
\settowidth{\lee}{E.#5~~~}
\settowidth{\lf}{E.#6~~~}
\ifthenelse{\lengthtest{\la > \lb}}
{\setlength{\lmax}{\la}}{\setlength{\lmax}{\lb}}
\ifthenelse{\lengthtest{\lmax < \lc}} {\setlength{\lmax}{\lc}} {}
\ifthenelse{\lengthtest{\lmax < \ld}} {\setlength{\lmax}{\ld}} {}
\ifthenelse{\lengthtest{\lmax < \lee}} {\setlength{\lmax}{\lee}} {}
\ifthenelse{\lengthtest{\lmax < \lf}} {\setlength{\lmax}{\lf}} {}
\setlength{\lhalf}{0.5\linewidth}
\setlength{\lquarter}{0.25\linewidth}
\ifthenelse{\lengthtest{\lmax > \lhalf}}
{\noindent{}A.#1 \\ B.#2 \\ C.#3 \\ D.#4 \\ E.#5 \\ F.#6} { \ifthenelse{\lengthtest{\lmax > \lquarter}}
{\noindent
\makebox[\lhalf][l]{A.#1~~~}%
\makebox[\lhalf][l]{B.#2~~~}\\%
\makebox[\lhalf][l]{C.#3~~~}%
\makebox[\lhalf][l]{D.#4~~~}\\%
\makebox[\lhalf][l]{E.#5~~~}%
\makebox[\lhalf][l]{F.#6~~~}}%
{\noindent
\makebox[\lquarter][l]{A.#1~~~}%
\makebox[\lquarter][l]{B.#2~~~}%
\makebox[\lquarter][l]{C.#3~~~}%
\makebox[\lquarter][l]{D.#4~~~}\\%
\makebox[\lquarter][l]{E.#5~~~}%
\makebox[\lquarter][l]{F.#6~~~}}%
}}
%填空题画线 \tk
%\newcommand{\tk}[2][2.5]{\; \underline{\hspace{#1 cm} \hphantom{#2} \hspace{#1 cm} } \, }
%判断题后面加括号
\newcommand{\pd}[2][1]{\nolinebreak\dotfill\mbox{\raisebox{-1.8pt}
{$\cdots$}(\makebox[#1 cm][c]{
\ifthenelse{\boolean{print}}
{\ifthenelse{\equal{#2}{t}}{\Checkmark}{\XSolid}}
{}
})}}
\newboolean{print}
\setboolean{print}{true}
\usepackage{ulem}
\newcommand{\tk}[2][0.5]{\kt \;\uline{
\hspace*{#1 cm}
\ifthenelse{\boolean{print}}{#2}{\hphantom{#2}}
\hspace*{#1 cm}
\st
} }
\newcommand{\jd}[2][4]{\par
\begin{minipage}[t][#1cm][t]{0.92\linewidth}
\ifthenelse{\boolean{print}}{#2}{}
\end{minipage}
}
谢谢,已经解决了