← 返回 Skills 市场
khimyoung

Academic Formula Converter

作者 KhimYoung · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
650
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install academic-formula-converter
功能描述
Convert LaTeX math formulas in Markdown to styled docx or HTML documents with Unicode symbol support for academic use.
使用说明 (SKILL.md)

academic-formula-converter

学术论文数学公式转换工具 - 将Markdown中的LaTeX公式转换为docx和html格式

功能

  1. LaTeX公式转Unicode - 将LaTeX格式转换为可读性更好的Unicode符号
  2. 生成Word文档 - 支持图片和公式的docx文件
  3. 生成HTML文档 - 带样式的HTML文件

触发关键词

  • "公式转换"
  • "数学公式"
  • "LaTeX转docx"
  • "论文公式"
  • "formula converter"
  • "academic formula"

使用方法

命令行

# 基本转换
python3 /path/to/formula_converter.py input.md output.docx

# 转换为HTML
python3 /path/to/formula_converter.py input.md output.html

# 指定图片目录
python3 /path/to/formula_converter.py input.md output.docx --images /path/to/images/

支持的公式

  • 行内公式: $formula$
  • 块公式: $$formula$$

LaTeX到Unicode转换示例

LaTeX Unicode
imes ×
\frac{a}{b} (a)/(b)
\alpha α
\sigma σ
\leq
\geq
\sum Σ
\sqrt{} √()
\infty

依赖

pip install python-docx markdown
安全使用建议
This skill appears to do what it says: converting Markdown with LaTeX formulas into styled docx or HTML. Before installing/using it: 1) install the listed Python packages (pip install python-docx markdown); 2) be aware the tool will read the input markdown and any image file paths referenced in that markdown (it will not fetch remote images), so avoid pointing it at sensitive local files unless you intend to include them; 3) note a small implementation mismatch: the --images option is accepted but not actually used to resolve image links, so ensure image paths in your markdown are correct or adjust the script if you need image-directory handling; 4) there are no network calls or credential requirements in the code, so risk is limited to local file access and standard Python package installation.
功能分析
Type: OpenClaw Skill Name: academic-formula-converter Version: 1.0.0 The skill bundle's primary function is benign, converting LaTeX formulas. However, the `formula_converter.py` script contains a local file read vulnerability: it attempts to embed images from paths specified in the input Markdown (`doc.add_picture(img_match.group(2))`). While `os.path.exists` is checked, an attacker controlling the Markdown input could potentially specify arbitrary file paths, leading to attempts to read sensitive files. Although a `try...except: pass` block handles errors, the underlying capability to attempt access to arbitrary local files makes the skill suspicious, as it could be exploited for information disclosure.
能力评估
Purpose & Capability
Name/description (LaTeX -> docx/html) matches the provided code and instructions. Required dependencies listed (python-docx, markdown) align with imports used. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md usage (running the included Python script, installing python-docx and markdown) matches runtime behavior. Minor inconsistency: SKILL.md and the CLI accept an --images directory, but the script does not use the images_dir when resolving image links (it uses the path from the markdown directly). The script reads local input markdown and any local image paths referenced, which is expected for a converter but means it will access files on the host filesystem referenced by the markdown.
Install Mechanism
Instruction-only skill with no install spec; dependencies are standard PyPI packages and are listed in SKILL.md. No downloads from arbitrary URLs or archive extraction are present.
Credentials
No environment variables, credentials, or external tokens are requested. The script does not read environment variables or external config.
Persistence & Privilege
Skill is not always-enabled and does not request elevated or persistent privileges. It does not modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install academic-formula-converter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /academic-formula-converter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of academic-formula-converter. - Converts LaTeX formulas in Markdown to Unicode for improved readability. - Exports Markdown with formulas and images to docx (Word) and styled HTML formats. - Supports both inline `$formula$` and block `$$formula$$` math syntax. - Provides command line interface for file conversion and image directory specification. - Includes sample LaTeX-to-Unicode mappings and installation instructions.
元数据
Slug academic-formula-converter
版本 1.0.0
许可证
累计安装 3
当前安装数 2
历史版本数 1
常见问题

Academic Formula Converter 是什么?

Convert LaTeX math formulas in Markdown to styled docx or HTML documents with Unicode symbol support for academic use. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 650 次。

如何安装 Academic Formula Converter?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install academic-formula-converter」即可一键安装,无需额外配置。

Academic Formula Converter 是免费的吗?

是的,Academic Formula Converter 完全免费(开源免费),可自由下载、安装和使用。

Academic Formula Converter 支持哪些平台?

Academic Formula Converter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Academic Formula Converter?

由 KhimYoung(@khimyoung)开发并维护,当前版本 v1.0.0。

💬 留言讨论