技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 1 · 170 · 0 current installs · 0 all-time installs
⭐ 1
安装量(当前) 0
🛡 VirusTotal :可疑 · OpenClaw :可疑
Package:alicepub/latex-writer
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :可疑
OpenClaw 评估
The skill mostly matches its stated purpose (generate and compile LaTeX), but there are clear implementation and metadata inconsistencies (missing required binary in metadata, truncated/incorrect code references) and a LaTeX compilation surface that can execute code if TeX is configured with shell escape — the user should review and sandbox before using.
目的
The skill's name/description (LaTeX generation + PDF compilation) aligns with the provided code: template management, LaTeX generation, and PDF building are implemented. However the registry metadata claims 'Required binaries: none' while the code requires a TeX engine (DEFAULT_COMPILER = 'xelatex') and checks for it at runtime. That mismatch (metadata says no binaries; runtime needs xelatex/TeX Live or MiKTeX) is an incoherence the user shoul…
说明范围
SKILL.md describes only template selection, LaTeX generation, and compilation — which matches the code. The runtime instructions and code do not access external network endpoints or require secrets. However: (1) LaTeX compilation can be a security surface because TeX can execute shell commands when shell-escape is enabled; the code invokes xelatex without passing a shell-escape flag (no explicit '--shell-escape'), which generally reduces that …
安装机制
There is no install spec (instruction-only + bundled scripts). That is low-risk from an install/download perspective because nothing is fetched from arbitrary URLs during install. The package includes source files in the skill bundle; no external installer is specified.
证书
The skill declares no required environment variables or credentials and the code does not request secrets. The only external dependency is a system TeX binary (xelatex) and optionally font packages; those are reasonable for the claimed functionality. No unrelated credentials or environment access are requested.
持久
The skill does not request 'always: true' and is user-invocable. It does not modify other skills or system-wide agent settings. It runs local file operations (writes tex to a temp dir, may save PDF), which are appropriate for its purpose.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「LaTeX Writer」。简介:Generate professional LaTeX documents from templates. Supports academic papers …。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/alicepub/latex-writer/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: latex-writer
description: Generate professional LaTeX documents from templates. Supports academic papers (IEEE/ACM), Chinese thesis (CTeX), CVs (moderncv), and custom templates. Auto-compile to PDF.
version: 1.0.0
author: OpenClaw
---
# LaTeX Writer
Intelligent LaTeX document generator with template management and PDF compilation.
## Features
- 📄 **Academic Templates**: IEEE, ACM, Springer, Elsevier
- 📝 **Chinese Support**: CTeX for thesis and reports
- 👤 **CV/Resume**: moderncv, altacv templates
- 🎨 **Custom Templates**: Import your own .cls files
- 🔧 **Auto Compilation**: xelatex/lualatex with error handling
- 📊 **Figure/Table Support**: Auto-convert markdown tables to LaTeX
## Trigger Conditions
Use this skill when:
1. User asks to "write a paper" with specific format
2. User mentions "LaTeX", "PDF", "typesetting"
3. User needs CV/resume generation
4. User provides content and asks for professional formatting
## Usage Examples
### Academic Paper
```
User: 帮我写一篇 IEEE 格式的机器学习论文,主题是深度学习在医学影像中的应用
Skill Actions:
1. Select IEEEtran template
2. Generate structure: Abstract → Intro → Method → Experiments → Conclusion
3. Ask user for key content points
4. Generate LaTeX with proper math formulas
5. Compile to PDF
```
### Chinese Thesis
```
User: 我要写硕士毕业论文,学校要求用 LaTeX
Skill Actions:
1. Select CTeX template (ctexrep)
2. Configure Chinese fonts (SimSun, SimHei)
3. Setup school-specific requirements
4. Generate chapter structure
```
### CV Generation
```
User: 帮我生成一份软件工程师的英文简历
Skill Actions:
1. Select moderncv template (banking style)
2. Collect user information
3. Format with proper sections
4. Generate PDF
```
## Implementation
See `scripts/` directory for implementation:
- `latex_writer.py` - Main entry point
- `template_manager.py` - Template library management
- `content_parser.py` - Parse user input to structured content
- `latex_generator.py` - Generate LaTeX code
- `pdf_builder.py` - Compile LaTeX to PDF
## Requirements
- Python 3.10+
- TeX Live or MiKTeX (with xelatex)
- CJK fonts for Chinese support