diff --git a/dsBuild/dsUtils.iml b/dsBuild/dsUtils.iml new file mode 100644 index 00000000..9d25deee --- /dev/null +++ b/dsBuild/dsUtils.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/dsUtils/src/main/java/com/dsideal/Utils/PublishUtil.java b/dsUtils/src/main/java/com/dsideal/Utils/PublishUtil.java index 8f91a9ff..9e01943e 100644 --- a/dsUtils/src/main/java/com/dsideal/Utils/PublishUtil.java +++ b/dsUtils/src/main/java/com/dsideal/Utils/PublishUtil.java @@ -2,7 +2,7 @@ package com.dsideal.Utils; import cn.hutool.core.io.FileUtil; import cn.hutool.core.util.ZipUtil; -import com.alibaba.fastjson2.JSONObject; +import com.alibaba.fastjson.JSONObject; import com.jfinal.kit.Kv; import com.jfinal.kit.PathKit; import com.jfinal.kit.StrKit; diff --git a/ppt-generator-master/.idea/.gitignore b/ppt-generator-master/.idea/.gitignore new file mode 100644 index 00000000..6ac1cc3e --- /dev/null +++ b/ppt-generator-master/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ diff --git a/ppt-generator-master/.idea/inspectionProfiles/profiles_settings.xml b/ppt-generator-master/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 00000000..105ce2da --- /dev/null +++ b/ppt-generator-master/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/ppt-generator-master/.idea/misc.xml b/ppt-generator-master/.idea/misc.xml new file mode 100644 index 00000000..b42515dc --- /dev/null +++ b/ppt-generator-master/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/ppt-generator-master/.idea/modules.xml b/ppt-generator-master/.idea/modules.xml new file mode 100644 index 00000000..0ed79a13 --- /dev/null +++ b/ppt-generator-master/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ppt-generator-master/.idea/ppt-generator.iml b/ppt-generator-master/.idea/ppt-generator.iml new file mode 100644 index 00000000..e9632018 --- /dev/null +++ b/ppt-generator-master/.idea/ppt-generator.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/ppt-generator-master/.idea/vcs.xml b/ppt-generator-master/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/ppt-generator-master/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ppt-generator-master/GeneratePPT.py b/ppt-generator-master/GeneratePPT.py new file mode 100644 index 00000000..d967c3af --- /dev/null +++ b/ppt-generator-master/GeneratePPT.py @@ -0,0 +1,47 @@ +from pptx.dml.color import RGBColor + +from run import default + +# 模板配置 +model_dict = { + # 对于通用模板的相关配置,其它的模板未进行正确配置 + "通用": { + 'model_name': 'default-model', # 模板名称 + 'other_rgb': RGBColor(208, 206, 206), # 默认的文字颜色 + 'current_rgb': RGBColor(66, 85, 108), # 当前的文字颜色 + 'content_number_rgb': RGBColor(255, 255, 255), # 内容序号的颜色 + 'second_title_rgb': RGBColor(66, 85, 108) # 二级标题的颜色 + } +} + + +# 开始生成ppt +def generate(model_name, out_file_path, md_file_path): + default.gen_ppt_default(model_dict[model_name]['model_name'], # 模板名称 + out_file_path, # 输出文件路径 + md_file_path, # md文件路径 + '.', # 项目路径 + model_dict[model_name]['other_rgb'], # 默认文字颜色 + model_dict[model_name]['current_rgb'], # 当前文字颜色 + model_dict[model_name]['content_number_rgb'], # 内容序号的颜色 + model_dict[model_name]['second_title_rgb']) # 二级标题的颜色 + + +if __name__ == "__main__": + # 硬编码配置参数 + #FIXED_MD_PATH = r"D:\dsWork\ppt-generator-master\md-file\readme\default.md" + #FIXED_MD_PATH = r"D:\dsWork\ppt-generator-master\md-file\readme\3.md" + FIXED_MD_PATH = r"D:\dsWork\ppt-generator-master\md-file\readme\4.md" + # 模板名称 + TEMPLATE_NAME = "通用" + # 输出路径 + OUTPUT_PATH = "D:\dsWork\ppt-generator-master\output.pptx" + # 执行生成 + try: + # 调用生成逻辑 + generate(TEMPLATE_NAME, OUTPUT_PATH, FIXED_MD_PATH) + print(f"PPT生成成功!保存路径:{OUTPUT_PATH}") + except FileNotFoundError: + print(f"错误:Markdown文件不存在 {FIXED_MD_PATH}") + except Exception as e: + print(f"生成失败:{str(e)}") diff --git a/ppt-generator-master/assets/image-20230216112322072.png b/ppt-generator-master/assets/image-20230216112322072.png new file mode 100644 index 00000000..b71748b7 Binary files /dev/null and b/ppt-generator-master/assets/image-20230216112322072.png differ diff --git a/ppt-generator-master/left-aligned-template.docx b/ppt-generator-master/left-aligned-template.docx new file mode 100644 index 00000000..89d1dc45 Binary files /dev/null and b/ppt-generator-master/left-aligned-template.docx differ diff --git a/ppt-generator-master/md-file/readme/3.md b/ppt-generator-master/md-file/readme/3.md new file mode 100644 index 00000000..6175f7f2 --- /dev/null +++ b/ppt-generator-master/md-file/readme/3.md @@ -0,0 +1,126 @@ +--- +Title: 三角形的内角和 +Author: 东师理想 + +Date: 2024.03.15 +--- + +# 教学目标 + +## 知识与技能 + +> 通过本课学习,学生能够: + +- 掌握三角形内角和等于180度的定理 +- 运用内角和定理解决简单几何问题 +- 培养动手操作验证数学猜想的能力 + +## 过程与方法 + +> 采用探究式学习方式: + +- 通过撕拼法/度量法发现内角和规律 +- 经历"猜想-验证-结论"科学探究过程 +- 发展空间观念和推理能力 + +# 教学重难点 + +## 教学重点 + +> 关键知识掌握点: + +- 三角形内角和定理的理解 +- 定理的证明方法探究 + +## 教学难点 + +> 需要突破的认知难点: + +- 不同形状三角形内角和的统一性 +- 数学归纳思想的初步建立 + +# 教学准备 + +## 教具准备 + +> 保障教学的物质基础: + +- 各类三角形纸质学具(锐角/直角/钝角) +- 量角器、彩色卡纸、固体胶 +- 多媒体课件(动画演示) + +# 教学过程(40分钟) + +## 1. 情境导入(5分钟) + +> 创设生活化问题情境: + +- 展示金字塔、自行车三角架等实物图片 +- 抛出问题:"这些三角形结构为何如此稳固?" +- 引出课题:"今天我们一起探索三角形的秘密" + +## 2. 探究活动(15分钟) + +### 活动一:动手测量 + +> 分组实验记录: + +- 每组测量3个不同类型三角形的内角 +- 汇总数据发现规律 +- 初步得出内角和接近180度的猜想 + +### 活动二:撕拼验证 + +> 直观操作验证: + +- 将三角形三个角撕下拼成平角 +- 观察不同三角形拼合结果 +- 得出"内角和=180度"的结论 + +## 3. 推理证明(8分钟) + +> 几何演绎推理: + +- 演示辅助线画法(过顶点作对边平行线) +- 利用平行线性质进行角度转换 +- 完成定理的数学证明 + +## 4. 巩固应用(10分钟) + +> 分层练习设计: + +- 基础题:已知两角求第三角(直角三角形示例) +- 拓展题:四边形内角和推导 +- 生活应用:衣架角度设计问题 + +# 板书设计 + +## 主板书区 + +> 知识结构可视化呈现: + +``` + 三角形的内角和 + ↙ ↓ ↘ +发现规律 → 验证猜想 → 应用拓展 + 测量法 撕拼法 基础题 + 数据归纳 几何证明 提高题 +``` + +# 教学反思 + +## 预期效果 + +> 三维目标达成检测: + +- 课堂练习正确率85%以上 +- 能完整叙述探究过程的学生超过90% +- 课后作业完成率100% + +## 改进方向 + +> 针对可能出现的问题: + +- 对学困生加强操作指导 +- 增加变式练习提升思维灵活性 +- 下节课衔接四边形内角和探究 \ No newline at end of file diff --git a/ppt-generator-master/md-file/readme/4.md b/ppt-generator-master/md-file/readme/4.md new file mode 100644 index 00000000..fc60cbe8 --- /dev/null +++ b/ppt-generator-master/md-file/readme/4.md @@ -0,0 +1,169 @@ +--- +Title: 小学数学《三角形的内角和》教案 +Author: 数学教研组 + +Date: 2023.11.20 + +--- + +# 教学目标 + +## 知识与技能 + +> 通过本课学习,学生能够掌握三角形内角和定理 + +- 理解并记忆三角形内角和等于180° +- 能够运用定理进行简单角度计算 +- 培养几何直观和推理能力 + +## 过程与方法 + +> 通过实践操作发展空间观念 + +- 经历量、拼、折等探究过程 +- 学会用转化思想解决几何问题 +- 培养合作交流的学习习惯 + +## 情感态度 + +> 激发数学探究兴趣 + +- 感受数学与生活的联系 +- 养成严谨求实的科学态度 +- 体验发现规律的成就感 + +# 教学重点与难点 + +## 教学重点 + +> 核心知识点的把握 + +- 三角形内角和定理的理解 +- 定理的实践验证方法 +- 简单角度计算应用 + +## 教学难点 + +> 需要突破的理解障碍 + +- 从具体操作到抽象结论的转化 +- 复杂图形中的角度推算 +- 定理的初步证明思路 + +# 教学准备 + +## 教具准备 + +> 课堂活动所需材料 + +- 锐角/直角/钝角三角形纸片 +- 量角器、剪刀、胶棒 +- 多媒体课件、几何画板 +- 学习任务单 + +# 教学过程 + +## 一、情境导入(5分钟) + +> 创设认知冲突激发兴趣 + +- 展示金字塔、自行车架等三角形结构 +- 设问:这些三角形三个内角的和是多少? +- 引导猜测:可能有的说是180°,有的说不同 + +## 二、探究活动(15分钟) + +> 分组实验验证猜想 + +### 活动1:量角法 +- 发放不同类型三角形 +- 指导正确使用量角器测量 +- 记录测量结果并计算总和 + +### 活动2:拼角法 +- 将三角形三个角剪下 +- 拼成平角验证180° +- 观察不同三角形共性 + +## 三、归纳结论(8分钟) + +> 抽象数学规律 + +- 各小组汇报实验数据 +- 比较不同三角形内角和 +- 归纳得出统一结论 +- 板书定理:三角形内角和=180° + +## 四、巩固应用(10分钟) + +> 分层练习提升能力 + +### 基础练习 +- 已知两角求第三角 +- 判断三角形类型 + +### 拓展应用 +- 四边形内角和探究 +- 生活中的角度问题 + +## 五、课堂小结(2分钟) + +> 梳理知识脉络 + +- 回顾探究过程 +- 强调转化思想 +- 布置实践作业:测量家中三角形物品 + +# 板书设计 + +## 主板书区 + +> 知识结构可视化 + +``` +三角形内角和 +量角法 → 拼角法 → 得出结论 +┌───────────────┐ +│ 任意三角形 │ +│ ∠1+∠2+∠3=180° │ +└───────────────┘ +应用: +1. 已知两角求第三角 +2. 判断三角形类型 +``` + +# 作业布置 + +## 实践类作业 + +> 延伸课堂所学 + +- 测量家中三角尺的内角 +- 用纸张制作不同三角形验证定理 +- 记录三种验证方法的过程 + +## 书面作业 + +> 巩固计算能力 + +- 练习册P45 第3、5、7题 +- 思考题:五边形内角和是多少? + +# 教学反思 + +## 预设问题 + +> 提前预判可能出现的情况 + +- 量角误差导致数据偏差的应对 +- 学困生操作指导策略 +- 课堂时间分配的弹性调整 + +## 评价方式 + +> 多维度的学习评估 + +- 操作实验参与度 +- 小组讨论贡献值 +- 练习正确率统计 +- 课后访谈反馈 \ No newline at end of file diff --git a/ppt-generator-master/md-file/readme/assets/image-20230209202039931.png b/ppt-generator-master/md-file/readme/assets/image-20230209202039931.png new file mode 100644 index 00000000..ae53dc06 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230209202039931.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230209202709539.png b/ppt-generator-master/md-file/readme/assets/image-20230209202709539.png new file mode 100644 index 00000000..fbd88aa1 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230209202709539.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230210114415315.png b/ppt-generator-master/md-file/readme/assets/image-20230210114415315.png new file mode 100644 index 00000000..73c45775 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230210114415315.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230210114433311.png b/ppt-generator-master/md-file/readme/assets/image-20230210114433311.png new file mode 100644 index 00000000..8529a3e9 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230210114433311.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213101352084.png b/ppt-generator-master/md-file/readme/assets/image-20230213101352084.png new file mode 100644 index 00000000..0b3b2f03 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213101352084.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213113517077.png b/ppt-generator-master/md-file/readme/assets/image-20230213113517077.png new file mode 100644 index 00000000..5046e986 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213113517077.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213144832970.png b/ppt-generator-master/md-file/readme/assets/image-20230213144832970.png new file mode 100644 index 00000000..d80a30bf Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213144832970.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213144910488.png b/ppt-generator-master/md-file/readme/assets/image-20230213144910488.png new file mode 100644 index 00000000..14f7c42a Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213144910488.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213153858427.png b/ppt-generator-master/md-file/readme/assets/image-20230213153858427.png new file mode 100644 index 00000000..2ae7ce94 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213153858427.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213164214474.png b/ppt-generator-master/md-file/readme/assets/image-20230213164214474.png new file mode 100644 index 00000000..3111d684 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213164214474.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213164618280.png b/ppt-generator-master/md-file/readme/assets/image-20230213164618280.png new file mode 100644 index 00000000..471f85f3 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213164618280.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213164822644.png b/ppt-generator-master/md-file/readme/assets/image-20230213164822644.png new file mode 100644 index 00000000..a8bc0ef4 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213164822644.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213164950528.png b/ppt-generator-master/md-file/readme/assets/image-20230213164950528.png new file mode 100644 index 00000000..669c233e Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213164950528.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213165306951.png b/ppt-generator-master/md-file/readme/assets/image-20230213165306951.png new file mode 100644 index 00000000..6e2dac4c Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213165306951.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213165704991.png b/ppt-generator-master/md-file/readme/assets/image-20230213165704991.png new file mode 100644 index 00000000..dc8a2a99 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213165704991.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213165927369.png b/ppt-generator-master/md-file/readme/assets/image-20230213165927369.png new file mode 100644 index 00000000..f227fe16 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213165927369.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230213165944604.png b/ppt-generator-master/md-file/readme/assets/image-20230213165944604.png new file mode 100644 index 00000000..243c242d Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230213165944604.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230216105054618.png b/ppt-generator-master/md-file/readme/assets/image-20230216105054618.png new file mode 100644 index 00000000..1d670c07 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230216105054618.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230216105118511.png b/ppt-generator-master/md-file/readme/assets/image-20230216105118511.png new file mode 100644 index 00000000..d0518f75 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230216105118511.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230216112314296.png b/ppt-generator-master/md-file/readme/assets/image-20230216112314296.png new file mode 100644 index 00000000..b71748b7 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230216112314296.png differ diff --git a/ppt-generator-master/md-file/readme/assets/image-20230216112322072.png b/ppt-generator-master/md-file/readme/assets/image-20230216112322072.png new file mode 100644 index 00000000..b71748b7 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/image-20230216112322072.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img.png b/ppt-generator-master/md-file/readme/assets/img.png new file mode 100644 index 00000000..3926b0f5 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img15.png b/ppt-generator-master/md-file/readme/assets/img15.png new file mode 100644 index 00000000..f0d2f634 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img15.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_1.png b/ppt-generator-master/md-file/readme/assets/img_1.png new file mode 100644 index 00000000..725d3feb Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_1.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_10.png b/ppt-generator-master/md-file/readme/assets/img_10.png new file mode 100644 index 00000000..bce4c1ec Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_10.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_11.png b/ppt-generator-master/md-file/readme/assets/img_11.png new file mode 100644 index 00000000..663e77ab Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_11.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_12.png b/ppt-generator-master/md-file/readme/assets/img_12.png new file mode 100644 index 00000000..78c1bfb7 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_12.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_13.png b/ppt-generator-master/md-file/readme/assets/img_13.png new file mode 100644 index 00000000..29ee2b2e Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_13.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_2.png b/ppt-generator-master/md-file/readme/assets/img_2.png new file mode 100644 index 00000000..767e8b28 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_2.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_3.png b/ppt-generator-master/md-file/readme/assets/img_3.png new file mode 100644 index 00000000..3040cb59 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_3.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_4.png b/ppt-generator-master/md-file/readme/assets/img_4.png new file mode 100644 index 00000000..bad7b108 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_4.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_5.png b/ppt-generator-master/md-file/readme/assets/img_5.png new file mode 100644 index 00000000..a594d2e2 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_5.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_6.png b/ppt-generator-master/md-file/readme/assets/img_6.png new file mode 100644 index 00000000..8d22a28c Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_6.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_7.png b/ppt-generator-master/md-file/readme/assets/img_7.png new file mode 100644 index 00000000..97d8e3c2 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_7.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_8.png b/ppt-generator-master/md-file/readme/assets/img_8.png new file mode 100644 index 00000000..aa3e16e0 Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_8.png differ diff --git a/ppt-generator-master/md-file/readme/assets/img_9.png b/ppt-generator-master/md-file/readme/assets/img_9.png new file mode 100644 index 00000000..5d84a1ce Binary files /dev/null and b/ppt-generator-master/md-file/readme/assets/img_9.png differ diff --git a/ppt-generator-master/md-file/readme/default.md b/ppt-generator-master/md-file/readme/default.md new file mode 100644 index 00000000..c262c723 --- /dev/null +++ b/ppt-generator-master/md-file/readme/default.md @@ -0,0 +1,329 @@ +--- +Title: 理想学院人工智能生成PPT +Author: 东师理想 + +Date: 2025.02.14 +--- + +# 工具介绍 + +## 你还在为调整PPT的格式烦心吗? + +> 这个简单的工具,将为节省很多的时间和心力 + +- 你只需要关注你想表达的内容 +- 只需写下文字内容、想展示的图片 +- 其余的,交给这个小工具吧! +- 自动化生成首页、尾页、目录 +- 根据文字内容,生成具体的PPT页面 +- 可以插入图片,一张PPT内不要超过两张 +- 生成后,根据自己的需要可以微调 +- 暂不支持动画 + + +## 效果展示 + +> 本项目中readme.pptx, 就是根据本篇文字内容,生成的PPT + +- 你可以在项目的目录中找到它 +- 这是一个通用的模板,还有很多其他的模板 + +# 使用指南 + +## 1、下载软件包 + +> 下载软件包 + +- 你需要下载软件包 +- 记得解压哦! + +## 2、运行这个小工具 + +> 进入dict目录下,运行'ppt生成器' + +![img.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_9.png) + +## 3、选择文件和模板 + +> 选择合适文件、喜欢的模板 + +- 选择你已经写好的markdown文件 +- 选择你喜欢的模板,通用的的模板是免费的 + + +## 在项目中查看所有的样式 + +> 打开md-file/readme文件夹 + +- 当前所有的样式在这里都有所展现 +- default.md是文本内容 +- 其余的pptx文件,是根据default.md生成的不同风格的PPT + +![image-20230216112322072](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230216112322072.png) + +# 基本的格式 + +## 1、书写文档内容 + +> 可以在任何地方,书写md文件,但要记得路径 + +![img_1.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_1.png) + +- 起任何名字,与生成的PPT标题无关 +- 最好起英文的,因为你的环境有可能不支持中文 +- 生成的ppt文件,在out-print中 +- 可以建一个指定的文件夹,专门用于写文档 +- 在本文后面,有两个写markdown文件的工具介绍 + +## 2、写PPT的题目 + +> 用两行---夹住的中间部分 + +![img.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_3.png) + +- Titl'+model_name+' 后面写PPT的首页标题 +- Author: 后面写你的名字,或是其他副标题 +- Data: 后面可以写日期,作为尾页的日期 + + +## 3、写PPT的目录 + +> 用#,加上一个空格,在后面书写的是一级标题,会自动生成目录 + +![img_2.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_2.png) + +- 标题和标题,不要重复,否则会覆盖 +- 一级标题,会自动生成PPT的目录 + +## 4、写每一页的标题 + +> 用##,加上一个空格,在后面书写的是二级标题,会自动生成为每一页的标题 + +![img.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img.png) + +- 在每个一级标题下,一定要有二级标题 +- 有多少个二级标题,就会生成多少页的PPT +- 二级标题之间,不要重复,否则会覆盖 + +## 5、写每一页的内容 + +> 每页内容,可以有几种组成的部分 + +![img_4.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_4.png) + +- ‘>’+空格:一行文字介绍,呈现在页标题的下方 +- 图片![图片的名字](图片的目录地址) +- 图片地址要写绝对路径 +- 一张图片会居中,两张图片会平分 +- 列表用'-’+空格,后面书写该陈列点的内容 +- 可以一张图片+一部分陈列点的方式 + +## 6、随时记录你的灵感 + +> 如果你有内容,不想展示在PPT上 + +- 书写两行``` +- 在两行中间,记录你的灵感 +- 这中间的内容,将不会展现在PPT上 + +# 踩坑答疑 + +## 一些报错点 + +> 如果你遇到了问题,可以先来这里看看 + +- 如果要重新生成,一定要关闭原来的生成的文件 +- 图片可能会出现缩略不一致的情况,可以手动调整一下 +- 更多的问题,可以在公众号内询问 + + + +## 交流群 + +> 本来是不想创建交流群的,但想到大家可能会遇到使用上的问题,所以就建一个答疑群吧 + +- 免费用户:后台回复"小助手"获得小助手的微信,添加小助手后说明来意,然后小助手会拉您进群 +- 付费用户:付费后,会连同代码、模板,一起将群二维码发给您 + +# 付费定制化 + +## 获取更多的模板 + +> 在微信公众号内回复"PPT模板",即可获得更多的模板 + +![image-20230213165944604](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213165944604.png) + +- 现在已有十多个模板,满足基本通用场景的使用 +- 定价¥10 +- 关注微信公众号"司镜233", 回复”PPT模板“ +- 付费后,会给您发送特定的PPT模板和模板代码 +- 使用方式和普通的一样,但是模板会更多 +- 具体的模板样式,可以参见后面的主题展示 + + + +## 模板定制化 + +> 可以根据你自己的喜好和要求,定制化一套模板和相应的代码 + +- 如果你想定制一套自己的代码和模板,可以联系我们进行个性化的定做 +- 定制带有特定个的logo、风格的模板,作为长期使用 +- 付费标价¥200/次,如果要求比较复杂看情况而定 +- 关注微信公众号"司镜233", 说出你想要的风格和样式吧! + +# 主题展示 + + + + + +## 通用 + +> 这是通用风格的样式展现 + +![image-20230210114433311](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230210114433311.png) + +![image-20230210114415315](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230210114415315.png) + + + +## 通用-红白 + +> 这是一个通用的风格,采用红色和白色进行搭配 + +![image-20230213153858427](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213153858427.png) + + + +## 通用-蓝白 + +> 这是一个蓝白风格的展现 + +![image-20230216105054618](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230216105054618.png) + + + +## 通用-蓝黄 + +> 这是一个通用风格的展现,采用蓝色和黄色进行搭配 + +![image-20230216105118511](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230216105118511.png) + +## 水彩 + +> 这是水彩风格的样式展现 + +![image-20230209202039931](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230209202039931.png) + + + +## 科技 + +> 这是科技风格的样式展现 + +![image-20230213101352084](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213101352084.png) + + + +## 书法 + +> 这是一个书法风格的样式展示 + + + +![image-20230213113517077](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213113517077.png) + + + +## 教学-绿色黑板 + +> 这是教学通用的风格展示,采用绿色的黑白作为底色 + +![image-20230213164950528](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213164950528.png) + + + +## 教学-黑色黑板 + + + +> 这是教学通用的风格展示,采用黑色的黑板为底色 + +![image-20230213144910488](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213144910488.png) + + + +## 读书 + +> 这是一份读书风格的展示,搭配绿植,更显清新 + +![image-20230213165306951](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213165306951.png) + +## 灰红 + +> 这是灰色和红色搭配的风格 + +![image-20230213164214474](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213164214474.png) + +## 简约 + +> 这是一个简约风格的展示 + +![image-20230213164822644](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213164822644.png) + +## 极简 + +> 这是一份极简风格的展示 + +![image-20230213164618280](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213164618280.png) + +## 可爱 + +> 这是一份可爱风格的内容展示 + +![image-20230213165704991](D:\dsWork\ppt-generator-master\md-file\readme\assets\image-20230213165704991.png) + +# 附1:使用VS写markdown + +## 1、创建一个文件夹 + +> 新建一个文件夹,放置你的PPT文字内容 + +![img_3.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_3.png) + +- 在文件夹内,再创建一个文件夹 +- 命名为images,用来存放你的图片 + +## 2、新建一个文件 + +> 可以使用任何markdown的软件写你的文字,这里使用免费的vs + +![](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_13.png) + +- 点击New File,新建一个文件 +- 文件名,一定要以.md结尾 + +## 3、打开预览 + +> 如图所示,打开预览 + +![img.png](D:\dsWork\ppt-generator-master\md-file\readme\assets\img15.png) +## 3、开始书写你的灵感吧! + +> 按照上述的格式,书写你的灵感吧! + +# 附2:使用Typora书写 + +## 图片路径设置 + +> 我比较喜欢用Typora,但它是付费的 + +![](D:\dsWork\ppt-generator-master\md-file\readme\assets\img_10.png) + +- Typora可以设置图片粘贴路径 +- 不需要手动书写图片路径 +- 直接复制、粘贴即可 +- 在文件-偏好设置里,按照我这样设置 +- 记得,不要选择相对路径 +- 这样我们也不用手动管理文件中的图片了 + diff --git a/ppt-generator-master/md-file/readme/书法.pptx b/ppt-generator-master/md-file/readme/书法.pptx new file mode 100644 index 00000000..df488aaa Binary files /dev/null and b/ppt-generator-master/md-file/readme/书法.pptx differ diff --git a/ppt-generator-master/md-file/readme/可爱.pptx b/ppt-generator-master/md-file/readme/可爱.pptx new file mode 100644 index 00000000..5d6f9f53 Binary files /dev/null and b/ppt-generator-master/md-file/readme/可爱.pptx differ diff --git a/ppt-generator-master/md-file/readme/教学-绿色黑板.pptx b/ppt-generator-master/md-file/readme/教学-绿色黑板.pptx new file mode 100644 index 00000000..087c2db0 Binary files /dev/null and b/ppt-generator-master/md-file/readme/教学-绿色黑板.pptx differ diff --git a/ppt-generator-master/md-file/readme/教学-黑色黑板.pptx b/ppt-generator-master/md-file/readme/教学-黑色黑板.pptx new file mode 100644 index 00000000..4d028f1d Binary files /dev/null and b/ppt-generator-master/md-file/readme/教学-黑色黑板.pptx differ diff --git a/ppt-generator-master/md-file/readme/极简.pptx b/ppt-generator-master/md-file/readme/极简.pptx new file mode 100644 index 00000000..c26b7e64 Binary files /dev/null and b/ppt-generator-master/md-file/readme/极简.pptx differ diff --git a/ppt-generator-master/md-file/readme/水彩.pptx b/ppt-generator-master/md-file/readme/水彩.pptx new file mode 100644 index 00000000..50a72104 Binary files /dev/null and b/ppt-generator-master/md-file/readme/水彩.pptx differ diff --git a/ppt-generator-master/md-file/readme/灰红.pptx b/ppt-generator-master/md-file/readme/灰红.pptx new file mode 100644 index 00000000..9e804eca Binary files /dev/null and b/ppt-generator-master/md-file/readme/灰红.pptx differ diff --git a/ppt-generator-master/md-file/readme/科技.pptx b/ppt-generator-master/md-file/readme/科技.pptx new file mode 100644 index 00000000..ccbe2a12 Binary files /dev/null and b/ppt-generator-master/md-file/readme/科技.pptx differ diff --git a/ppt-generator-master/md-file/readme/简约.pptx b/ppt-generator-master/md-file/readme/简约.pptx new file mode 100644 index 00000000..9458a39d Binary files /dev/null and b/ppt-generator-master/md-file/readme/简约.pptx differ diff --git a/ppt-generator-master/md-file/readme/读书.pptx b/ppt-generator-master/md-file/readme/读书.pptx new file mode 100644 index 00000000..76f33e53 Binary files /dev/null and b/ppt-generator-master/md-file/readme/读书.pptx differ diff --git a/ppt-generator-master/md-file/readme/通用-红白.pptx b/ppt-generator-master/md-file/readme/通用-红白.pptx new file mode 100644 index 00000000..6a947eb9 Binary files /dev/null and b/ppt-generator-master/md-file/readme/通用-红白.pptx differ diff --git a/ppt-generator-master/md-file/readme/通用-蓝白.pptx b/ppt-generator-master/md-file/readme/通用-蓝白.pptx new file mode 100644 index 00000000..7e1e6146 Binary files /dev/null and b/ppt-generator-master/md-file/readme/通用-蓝白.pptx differ diff --git a/ppt-generator-master/md-file/readme/通用-蓝黄.pptx b/ppt-generator-master/md-file/readme/通用-蓝黄.pptx new file mode 100644 index 00000000..76a9c9bf Binary files /dev/null and b/ppt-generator-master/md-file/readme/通用-蓝黄.pptx differ diff --git a/ppt-generator-master/md-file/readme/通用.pptx b/ppt-generator-master/md-file/readme/通用.pptx new file mode 100644 index 00000000..394f3f38 Binary files /dev/null and b/ppt-generator-master/md-file/readme/通用.pptx differ diff --git a/ppt-generator-master/output.docx b/ppt-generator-master/output.docx new file mode 100644 index 00000000..f73621b6 Binary files /dev/null and b/ppt-generator-master/output.docx differ diff --git a/ppt-generator-master/output.pptx b/ppt-generator-master/output.pptx new file mode 100644 index 00000000..882172fd Binary files /dev/null and b/ppt-generator-master/output.pptx differ diff --git a/ppt-generator-master/pandoc-3.6.3-windows-x86_64.msi b/ppt-generator-master/pandoc-3.6.3-windows-x86_64.msi new file mode 100644 index 00000000..13729254 Binary files /dev/null and b/ppt-generator-master/pandoc-3.6.3-windows-x86_64.msi differ diff --git a/ppt-generator-master/ppt-model/default-model.pptx b/ppt-generator-master/ppt-model/default-model.pptx new file mode 100644 index 00000000..f886fea7 Binary files /dev/null and b/ppt-generator-master/ppt-model/default-model.pptx differ diff --git a/ppt-generator-master/ppt-model/images/default-model/current_content.png b/ppt-generator-master/ppt-model/images/default-model/current_content.png new file mode 100644 index 00000000..9a82334b Binary files /dev/null and b/ppt-generator-master/ppt-model/images/default-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/default-model/other_content.png b/ppt-generator-master/ppt-model/images/default-model/other_content.png new file mode 100644 index 00000000..ebe8b44a Binary files /dev/null and b/ppt-generator-master/ppt-model/images/default-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/default-model/text_background.png b/ppt-generator-master/ppt-model/images/default-model/text_background.png new file mode 100644 index 00000000..0167b4a0 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/default-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/default-model/unsort_list.png b/ppt-generator-master/ppt-model/images/default-model/unsort_list.png new file mode 100644 index 00000000..b709b614 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/default-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/dushu-model/current_content.png b/ppt-generator-master/ppt-model/images/dushu-model/current_content.png new file mode 100644 index 00000000..93eb493c Binary files /dev/null and b/ppt-generator-master/ppt-model/images/dushu-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/dushu-model/other_content.png b/ppt-generator-master/ppt-model/images/dushu-model/other_content.png new file mode 100644 index 00000000..438e4374 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/dushu-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/dushu-model/text_background.png b/ppt-generator-master/ppt-model/images/dushu-model/text_background.png new file mode 100644 index 00000000..64ef5981 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/dushu-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/dushu-model/unsort_list.png b/ppt-generator-master/ppt-model/images/dushu-model/unsort_list.png new file mode 100644 index 00000000..415566f3 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/dushu-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/huise-model/current_content.png b/ppt-generator-master/ppt-model/images/huise-model/current_content.png new file mode 100644 index 00000000..cec8bfef Binary files /dev/null and b/ppt-generator-master/ppt-model/images/huise-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/huise-model/other_content.png b/ppt-generator-master/ppt-model/images/huise-model/other_content.png new file mode 100644 index 00000000..88f9b29f Binary files /dev/null and b/ppt-generator-master/ppt-model/images/huise-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/huise-model/text_background.png b/ppt-generator-master/ppt-model/images/huise-model/text_background.png new file mode 100644 index 00000000..0167b4a0 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/huise-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/huise-model/unsort_list.png b/ppt-generator-master/ppt-model/images/huise-model/unsort_list.png new file mode 100644 index 00000000..be70e167 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/huise-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/jianyue-model/current_content.png b/ppt-generator-master/ppt-model/images/jianyue-model/current_content.png new file mode 100644 index 00000000..ef1f7458 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jianyue-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jianyue-model/other_content.png b/ppt-generator-master/ppt-model/images/jianyue-model/other_content.png new file mode 100644 index 00000000..224218f0 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jianyue-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jianyue-model/text_background.png b/ppt-generator-master/ppt-model/images/jianyue-model/text_background.png new file mode 100644 index 00000000..d3b3ad6a Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jianyue-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/jianyue-model/unsort_list.png b/ppt-generator-master/ppt-model/images/jianyue-model/unsort_list.png new file mode 100644 index 00000000..00744c77 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jianyue-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/current_content.png b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/current_content.png new file mode 100644 index 00000000..925b5710 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/other_content.png b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/other_content.png new file mode 100644 index 00000000..cdc2f3d9 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/text_background.png b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/text_background.png new file mode 100644 index 00000000..0bdde628 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/unsort_list.png b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/unsort_list.png new file mode 100644 index 00000000..21d549ba Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-hei-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/current_content.png b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/current_content.png new file mode 100644 index 00000000..925b5710 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/other_content.png b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/other_content.png new file mode 100644 index 00000000..c4c5aae3 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/text_background.png b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/text_background.png new file mode 100644 index 00000000..21445c5e Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/unsort_list.png b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/unsort_list.png new file mode 100644 index 00000000..1d0c9d7f Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jiaoxue-lv-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/jijian-model/current_content.png b/ppt-generator-master/ppt-model/images/jijian-model/current_content.png new file mode 100644 index 00000000..dc7428c2 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jijian-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jijian-model/other_content.png b/ppt-generator-master/ppt-model/images/jijian-model/other_content.png new file mode 100644 index 00000000..d2b4cbeb Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jijian-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/jijian-model/text_background.png b/ppt-generator-master/ppt-model/images/jijian-model/text_background.png new file mode 100644 index 00000000..462d21a1 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jijian-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/jijian-model/unsort_list.png b/ppt-generator-master/ppt-model/images/jijian-model/unsort_list.png new file mode 100644 index 00000000..9f46c5f8 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/jijian-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/keai-model/current_content.png b/ppt-generator-master/ppt-model/images/keai-model/current_content.png new file mode 100644 index 00000000..53acd80d Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keai-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/keai-model/other_content.png b/ppt-generator-master/ppt-model/images/keai-model/other_content.png new file mode 100644 index 00000000..09702293 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keai-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/keai-model/text_background.png b/ppt-generator-master/ppt-model/images/keai-model/text_background.png new file mode 100644 index 00000000..c938d3c0 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keai-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/keai-model/unsort_list.png b/ppt-generator-master/ppt-model/images/keai-model/unsort_list.png new file mode 100644 index 00000000..09e468f7 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keai-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/keji-model/current_content.png b/ppt-generator-master/ppt-model/images/keji-model/current_content.png new file mode 100644 index 00000000..9cc3cbd0 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keji-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/keji-model/other_content.png b/ppt-generator-master/ppt-model/images/keji-model/other_content.png new file mode 100644 index 00000000..0fa1b9e7 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keji-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/keji-model/text_background.png b/ppt-generator-master/ppt-model/images/keji-model/text_background.png new file mode 100644 index 00000000..890f5aa5 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keji-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/keji-model/unsort_list.png b/ppt-generator-master/ppt-model/images/keji-model/unsort_list.png new file mode 100644 index 00000000..9073b81e Binary files /dev/null and b/ppt-generator-master/ppt-model/images/keji-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/mobile-wutong-model/current_content.png b/ppt-generator-master/ppt-model/images/mobile-wutong-model/current_content.png new file mode 100644 index 00000000..fec2f774 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/mobile-wutong-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/mobile-wutong-model/other_content.png b/ppt-generator-master/ppt-model/images/mobile-wutong-model/other_content.png new file mode 100644 index 00000000..e829bccd Binary files /dev/null and b/ppt-generator-master/ppt-model/images/mobile-wutong-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/mobile-wutong-model/text_background.png b/ppt-generator-master/ppt-model/images/mobile-wutong-model/text_background.png new file mode 100644 index 00000000..f3a7e238 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/mobile-wutong-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/mobile-wutong-model/unsort_list.png b/ppt-generator-master/ppt-model/images/mobile-wutong-model/unsort_list.png new file mode 100644 index 00000000..17d37794 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/mobile-wutong-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/shufa-model/current_content.png b/ppt-generator-master/ppt-model/images/shufa-model/current_content.png new file mode 100644 index 00000000..0e46fba2 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shufa-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/shufa-model/other_content.png b/ppt-generator-master/ppt-model/images/shufa-model/other_content.png new file mode 100644 index 00000000..c951babd Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shufa-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/shufa-model/text_background.png b/ppt-generator-master/ppt-model/images/shufa-model/text_background.png new file mode 100644 index 00000000..282abc19 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shufa-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/shufa-model/unsort_list.png b/ppt-generator-master/ppt-model/images/shufa-model/unsort_list.png new file mode 100644 index 00000000..1fbbfe57 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shufa-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/shuicai-model/current_content.png b/ppt-generator-master/ppt-model/images/shuicai-model/current_content.png new file mode 100644 index 00000000..feb6701a Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shuicai-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/shuicai-model/other_content.png b/ppt-generator-master/ppt-model/images/shuicai-model/other_content.png new file mode 100644 index 00000000..c9b29204 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shuicai-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/shuicai-model/text_background.png b/ppt-generator-master/ppt-model/images/shuicai-model/text_background.png new file mode 100644 index 00000000..462d21a1 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shuicai-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/shuicai-model/unsort_list.png b/ppt-generator-master/ppt-model/images/shuicai-model/unsort_list.png new file mode 100644 index 00000000..5059332a Binary files /dev/null and b/ppt-generator-master/ppt-model/images/shuicai-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-hongbai-model/current_content.png b/ppt-generator-master/ppt-model/images/ty-hongbai-model/current_content.png new file mode 100644 index 00000000..838b764b Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-hongbai-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-hongbai-model/other_content.png b/ppt-generator-master/ppt-model/images/ty-hongbai-model/other_content.png new file mode 100644 index 00000000..ce6a8b29 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-hongbai-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-hongbai-model/text_background.png b/ppt-generator-master/ppt-model/images/ty-hongbai-model/text_background.png new file mode 100644 index 00000000..523be1b4 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-hongbai-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-hongbai-model/unsort_list.png b/ppt-generator-master/ppt-model/images/ty-hongbai-model/unsort_list.png new file mode 100644 index 00000000..77030837 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-hongbai-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanbai-model/current_content.png b/ppt-generator-master/ppt-model/images/ty-lanbai-model/current_content.png new file mode 100644 index 00000000..57e48a11 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanbai-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanbai-model/other_content.png b/ppt-generator-master/ppt-model/images/ty-lanbai-model/other_content.png new file mode 100644 index 00000000..3e298859 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanbai-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanbai-model/text_background.png b/ppt-generator-master/ppt-model/images/ty-lanbai-model/text_background.png new file mode 100644 index 00000000..3fd73738 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanbai-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanbai-model/unsort_list.png b/ppt-generator-master/ppt-model/images/ty-lanbai-model/unsort_list.png new file mode 100644 index 00000000..39bf1a9d Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanbai-model/unsort_list.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanhuang-model/current_content.png b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/current_content.png new file mode 100644 index 00000000..0323986a Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/current_content.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanhuang-model/other_content.png b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/other_content.png new file mode 100644 index 00000000..1c8a4156 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/other_content.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanhuang-model/text_background.png b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/text_background.png new file mode 100644 index 00000000..3fd73738 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/text_background.png differ diff --git a/ppt-generator-master/ppt-model/images/ty-lanhuang-model/unsort_list.png b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/unsort_list.png new file mode 100644 index 00000000..3f761fa4 Binary files /dev/null and b/ppt-generator-master/ppt-model/images/ty-lanhuang-model/unsort_list.png differ diff --git a/ppt-generator-master/run/__pycache__/default.cpython-310.pyc b/ppt-generator-master/run/__pycache__/default.cpython-310.pyc new file mode 100644 index 00000000..b16e2703 Binary files /dev/null and b/ppt-generator-master/run/__pycache__/default.cpython-310.pyc differ diff --git a/ppt-generator-master/run/default.py b/ppt-generator-master/run/default.py new file mode 100644 index 00000000..fd638045 --- /dev/null +++ b/ppt-generator-master/run/default.py @@ -0,0 +1,406 @@ +""" +PPT生成核心模块 +功能:将Markdown文件内容转换为PPTX格式演示文稿 +模块结构: +1. PPT模板处理函数(set_开头) +2. Markdown解析函数(explain_开头) +3. 页面生成函数(gen_开头) +4. 主生成流程函数(gen_ppt_default) +""" + +import linecache +from pptx import Presentation # 操作PPTX文件的核心库 +from pptx.util import Inches, Pt # 处理PPT中的尺寸单位 + + +def set_presentation(filepath): + """初始化PPT模板对象 + Args: + filepath (str): PPT模板文件路径 + Returns: + Presentation: 读取模板后的PPT对象 + """ + return Presentation(filepath) + + +def set_home(presentation, title, author, title_rgb): + """创建首页幻灯片 + Args: + presentation (Presentation): PPT对象 + title (str): 主标题内容 + author (str): 作者信息 + title_rgb: 标题颜色RGB值 + Returns: + Presentation: 更新后的PPT对象 + """ + prs = presentation + # 使用模板的第2个版式创建幻灯片(索引从0开始) + # 在 PowerPoint 中:打开模板文件 → 视图 → 幻灯片母版 → 查看所有版式。 + oneSlide = prs.slides.add_slide(prs.slide_layouts[1]) + body_shapes = oneSlide.shapes.placeholders + + # 设置主标题样式 + title_shape = body_shapes[0] # 标题占位符索引 + title_frame = title_shape.text_frame + title_paragraph = title_frame.paragraphs[0] + title_run = title_paragraph.add_run() + title_run.font.color.rgb = title_rgb # 设置标题颜色 + title_run.text = title # 填充标题内容 + + # 设置作者信息(注意:placeholders[10]需要根据实际模板调整) + author_shape = body_shapes[10] # 作者信息占位符索引 + author_frame = author_shape.text_frame + author_paragraph = author_frame.paragraphs[0] + author_paragraph.text = author + + return prs + + +def set_end(presentation, date_str, end_tittle_content): + """创建结束页幻灯片 + Args: + presentation: PPT对象 + date_str (str): 日期字符串 + end_tittle_content (str): 结束页主文本 + Returns: + Presentation: 更新后的PPT对象 + """ + prs = presentation + # 使用模板的第4个版式创建幻灯片 + oneSlide = prs.slides.add_slide(prs.slide_layouts[3]) + body_shapes = oneSlide.shapes.placeholders + + # 设置结束页主文本 + title_shape = body_shapes[0] # 主文本占位符索引 + title_frame = title_shape.text_frame + title_paragraph = title_frame.paragraphs[0] + title_paragraph.text = end_tittle_content + + # 设置日期信息(placeholders[13]需要根据模板调整) + subtitle_shape = body_shapes[13] # 副文本占位符索引 + subtitle_frame = subtitle_shape.text_frame + subtitle_paragraph = subtitle_frame.paragraphs[0] + subtitle_paragraph.text = date_str + + return prs + + +def set_content(presentation, content_titles, current_i, content_font, current_content, other_content, current_rgb, + other_rgb, content_number_rgb): + """创建目录页幻灯片 + Args: + presentation: PPT对象 + content_titles (list): 目录项列表 + current_i (int): 当前高亮项的索引 + content_font (str): 字体名称 + current_content (str): 高亮项图标路径 + other_content (str): 普通项图标路径 + current_rgb: 高亮颜色RGB值 + other_rgb: 普通颜色RGB值 + content_number_rgb: 编号颜色RGB值 + Returns: + Presentation: 更新后的PPT对象 + """ + prs = presentation + # 使用模板的第3个版式创建目录页 + content_back = prs.slide_layouts[2] + slide = prs.slides.add_slide(content_back) + + # 布局参数定义(单位:英寸) + one_col_left = 4.55 # 单列布局X坐标 + two_col_left1 = 2.75 # 双列左栏X坐标 + two_col_left2 = 7.25 # 双列右栏X坐标 + width = 3.5 # 文本框宽度 + height = 0.5 # 文本框高度 + + # 动态计算垂直布局 + tlen = len(content_titles) + if tlen <= 3: + height_total = height * tlen + 0.5 * (tlen - 1) # 总高度 = 项高度 + 间距 + else: + height_total = height * (tlen / 2) + 0.5 * (tlen / 2 - 1) + + top = (7.5 - height_total) / 2 # 垂直居中计算 + top_flag = top # 当前项顶部位置 + + # 遍历添加所有目录项 + for i in range(tlen): + # 计算项位置 + if i == 0 or (tlen >= 3 and i == int((tlen + 1) / 2)): + i_top = top + else: + i_top = top_flag + (0.5 + height) # 累加项高度和间距 + + top_flag = i_top # 更新当前位置标记 + + # 计算水平位置 + i_left = 0 + if tlen <= 2: + i_left = one_col_left + elif tlen > 2 and i < tlen / 2: + i_left = two_col_left1 + elif tlen > 2 and i >= tlen / 2: + i_left = two_col_left2 + + # 添加文本内容 + txBox = slide.shapes.add_textbox(Inches(i_left + 1), Inches(i_top), Inches(width), Inches(height)) + tf = txBox.text_frame + title = tf.paragraphs[0] + run = title.add_run() + run.text = content_titles[i] # 填充目录文本 + + # 设置字体样式 + font = run.font + font.name = content_font # 字体类型 + font.bold = True # 加粗 + if i == current_i: # 高亮当前项 + font.color.rgb = current_rgb + img_path = current_content + else: # 普通项 + font.color.rgb = other_rgb + img_path = other_content + font.size = Pt(26) # 字号26磅 + + # 添加左侧图标 + slide.shapes.add_picture(img_path, Inches(i_left), Inches(i_top)) + + # 添加序号 + numberBox = slide.shapes.add_textbox(Inches(i_left + 0.125), Inches(i_top + 0.125), Inches(0.5), Inches(0.5)) + number = numberBox.text_frame + number_title = number.paragraphs[0] + number_run = number_title.add_run() + number_run.text = str(i + 1) # 显示序号 + + # 设置序号样式 + number_font = number_run.font + number_font.name = content_font + number_font.bold = True + number_font.color.rgb = content_number_rgb + number_font.size = Pt(18) + + return prs + + +def set_for_content(presentation, first_list, second_dict, content_list, second_title_rgb, content_font, + current_content, other_content, current_rgb, other_rgb, content_number_rgb, text_img_path, + import_font_size, unsort_img_path, list_font_size): + """批量生成内容页 + Args: + presentation: PPT对象 + first_list (list): 一级标题列表 + second_dict (dict): 二级标题字典 + content_list (dict): 内容字典 + ...其他样式参数... + Returns: + Presentation: 更新后的PPT对象 + """ + prs = presentation + # 遍历一级标题 + for title_i in range(len(first_list)): + # 生成目录页 + prs = set_content(prs, first_list, title_i, content_font, current_content, other_content, current_rgb, + other_rgb, content_number_rgb) + # 遍历二级标题生成内容页 + for second_title in second_dict[first_list[title_i]]: + prs = gen_page(prs, second_title, content_list[second_title], second_title_rgb, text_img_path, content_font, + import_font_size, unsort_img_path, list_font_size) + return prs + + +# 全局存储Markdown头部信息 +header = {} + + +def explain_markdown(file_path): + """解析Markdown文件结构 + Args: + file_path (str): Markdown文件路径 + Returns: + tuple: (一级标题列表, 二级标题字典, 内容字典, 头部信息字典) + """ + first_list = [] # 存储一级标题 + second_dict = {} # 存储二级标题结构 {一级标题: [二级标题]} + content_list = {} # 存储内容结构 {二级标题: [内容项]} + + txtfile = linecache.getlines(file_path) # 读取文件所有行 + line_range = iter(range(len(txtfile))) # 创建行号迭代器 + is_code = False # 代码块标记 + first_title = "" # 当前一级标题 + second_title = "" # 当前二级标题 + is_header = False # YAML头部标记 + + # 逐行解析Markdown + for line_index in line_range: + line = txtfile[line_index] + line_strs = line.split(" ") + + # 清理行内容(非代码块时) + if not is_code: + line = line.replace("\r", "").replace("\n", "").replace("\t", "") + + if len(line) == 0: + continue + elif line == "---": # YAML头部标记 + is_header = not is_header + elif is_header: # 解析头部信息 + if line_strs[0] == "Title:": + header['Title'] = line_strs[1].replace("\n", "") + elif line_strs[0] == "Author:": + header['Author'] = line_strs[1].replace("\n", "") + elif line_strs[0] == "Date:": + header['Date'] = line_strs[1].replace("\n", "") + elif line_strs[0] == '#': # 一级标题 + first_title = line[2:] + first_list.append(first_title) + second_dict[first_title] = [] + elif line_strs[0] == '##': # 二级标题 + second_title = line[3:] + second_dict[first_title].append(second_title) + content_list[second_title] = [] + elif line_strs[0] == '-': # 列表项 + content_list[second_title].append({ + "type": "list", + "detail": line[2:] + }) + elif line[:3] == "```": # 代码块开始/结束 + is_code = not is_code + elif is_code: # 跳过代码块内容 + continue + elif line[:2] == '![': # 图片 + img_path_str = line.split('(')[-1].split(")")[0] + content_list[second_title].append({ + "type": "image", + "detail": img_path_str + }) + elif line[:2] == '> ': # 引用文本 + content_list[second_title].append({ + "type": "text", + "detail": line[2:] + }) + + return first_list, second_dict, content_list, header + + +def gen_page(prs, title, content_list, second_title_rgb, text_img_path, content_font, import_font_size, + unsort_img_path, list_font_size): + """生成内容页幻灯片 + Args: + prs: PPT对象 + title (str): 二级标题 + content_list (list): 内容项列表 + ...其他样式参数... + Returns: + Presentation: 更新后的PPT对象 + """ + # 使用模板的第1个版式创建幻灯片 + oneSlide = prs.slides.add_slide(prs.slide_layouts[0]) + body_shapes = oneSlide.shapes.placeholders + + # 设置标题样式 + title_shape = body_shapes[0] + title_frame = title_shape.text_frame + title_paragraph = title_frame.paragraphs[0] + run = title_paragraph.add_run() + run.text = title + font = run.font + font.color.rgb = second_title_rgb + font.size = Pt(30) # 30磅字号 + + top_tag = 2 # 初始垂直位置 + is_have_img = False # 图片布局标记 + + # 遍历内容项 + for content in content_list: + if content['type'] == "text": # 处理文本内容 + oneSlide.shapes.add_picture(text_img_path, Inches(0.25), Inches(1.0)) # 添加文本框背景 + # 创建文本框 + txBox = oneSlide.shapes.add_textbox(Inches(0.35), Inches(1.2), Inches(13), Inches(1)) + tf = txBox.text_frame + title = tf.paragraphs[0] + run = title.add_run() + run.text = content['detail'] + font = run.font + font.name = content_font + font.size = Pt(import_font_size) + + elif content['type'] == "list": # 处理列表项 + # 根据内容数量选择布局 + if len(content_list) >= 3 and is_have_img: + oneSlide.shapes.add_picture(unsort_img_path, Inches(7), Inches(top_tag)) + txBox = oneSlide.shapes.add_textbox(Inches(7.5), Inches(top_tag), Inches(5.5), Inches(0.25)) + else: + oneSlide.shapes.add_picture(unsort_img_path, Inches(1), Inches(top_tag)) + txBox = oneSlide.shapes.add_textbox(Inches(1.5), Inches(top_tag), Inches(10), Inches(0.25)) + + # 设置列表文本 + tf = txBox.text_frame + title = tf.paragraphs[0] + run = title.add_run() + run.text = content['detail'] + font = run.font + font.name = content_font + font.size = Pt(list_font_size) + font.bold = True + top_tag += 0.5 # 下移位置 + + elif content['type'] == "image": # 处理图片 + detail_img_path = content['detail'] + # 根据布局状态选择图片位置 + if len(content_list) >= 3 and not is_have_img: + oneSlide.shapes.add_picture(detail_img_path, Inches(0.3), Inches(top_tag), width=Inches(6)) + is_have_img = True + elif is_have_img: + oneSlide.shapes.add_picture(detail_img_path, Inches(7), Inches(top_tag), width=Inches(6)) + else: + oneSlide.shapes.add_picture(detail_img_path, Inches(1.5), Inches(top_tag), height=Inches(5)) + + return prs + + +def gen_ppt_default(model_name, out_file_path, md_file_path, project_path, other_rgb, current_rgb, content_number_rgb, + second_title_rgb): + """PPT生成主流程 + Args: + model_name (str): 模板名称 + out_file_path (str): 输出文件路径 + md_file_path (str): Markdown文件路径 + project_path (str): 项目根目录 + ...颜色参数... + """ + # 字体配置 + content_font = '微软雅黑' # 全局字体 + + # 图片路径配置 + imgPath = project_path + '/ppt-model/images/' + other_content = imgPath + model_name + '/other_content.png' # 普通项图标 + current_content = imgPath + model_name + '/current_content.png' # 高亮项图标 + text_img_path = imgPath + model_name + '/text_background.png' # 文本框背景 + unsort_img_path = imgPath + model_name + '/unsort_list.png' # 列表图标 + + # 字号配置 + list_font_size = 18 # 列表项字号 + import_font_size = 16 # 重点文本字号 + + # 模板文件路径 + file_path = project_path + '/ppt-model/' + model_name + '.pptx' + end_tittle_content = "感谢各位的聆听\n请领导批评指正" # 结束页固定文本 + + # 初始化PPT对象 + prs = set_presentation(file_path) + + # 解析Markdown文件 + first_list, second_dict, content_list, header = explain_markdown(md_file_path) + + # 生成首页 + prs = set_home(prs, header['Title'], header['Author'], current_rgb) # 标题,作者,当前文字颜色 + + # 生成内容页 + prs = set_for_content(prs, first_list, second_dict, content_list, second_title_rgb, content_font, current_content, + other_content, current_rgb, other_rgb, content_number_rgb, + text_img_path, import_font_size, unsort_img_path, list_font_size) + + # 生成结束页 + prs = set_end(prs, header['Date'], end_tittle_content) + + # 保存生成的PPT文件 + prs.save(out_file_path) \ No newline at end of file diff --git a/ppt-generator-master/一键推拉.cmd b/ppt-generator-master/一键推拉.cmd new file mode 100644 index 00000000..e0a7deb1 --- /dev/null +++ b/ppt-generator-master/一键推拉.cmd @@ -0,0 +1,4 @@ +git config --global core.autocrlf false + +git add -A . +git commit -am 'commit' \ No newline at end of file diff --git a/ppt-generator-master/包的安装.txt b/ppt-generator-master/包的安装.txt new file mode 100644 index 00000000..9cb28107 --- /dev/null +++ b/ppt-generator-master/包的安装.txt @@ -0,0 +1,5 @@ +pip install ttkbootstrap -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install python-pptx -i https://pypi.tuna.tsinghua.edu.cn/simple + +# 模板下载 +https://github.com/Achuan-2/pandoc_word_template \ No newline at end of file diff --git a/ppt-generator-master/生成WORD模板.txt b/ppt-generator-master/生成WORD模板.txt new file mode 100644 index 00000000..40cf6ee0 --- /dev/null +++ b/ppt-generator-master/生成WORD模板.txt @@ -0,0 +1,26 @@ +# 用PowerShell脚本快速修改样式 +$word = New-Object -ComObject Word.Application +$doc = $word.Documents.Open("D:\dsWork\ppt-generator-master\left-aligned-template.docx") +$word.Visible = $true + +# 修改正文样式 +$style = $doc.Styles.Item("正文") +$style.Font.Color = 0 # 黑色 (RGB:0,0,0) +$style.Font.Name = "微软雅黑" +$style.Font.Size = 12 + +# 修改标题1样式 +$heading1 = $doc.Styles.Item("标题 1") +$heading1.ParagraphFormat.Alignment = 1 # 居中对齐 +$heading1.Font.Color = 0 # 保持黑色 +$heading1.Font.Size = 20 + +$style.ParagraphFormat.LineSpacingRule = 0 # 单倍行距 +$style.ParagraphFormat.SpaceAfter = 6 # 段后间距6磅 + +$doc.Sections(1).Headers(1).Range.Text = "理想学堂教案" + +# 保存并退出 +$doc.Save() +$doc.Close() +$word.Quit() \ No newline at end of file diff --git a/ppt-generator-master/生成Word.bat b/ppt-generator-master/生成Word.bat new file mode 100644 index 00000000..e20bc3e7 --- /dev/null +++ b/ppt-generator-master/生成Word.bat @@ -0,0 +1 @@ +pandoc D:\dsWork\ppt-generator-master\md-file\readme\4.md -o D:\dsWork\ppt-generator-master\output.docx --reference-doc=D:\dsWork\ppt-generator-master\left-aligned-template.docx -M update_all_fields=true