generate_calc_paper
Generate calculation worksheet PDFs with configurable problem groups, types, and difficulty levels. Optionally produce answer keys.
Instructions
一键生成计算题卷(确定性程序生成非 LLM)→ 题目卷 PDF(口算主场景不出答案卷)。
按 groups 逐组生成(每组一个类型一个多栏区块),约束内置:进退位可控、除法整除/ 有余数分型、分数自动约分/假分数化带分数、全卷跨组去重;题目卷带「姓名/用时/做对」栏。 参数: groups: [{type, count, label?, level?}],type 从 list_calc_types 查(严禁编造)。 title: 卷名(卷面可见,如"口算训练③(10分钟)")。 seed: 随机种子(任意字符串,同串复现同一份卷;空=随机)。 with_group_label: False 时不印组标(整卷混排风格)。🔴 组标卷面只印「一、二」 序号标识、绝不印练习内容名(学生自明,规范 2026-07-19)。 with_answer: True 才附带教师答案卷(🔴 口算卷默认不出,高年级分数/方程需核对时才开)。 fill_rows: 缺省 True = 每组题数向上凑整到栏数倍数(网格每行凑满,故实际题数可能 多于 count);要「填几题出几题」传 False。 返回: {ok, question_url, answer_url?, total, seed};未登录/未知类型 → {ok:false, reason}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| title | No | 口算训练 | |
| groups | Yes | ||
| fill_rows | No | ||
| with_answer | No | ||
| with_group_label | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||