← Back to Skills Marketplace
khimyoung

Academic Formula Converter

by KhimYoung · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
650
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install academic-formula-converter
Description
Convert LaTeX math formulas in Markdown to styled docx or HTML documents with Unicode symbol support for academic use.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install academic-formula-converter
  3. After installation, invoke the skill by name or use /academic-formula-converter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug academic-formula-converter
Version 1.0.0
License
All-time Installs 3
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Academic Formula Converter?

Convert LaTeX math formulas in Markdown to styled docx or HTML documents with Unicode symbol support for academic use. It is an AI Agent Skill for Claude Code / OpenClaw, with 650 downloads so far.

How do I install Academic Formula Converter?

Run "/install academic-formula-converter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Academic Formula Converter free?

Yes, Academic Formula Converter is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Academic Formula Converter support?

Academic Formula Converter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Academic Formula Converter?

It is built and maintained by KhimYoung (@khimyoung); the current version is v1.0.0.

💬 Comments