Releases: xkwxdyy/xchoices
Releases · xkwxdyy/xchoices
v0.1.1 - 2022-02-07
v0.1.0 - 2022-02-02
[v0.1.0] - 2022-02-02
Changed
- 将
hlist
的设置从sethlist
改为环境的可选参数 - 去掉
xchoices
环境中varwidth
环境的- \leftmargin
Removed
- 删去
mode
键值
Fixed
- 修复标签对齐问题并重新调整不同
label-pos
的参数(#4)
v0.0.4 - 2022-02-01
[v0.0.4] - 2022-02-01
Added
- 上传用户手册
Changed
- 更新
README.md
的“宏包开发背景”内容
Fixed
[v0.0.3] - 2022-01-31
Added
- 增加
label-style
的chinese值 - chinese的label-style时post-label设置为“、”
Changed
- 完善a4paper下的
label-pos
参数
Fixed
- 修复
\item
与enumerate
环境冲突bug
v0.0.2 2022-01-30
[v0.0.2] - 2022-01-30
Added
- 基本完成
coffinchoice
命令的重写 - 增加插图判断
- 完善
coffinchoice
不同方位的细节调整 - 增加基于coffin的
xchoices*
环境 - 增加环境上下方间距控制
Changed
- 当
label-pos
为right
系列时,修改label样式为形如".A" xchoice
环境更名为xchoices
环境- 修改
\xitem
为\item
Removed
- 移除
\xchoices
命令,只保留xchoices
环境(#I4SKCL) - 去掉环境的“解析”接口
- 合并
xchoices
环境和xchoices*
环境为xchoices
环境
Fixed
- 修复
xchoice
环境的垂直位移偏差bug
v0.0.1 - 2022-01-29
LaTeX-Package: xchoices
A package for flexibly LaTeXing choice items based on hlist environment and coffin.
Github Repository: https://github.com/xkwxdyy/xchoices
Gitee Repository: https://gitee.com/xkwxdyy/xchoices
Author: Kangwei Xia kangweixia_xdyy@163.com
宏包说明
本宏包为本人前段时间编写的宏包choices
的重新推翻编写的版本,并增加了许多功能:
(choices宏包仓库:github, gitee)
变更
- 原
\choices
命令更改为\xchoices
- 完成基于
hlist
环境的\xchoices
命令的重写 - 更改全局设置接口为
\xchoicesetup
新增
- 新增了选择题的括号命令
\paren
,默认到该行行尾,内容多时自动到下一行行尾 - 增加了代码风格类似于
list
环境的xchoice
环境,用\xitem
分隔每一项(由于环境和命令不能重名,所以环境没有加s) - 基于
xchoice
环境下增加了答案和解析的控制显示,\xitem*
表示该项为正确答案,支持多选题。示例如下
\begin{xchoice}[
analysis-content = {
It's obvious that D is false, then ...
}
]
\xitem* 正确选项
\xitem 错误选项
\xitem* 正确选项
\xitem 错误选项
\end{xchoice}
- 增加和完善了一系列键值,目前有
- items:每行排多少个,系统会根据选项宽度自动计算合适值,可用此键值手动干预
- pre-label:label前的内容,初始为空
- post-label:label后的内容,初始值为"."
- label-style:label的样式
- arabic:阿拉伯数字
- roman:小写罗马数字
- Roman:大写罗马数字
- quan:带圈数字
- alph:小写英文字母
- Alph:大写英文字母
- none:没有label
- vsep:两行选项之间的额外垂直偏移量(通过
\sethlist
接口实现) - hsep:两列选项之间的额外垂直偏移量(通过
\sethlist
接口实现) - showanswer:控制答案显示
showanswer
,showanswer = true
表示显示答案showanswer = false
表示隐藏答案
- answer-label-content:答案label的内容,初始值为“【参考答案】”
- answer-label-color:答案label的颜色,初始值为
violet
- showanalysis:控制解析显示
showanalysis
,showanalysis = true
表示显示解析showanalysis = false
表示隐藏解析
- analysis-label-conent:解析label的内容,初始值为“【解析】”
- analysis-label-color:解析label的颜色,初始值为
violet
未完成
- 可以改变label位置的
\coffinchoice
命令的重写 - 增加乱序且答案显示正确的功能
参与贡献
Github
issues: https://github.com/xkwxdyy/xchoices/issues