返回顶部
e

easypaperEasyPaper论文生成

Generate academic papers from metadata using EasyPaper Python SDK. Use when user wants to create structured LaTeX papers programmatically. References the EasyPaper repository, especially plugins/easypaper/ directory for detailed workflows, commands, and skills.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
163
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

easypaper

EasyPaper 技能

通过 Python SDK 使用 EasyPaper 多智能体系统,从元数据生成结构化学术论文。

仓库

来源: https://github.com/PinkGranite/EasyPaper

主要参考目录: plugins/easypaper/

该目录包含 OpenClaw 智能体的全面指南:

  • - 命令: plugins/easypaper/commands/ 中的工作流执行合约
  • 技能: plugins/easypaper/skills/ 中的领域特定技能
  • 插件文档: plugins/easypaper/.claude-plugin/README.md 中的设置与使用说明

安装

Python 包

重要提示: 在隔离环境中安装 EasyPaper(推荐用于依赖管理)。

使用 venv:
bash
python -m venv easypaper-env
source easypaper-env/bin/activate # 在 Windows 上: easypaper-env\Scripts\activate
pip install easypaper

使用 conda:
bash
conda create -n easypaper python=3.11
conda activate easypaper
pip install easypaper

直接安装(不推荐):
bash
pip install easypaper

LaTeX 工具链

EasyPaper 需要 LaTeX 工具链(pdflatex + bibtex)用于 PDF 编译。根据您的系统安装:

macOS:
bash

使用 Homebrew(推荐)


brew install --cask mactex

或最小化安装

brew install basictex sudo tlmgr update --self sudo tlmgr install collection-basic collection-latex collection-bibtexextra

Linux(Ubuntu/Debian):
bash
sudo apt-get update
sudo apt-get install texlive-latex-base texlive-bibtex-extra texlive-latex-extra

Linux(Fedora/RHEL):
bash
sudo dnf install texlive-scheme-basic texlive-bibtex texlive-latex

Windows:

  • - 下载并安装 MiKTeX(推荐完整安装程序)
  • 或使用 TeX Live
  • 确保 pdflatex 和 bibtex 在您的 PATH 中

Poppler(用于 PDF 转图片)

macOS:
bash
brew install poppler

Linux(Ubuntu/Debian):
bash
sudo apt-get install poppler-utils

Linux(Fedora/RHEL):
bash
sudo dnf install poppler-utils

Windows:

  • - 从 Poppler for Windows 下载
  • 解压并将 bin 目录添加到 PATH
  • 或使用 conda: conda install -c conda-forge poppler

快速开始

推荐工作流: 准备一个 metadata.json(参见 examples/meta.json),将其解析为 PaperGenerationRequest,然后使用 tometadata() + togenerateoptions() 运行。

排版器行为(SDK + 服务器): PDF 编译优先使用进程内排版器(SDK 自包含)。如果没有本地对等节点可用,EasyPaper 会回退到 HTTP 排版器端点(AGENTSYSSELFURL)。

从文件加载并生成

python
import asyncio
from pathlib import Path
from easypaper import EasyPaper, PaperGenerationRequest

async def main():
ep = EasyPaper(config_path=str(Path(configs/dev.yaml).resolve()))

request = PaperGenerationRequest.modelvalidatejson_file(metadata.json)
metadata = request.to_metadata()
options = request.togenerateoptions()

result = await ep.generate(metadata, options)
print(f状态: {result.status}, 字数: {result.totalwordcount})

asyncio.run(main())

内联元数据

python
import asyncio
from easypaper import EasyPaper, PaperMetaData

async def main():
ep = EasyPaper(config_path=configs/dev.yaml)

metadata = PaperMetaData(
title=我的论文标题,
idea_hypothesis=...,
method=...,
data=...,
experiments=...,
references=[@article{...}],
)

result = await ep.generate(metadata)
print(f状态: {result.status}, 字数: {result.totalwordcount})

asyncio.run(main())

关键参考文件

使用 EasyPaper 时,请参考仓库中的以下文件:

命令(工作流执行)

技能(领域指南)

配置和示例

PaperMetaData 字段

必填:

  • - title、idea_hypothesis、method、data、experiments、references

可选:

  • - styleguide(会议名称)、targetpages、templatepath、figures、tables、coderepository、exportprompttraces

完整示例请参见 examples/meta.jsoneconomistexample/metadata.json。将 examples/meta.json 视为完整的 PaperGenerationRequest 样本:使用 request = PaperGenerationRequest.modelvalidatejsonfile(...),然后使用 request.tometadata() 和 request.togenerateoptions() 进行 SDK 生成。

最终 PDF 选择

当启用审查循环时,可能存在多个迭代 PDF。请按以下优先级报告最终产物:

  1. 1. result.pdfpath(权威最终输出)
  2. 在 result.outputpath 下:iterationfinal//.pdf
  3. 在 result.output_path

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 easypaper-1776125239 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 easypaper-1776125239 技能

通过命令行安装

skillhub install easypaper-1776125239

下载

⬇ 下载 easypaper v1.0.3(免费)

文件大小: 3.36 KB | 发布时间: 2026-4-14 10:01

v1.0.3 最新 2026-4-14 10:01
EasyPaper Skill 1.0.3

- Clarified Typesetter behavior: SDK prefers in-process compilation for PDFs and falls back to HTTP endpoint if needed.
- Added section on "Final PDF Selection," detailing the priority order for finding and reporting the final output PDF.
- No code or functional changes—documentation improvement only.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部