summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bhcexam
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-06-23 23:26:54 +0000
committerKarl Berry <karl@freefriends.org>2014-06-23 23:26:54 +0000
commiteebd4ae245ee096e3f02f10db88408cb906aa7ec (patch)
treecd9961d84df8bb8f46ded64c200e8a1920931ac0 /Master/texmf-dist/tex/latex/bhcexam
parent54d546a4891626936992e9cdf0b1cdf4e6cc0aeb (diff)
bhcexam (23jun14)
git-svn-id: svn://tug.org/texlive/trunk@34360 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bhcexam')
-rw-r--r--Master/texmf-dist/tex/latex/bhcexam/BHCexam.cfg7
-rw-r--r--Master/texmf-dist/tex/latex/bhcexam/BHCexam.cls131
2 files changed, 76 insertions, 62 deletions
diff --git a/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cfg b/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cfg
index 39fc16e28ef..3ab4457814c 100644
--- a/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cfg
+++ b/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cfg
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2011 by Charles Bao <charley792@gmail.com>
+%% Copyright (C) 2014 by Charles Bao <charley792@gmail.com>
%%
%% This file was generated from file(s) of the BHCexam package project.
%% ----------------------------------------------------------------------
@@ -24,13 +24,12 @@
%% This is the configuration file of the BHCexam package with LaTeX2e.
%%
\ProvidesFile{BHCexam.cfg}
- [2011/07/27 v0.2 BHCexam
+ [2014/02/18 v0.3 BHCexam
configuration file]
-
\def\@biaoti{2011年全国普通高等学校招生统一考试(上海卷)}
-\def\@kemu{数学(理科)}
+\def\@fubiaoti{数学(理科)}
\def\@zongfen{150}
\def\@shijian{120}
\def\@tiankong@zongfen{56}
diff --git a/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cls b/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cls
index 37a94fd9f28..7601b184e34 100644
--- a/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cls
+++ b/Master/texmf-dist/tex/latex/bhcexam/BHCexam.cls
@@ -49,15 +49,14 @@
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{BHCexam}
- [2011/07/27 v0.2 BHCexam
+ [2014/02/18 v0.3 BHCexam
document class]
-
\input{ctex-common-opts.def}
\input{ctex-class-opts.def}
\input{ctex-caption-opts.def}
-\newif\if@sixteenkpaper \@sixteenkpapertrue
-\DeclareOption{16kpaper}{\@sixteenkpaperfalse}
+\newif\if@sixteenkpaper \@sixteenkpaperfalse
+\DeclareOption{16kpaper}{\@sixteenkpapertrue}
\newif\if@marginline \@marginlinefalse
\DeclareOption{marginline}{\@marginlinetrue}
\newif\if@noindent \@noindentfalse
@@ -72,10 +71,13 @@
\input{ctex-common.def}
\input{ctex-caption.def}
\input{ctex-class.def}
-\RequirePackage{amsmath,amssymb,bm}
-\RequirePackage{graphicx}
\RequirePackage{ifpdf,ifxetex}
+\RequirePackage{amsmath,amssymb,amsthm,bm,bbding,pifont,dsfont}
+\RequirePackage{mathtools}
+\RequirePackage{paralist,cases,tabularx}
+\RequirePackage{pstricks,pst-plot,xcolor,graphicx}
\if@marginline
+\marginparwidth = 2cm
\if@sixteenkpaper
\RequirePackage[papersize={184mm,260mm},hmargin={3cm,2cm},
vmargin={2cm,2cm},marginparsep=0.5cm,hoffset=0cm,voffset=0cm,
@@ -91,7 +93,7 @@ headsep=0.5cm,twoside]{geometry}
vmargin={2cm,2cm},marginparsep=0.5cm,hoffset=0cm,voffset=0cm,
footnotesep=0.5cm,headsep=0.5cm]{geometry}
\else
-\RequirePackage[paper=a4paper,hmargin={2cm,2cm},vmargin={2cm,2cm},
+\RequirePackage[papersize={210mm,297mm},hmargin={2cm,2cm},vmargin={2cm,2cm},
marginparsep=0.5cm,hoffset=0cm,voffset=0cm,footnotesep=0.5cm,
headsep=0.5cm]{geometry}
\fi
@@ -99,20 +101,21 @@ headsep=0.5cm]{geometry}
\renewcommand{\baselinestretch}{1.5}
\pagestyle{headandfoot}
\header{}{}{}
-\footer{}{\small \kaishu{\@kemu}\quad 第~\thepage~页(共~\numpages~页)}{}
+\footer{}{\small \quad 第~\thepage~页(共~\numpages~页)}{}
\pointname{分}
\pointformat{\kaishu (\thepoints)}
-\renewcommand{\solutiontitle}{\noindent\heiti{解:}\noindent}
+\renewcommand{\questionshook}{
+ \settowidth{\leftmargin}{22.\hskip\labelsep}
+ \if@noindent \setlength\leftmargin{0pt} \fi
+}
\renewcommand{\thepartno}{\arabic{partno}}
\renewcommand{\partlabel}{(\thepartno)}
\renewcommand{\partshook}{
\settowidth{\leftmargin}{(3).\hskip\labelsep}
\if@noindent \setlength\leftmargin{0pt} \fi
}
-\renewcommand{\choiceshook}{
- \settowidth{\leftmargin}{W.\hskip\labelsep}
- \if@noindent \setlength\leftmargin{0pt} \fi
-}
+\newif\if@cancelspace \@cancelspacetrue
+\renewcommand{\solutiontitle}{\noindent 解:\noindent}
\renewenvironment{solution}%
{%
\ifprintanswers
@@ -120,8 +123,8 @@ headsep=0.5cm]{geometry}
\Solution@Emphasis
\begin{TheSolution}%
\else
- \ifcancelspace
- % Do nothing
+ \if@cancelspace
+ %\unskip
\else
\par
\penalty 0
@@ -171,10 +174,10 @@ headsep=0.5cm]{geometry}
\reversemarginpar
\fi
\newcommand\biaoti[1]{\def\@biaoti{#1}}
-\newcommand\kemu[1]{\def\@kemu{#1}}
+\newcommand\fubiaoti[1]{\def\@fubiaoti{#1}}
\renewcommand\maketitle{
\begin{center}{\heiti \Large{\@biaoti}}\end{center}
- \begin{center}{\heiti \Large{\@kemu}}\end{center}
+ \begin{center}{\heiti \Large{\@fubiaoti}}\end{center}
}
\newcommand\xinxi[2]{
\def\@zongfen{#1}
@@ -216,10 +219,6 @@ headsep=0.5cm]{geometry}
\end{tabular}
\bigskip
}
-\newcommand\oneb{\underline{\hspace{1em}}\hspace{0.001em}}
-\newcommand\twob{\oneb\oneb}
-\newcommand{\sixb}{\twob\twob}
-\newcommand\tenb{\twob\twob\twob\twob\twob}
\newcounter{@dati}
\newif\if@houpinfen \@houpinfenfalse
\newcommand\settk[3]{
@@ -233,10 +232,28 @@ headsep=0.5cm]{geometry}
\fullwidth{
\if@printbox \pinfen \fi
\begin{minipage}{\textwidth-\@boxwidth}
- \heiti \chinese{@dati}. 填空题(\kaishu 本大题满分~\@tiankong@zongfen~分) \heiti 本大题有~\@tiankong@tishu~题, 考生应在答题纸相应编号的空格内直接写结果, 每个空格填对得~\@tiankong@fen~分, 否则一律得零分.
+ \heiti \chinese{@dati}. 填空题:本大题共~\@tiankong@tishu~题,满分~\@tiankong@zongfen~分. 请在横线上方填写最终的、最准确的、最完整的结果. 每题填写正确得~\@tiankong@fen~分,否则一律得0分.
\end{minipage}
}
}
+\newcommand{\stk}[1]{
+ \ifprintanswers
+ \underline{~#1~}
+ \else
+ \underline{~\hspace{1cm}~}
+ \fi}
+\newcommand{\mtk}[1]{
+ \ifprintanswers
+ \underline{~#1~}
+ \else
+ \underline{~\hspace{2cm}~}
+ \fi}
+\newcommand{\ltk}[1]{
+ \ifprintanswers
+ \underline{~#1~}
+ \else
+ \underline{~\hspace{3cm}~}
+ \fi}
\newcommand\setxz[3]{
\def\@xuanze@zongfen{#1}
\def\@xuanze@tishu{#2}
@@ -248,58 +265,56 @@ headsep=0.5cm]{geometry}
\fullwidth{
\if@printbox \pinfen \fi
\begin{minipage}{\textwidth-\@boxwidth}
- \heiti \chinese{@dati}. 选择题(\kaishu 本大题满分~\@xuanze@zongfen~分) \heiti 本大题共有~\@xuanze@tishu~题, 每题有且只有一个正确答案, 考生应在答题纸的相应编号上, 将代表答案的小方格涂黑, 选对得~\@xuanze@fen~分, 否则一律得零分.
+ \heiti \chinese{@dati}. 选择题:本大题共~\@xuanze@tishu~题,满分~\@xuanze@zongfen~分. 请选择你认为最正确的答案(每小题有且只有一个)写在括号内. 每题填写正确得~\@xuanze@fen~分,否则得0分.
\end{minipage}
}
}
+\newcommand{\onech}[4]{
+\renewcommand\arraystretch{1.4}
+\begin{tabularx}{\linewidth}{XXXX}
+\setlength\tabcolsep{0pt}
+(A) #1 & (B) #2 & (C) #3 & (D) #4 \\
+\end{tabularx}
+\unskip \unskip}
+\newcommand{\twoch}[4]{
+\renewcommand\arraystretch{1.4}
+\begin{tabularx}{\linewidth}{XX}
+\setlength\tabcolsep{0pt}
+(A) #1 & (B) #2 \\
+(C) #3 & (D) #4
+\end{tabularx}
+\unskip \unskip}
+\newcommand{\fourch}[4]{
+\renewcommand\arraystretch{1.4}
+\begin{tabularx}{\linewidth}{X}
+\setlength\tabcolsep{0pt}
+(A) #1 \\
+(B) #2 \\
+(C) #3 \\
+(D) #4 \\
+\end{tabularx}
+\unskip \unskip}
\newcommand\setjd[2]{
\def\@jianda@zongfen{#1}
\def\@jianda@tishu{#2}
}
\newcommand\jianda{
+ \@cancelspacefalse
\@houpinfentrue
- \qformat{\hskip\labelsep \kaishu \thequestion.~~(本题满分~\totalpoints~分)\hfill}
\stepcounter{@dati}
\fullwidth{
\if@printbox \pinfen \fi
\begin{minipage}{\textwidth-\@boxwidth}
- \heiti \chinese{@dati}. 简答题(\kaishu 本大题满分~\@jianda@zongfen~分)~\heiti 本大题共有~\@jianda@tishu~题, 解答下列各题必须在答题纸相应的编号规定区域内写出必要的步骤.
+ \heiti \chinese{@dati}. 简答题:本大题共~\@jianda@tishu~题,满分~\@jianda@zongfen~分. 请在题后空处写出必要的推理计算过程.
\end{minipage}
}
}
-\newcommand{\rc}{\text{C}}
-\newcommand{\ri}{\text{i}}
-\newcommand{\ra}{\text{A}}
-\newcommand{\rd}{\text{d}}
-\newcommand\tian{\ensuremath{\text{d}}}
-\newcommand\A{\ensuremath{\text{A}}}
-\def\m{\ensuremath{\text{m}}}
-\newcommand\g{\ensuremath{\text{g}}}
-\newcommand\kg{\ensuremath{\text{kg}}}
-\newcommand\degree{\ensuremath{^\circ}}
-\newcommand\ssd{\ensuremath{\text{\textcelsius}}}
-\newcommand\rad{\ensuremath{\text{rad}}}
-\newcommand\N{\ensuremath{\text{N}}}
-\newcommand\Pa{\ensuremath{\text{Pa}}}
-\newcommand\J{\ensuremath{\text{J}}}
-\newcommand\W{\ensuremath{\text{W}}}
-\newcommand\ohm{\ensuremath{\Omega}}
-\newcommand\mol{\ensuremath{\text{mol}}}
-\newcommand\K{\ensuremath{\text{K}}}
-\newcommand\h{\ensuremath{\text{h}}}
-\newcommand\ton{\ensuremath{\text{t}}}
-\newcommand\squarem{\ensuremath{\text{m$^2$}}}
-\newcommand\cubicm{\ensuremath{\text{m$^3$}}}
-\newcommand\cm{\ensuremath{\text{cm}}}
-\newcommand\mm{\ensuremath{\text{mm}}}
-\newcommand\squarecm{\ensuremath{\text{cm$^2$}}}
-\newcommand\cubiccm{\ensuremath{\text{cm$^3$}}}
-\newcommand\squaremm{\ensuremath{\text{mm$^2$}}}
-\newcommand\cubicmm{\ensuremath{\text{mm$^3$}}}
-\newcommand\liter{\ensuremath{\text{L}}}
-\newcommand{\abs}[1]{\left|#1\right|}
-\newcommand\arccot{\mathop{\text{arccot}}}
-\newcommand\pingxing{\parallel}
+\delimitershortfall-1sp
+\newcommand\abs[1]{\left|#1\right|}
+\renewcommand{\geq}{\geqslant}
+\renewcommand{\ge}{\geqslant}
+\renewcommand{\leq}{\leqslant}
+\renewcommand{\le}{\leqslant}
\AtEndOfPackage{\makeatletter\input{BHCexam.cfg}\makeatother}
\endinput