从学术文献PDF自动生成结构化的学术汇报PPT,遵循学术汇报的标准框架。
文献PDF → 分析提取 → JSON结构 → PPT文件
阅读文献,提取关键信息,整理为JSON格式。参考 references/analysis_guide.md 了解提取要点。
python scripts/generate_ppt_structure.py analysis.json > structure.json
python scripts/export_ppt.py structure.json output.pptx
pip install python-pptx
分析结果应为JSON格式,包含以下字段:
{
"title": "论文标题",
"authors": "作者",
"venue": "期刊/会议",
"year": "2024",
"research_question": "核心问题",
"background": ["背景要点1", "背景要点2"],
"previous_work": ["前人工作1", "前人工作2"],
"research_gap": ["研究空白1", "研究空白2"],
"hypothesis": ["假设1", "假设2"],
"experimental_design": ["设计要点"],
"participants": "被试信息",
"independent_variables": "自变量",
"dependent_variables": "因变量",
"procedure": ["步骤1", "步骤2"],
"control_variables": ["控制变量1"],
"method_theory_mapping": ["方法-理论对应"],
"main_findings": ["发现1", "发现2"],
"hypothesis_validation": ["验证结果"],
"conclusion_logic": ["逻辑链"],
"limitations": ["局限1", "局限2"],
"contributions": ["贡献1", "贡献2"]
}
完整示例见 references/example_analysis.json。
如需调整PPT样式,可修改 scripts/export_ppt.py:
COLORS 字典: 修改配色方案共 1 个版本