Git Product home page Git Product logo

bhcexam's People

Contributors

camusecao avatar mathedu4all avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bhcexam's Issues

qrcode下载失败,maketitle报错但运行

从题库中下载的试卷运行中报错,已经正确安装了wget(题目中的图片可以加载),在反复测试中定位到错误的位置为qrcodemaketitle:

  1. qrcode.png 下载提示SSL错误(题目中图片可正常下载)
ERROR: cannot verify www.mathcrowd.cn's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=Encryption Everywhere DV TLS CA - G1': Unable to locally verify the issuer's authority. To connect to www.mathcrowd.cn insecurely, use `--no-check-certificate'. 无法建立 SSL 连接。
  1. maketitle 报错:
Undefined control sequence. \maketitle

error
下面为测试所用内容,题目部分可以正常加载,所以此处仅用test word替代,测试并不影响报错信息

\documentclass[a4paper, windows]{BHCexam}
\begin{document}
\write18{wget 'http://www.mathcrowd.cn/index.php?r=worksheet/qrcode&id=OnM8' -O qrcode.png}
\logo{qrcode.png}
\title{2019年全国3高考}
\subtitle{数学文科试卷}
\notice{满分150分, 120分钟完成, 允许使用计算器,答案一律写在答题纸上.}
\author{微信关注公众号:橘子数学}
\date{}
\maketitle
test words
\end{document}

OUTPUT:

title

编译环境为:win10+texlive2019+BHCexam v1.0.
BHCexam.clsmaketitle部分定义:

\renewcommand*{\title}[1]{\gdef\@title{#1}}
\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}
\newcommand*{\notice}[1]{\gdef\@notice{#1}}
\renewcommand*{\author}[1]{\gdef\@author{#1}}
\renewcommand*{\date}[1]{\gdef\@date{#1}}
\newcommand*{\logo}[1]{\gdef\@logo{#1}}
\renewcommand\maketitle{\begingroup
	\renewcommand{\baselinestretch}{2}
	\newpage
	\IfFileExists{\@logo}{
		\begin{minipage}{0.1\textwidth}
			\includegraphics[width=1.5cm]{\@logo}
		\end{minipage}
	}{}
	\begin{minipage}{0.9\textwidth}
	\begin{center}
		\heiti \Large
		\@title \par
		\@subtitle \par
		\ifdefempty{\@notice}{}{
			\fbox{\normalsize \@notice} \par
		}
		\songti \normalsize \@author \par
	\end{center}
	\end{minipage}
	\begin{flushright}
		\small \@date \par
	\end{flushright}
	\songti \normalsize
\endgroup}

示例文档 example.pdf 的一些排版建议

  1. Screen Shot 2020-10-20 at 22 43 55

按照 ISO 和国标的要求应该用正体的 i。

  1. Screen Shot 2020-10-20 at 22 44 54

「A」前面的逗号应该用中文逗号,西文逗号的用法要在后面接空格,这里的逗号和「A」太靠近。
另外如果要用开明式标点符号,应该用 ctex 设置 punct = kaiming。句点可以用 xeCJKMapping = fullwidth-stop 功能将「。」映射为「.」(U+FF0E 全宽句点),不应用西文的半宽句点「.」。

  1. Screen Shot 2020-10-20 at 22 53 27

补集应该用 \complement

  1. Screen Shot 2020-10-20 at 22 54 23

按照 ISO 和国标的要求,数值和单位间留适当空隙。建议使用 siunitx 宏包处理国际单位:\SI{105}{cm}

  1. Screen Shot 2020-10-20 at 22 57 08

应该用 \sin\cos 得到正体的三角函数符号,按照 ISO 和国标的要求这里的 \pi 也要用正体。

  1. Screen Shot 2020-10-20 at 22 58 31

这里应该用数学模式,\dots 后也应该有逗号。

  1. Screen Shot 2020-10-20 at 23 00 27

印刷品的向量一般用粗斜体。

  1. 我个人认为 STIX 的希腊字母字形比较奇怪,我个人不推荐使用。

消除 bad box

bhcexam/v1.4/BHCexam.cls

Lines 406 to 443 in cb920dc

\newcommand{\fourchoices}[4]{
\if@showparen \dotfill (\qquad) \fi
\par
\settowidth{\choicelengtha}{A.~#1~~~}
\settowidth{\choicelengthb}{B.~#2~~~}
\settowidth{\choicelengthc}{C.~#3~~~}
\settowidth{\choicelengthd}{D.~#4~~~}
\ifthenelse{\lengthtest{\choicelengtha>\choicelengthb}}{\setlength{\maxlength}{\choicelengtha}}{\setlength{\maxlength}{\choicelengthb}}
\ifthenelse{\lengthtest{\choicelengthc>\maxlength}}{\setlength{\maxlength}{\choicelengthc}}{}
\ifthenelse{\lengthtest{\choicelengthd>\maxlength}}{\setlength{\maxlength}{\choicelengthd}}{}
\ifthenelse{\lengthtest{\maxlength>0.4\linewidth}}
{
\begin{tabularx}{\linewidth}{X}
\setlength\tabcolsep{0pt}
A.~#1~~~\\
B.~#2~~~\\
C.~#3~~~\\
D.~#4~~~\\
\end{tabularx}
}
{
\ifthenelse{\lengthtest{\maxlength>0.2\linewidth}}
{
\begin{tabularx}{\linewidth}{XX}
\setlength\tabcolsep{0pt}
A.~#1~~~ & B.~#2~~~\\
C.~#3~~~ & D.~#4~~~\\
\end{tabularx}
}
{
\begin{tabularx}{\linewidth}{XXXX}
\setlength\tabcolsep{0pt}
A.~#1~~~ & B.~#2~~~ & C.~#3~~~ & D.~#4~~~\\
\end{tabularx}
}
}
\unskip \unskip
}

改为

\newcommand{\fourchoices}[4]{
	\if@showparen \dotfill (\qquad) \fi
	\par
	\settowidth{\choicelengtha}{A.~#1~~~}
	\settowidth{\choicelengthb}{B.~#2~~~}
	\settowidth{\choicelengthc}{C.~#3~~~}
	\settowidth{\choicelengthd}{D.~#4~~~}
	\ifthenelse{\lengthtest{\choicelengtha>\choicelengthb}}{\setlength{\maxlength}{\choicelengtha}}{\setlength{\maxlength}{\choicelengthb}}
	\ifthenelse{\lengthtest{\choicelengthc>\maxlength}}{\setlength{\maxlength}{\choicelengthc}}{}
	\ifthenelse{\lengthtest{\choicelengthd>\maxlength}}{\setlength{\maxlength}{\choicelengthd}}{}
	\ifthenelse{\lengthtest{\maxlength>0.4\linewidth}}
	{
		\begin{tabularx}{\linewidth}{X}
			\setlength\tabcolsep{0pt}
			A.~#1~~~\\
			B.~#2~~~\\
			C.~#3~~~\\
			D.~#4~~~\\
		\end{tabularx}
	}%
	{
		\ifthenelse{\lengthtest{\maxlength>0.2\linewidth}}
		{
			\begin{tabularx}{\linewidth}{XX}
				\setlength\tabcolsep{0pt}
				A.~#1~~~ & B.~#2~~~\\
				C.~#3~~~ & D.~#4~~~\\
			\end{tabularx}
		}%
		{
			\begin{tabularx}{\linewidth}{XXXX}
				\setlength\tabcolsep{0pt}
				A.~#1~~~  & B.~#2~~~ & C.~#3~~~ & D.~#4~~~\\ 
			\end{tabularx}
		}%
	}
	\unskip \unskip 
}

其它两个命令同理

关于“解”

有的题目是求解,所以用\begin{solution}-“解:“ ,但有的题目是证明,这是用\begin{solution}似乎有点很准确。如何针对“证明题“用“证明:“或“证:”的词冠

win系统下make指令错误

在win系统中cmd命令行中输入texdoc bhcexam,弹出窗口提示输入make *** 指令生成doc,但是win系统并没有提供make指令
1

可选参数s 调整

建议将 可选参数s(显示分数)调整到整张试卷,即作为文档的参数,而不是试题的参数

排版细节望改进

  • 选择题默认应该使用括号而非横线
  • \question 没有缩进,希望可以像\item那样缩进

win系统编译错误

从网站下载的BHCexam文件放到测试文件同一目录下,编译报错,删掉所有的wget部分,依然无法运行.
经过测试查错,终于运行成功,故特列出以下几个可能的问题:

  1. win系统需要加上选项windows
\documentclass[a4paper,windows]{BHCexam}
  1. 在win系统下只能用xelatex编译,且文件名不能为中文;
  2. 部分数学环境中的符号为中文符号;运行后可能无法正确显示(如|等)

去掉 groups 环境

去掉
\begin{groups}
\end{groups}。
groups环境作用于整张试卷,没有必要设置该环境

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.