latex-paper-conversion
Skill này làm gì
Công cụ này giúp chuyển đổi một bài báo khoa học viết bằng LaTeX từ định dạng này sang định dạng khác. Nó tự động sao chép nội dung, điều chỉnh định dạng và sửa lỗi để bài báo hoạt động với mẫu mới.
Khi nào nên dùng
- ✓Khi bạn cần điều chỉnh một bài báo có sẵn theo yêu cầu của tạp chí mới.
- ✓Khi bạn có file .tex và một mẫu từ tạp chí khác.
- ✓Khi bạn muốn chuyển từ một định dạng xuất bản (như IPOL) sang định dạng khác (như MDPI).
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/latex-paper-conversion/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi cần chuyển bài báo 'my_paper.tex' của mình sang định dạng của tạp chí XYZ, nằm trong thư mục 'XYZ_template'.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ trước tiên xác định file gốc và mẫu mới. Sau đó, nó trích xuất văn bản và hình ảnh, đưa tất cả vào mẫu mới, tự điều chỉnh định dạng và thử biên dịch tài liệu để đảm bảo mọi thứ chính xác.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
LaTeX Paper Conversion
Overview
This skill automates the tedious and recurring process of converting an academic paper written in LaTeX from one publisher's template to another. Different journals (e.g., Springer, MDPI, IEEE) have vastly different structural requirements, document classes, margin settings, and bibliography styles. This skill streamlines these conversions by executing a structured multi-stage workflow, extracting content, mapping it to a new template, and resolving common compilation errors.
When to Use This Skill
- Use when the user requests to port an existing LaTeX paper to a new journal's format.
- Use when the user provides an existing
.texfile and a new template directory. - Use when the user mentions converting from format A (e.g., IPOL/Neural Processing) to format B (e.g., MDPI).
How It Works
Step 1: Pre-requisites & Assessment
Identify the Source LaTeX file and asking the user for the Target Template Directory. Understand the core layout mapping (single-column vs. double-column, bibliography style).
Step 2: Extraction & Injection Script Generation
Create a Python script (e.g., convert_format.py) to parse the source LaTeX file. Use Regular Expressions to extract core text blocks. Merge the new template's preamble, the extracted body, and the backmatter. Write this to a new file in an output directory.
Step 3: Systematic Fixing
Perform generic fixes on the extracted body text before writing the final file, or in subsequent calls:
- Convert math environment cases (e.g.,
\begin{theorem}to\begin{Theorem}). - Adjust aggressive float placements (e.g.,
[!t]or[h!]) to template-supported options. Avoid forcing[H]unless thefloatpackage is explicitly loaded. - Ensure
\includegraphicspaths are relative to the new.texfile location. - Convert
\begin{tabular}to\begin{tabularx}{\textwidth}or use\resizeboxif moving to a double-column layout.
Step 4: Compilation & Debugging
Run a build cycle (pdflatex -> bibtex -> pdflatex). Check the .log file using grep or rg to systematically fix any packages conflicts, undefined commands, or compilation halts.
Examples
Example 1: Converting IPOL to MDPI
``` USER: "I need to convert my paper 'SAHQR_Paper.tex' to the MDPI format located in the 'MDPI_template_ACS' folder." AGENT: Triggers latex-paper-conversion skill
- Analyzes source
.texand targettemplate.tex. - Creates Python script to extract Introduction through Conclusion.
- Injects content into MDPI template.
- Updates image paths and table float parameters
[h!]to[H]. - Compiles via pdflatex and bibtex to confirm zero errors. ```
Best Practices
- ✅ Always write a Python extraction script; DO NOT manually copy-paste thousands of lines of LaTeX.
- ✅ Always run
pdflatexand verify the.logto ensure the final output compiles. - ✅ Explicitly ask the user for the structural mapping if the source and target differ drastically (e.g., merging abstract and keywords).
- ❌ Don't assume all math packages automatically exist in the new template (e.g., add
\usepackage{amsmath}if missing).
Common Pitfalls
- Problem: Overfull hboxes in tables when moving from single to double column.
Solution: Detect
\begin{tabular}and automatically wrap in\resizebox{\columnwidth}{!}{...}or suggest a format change. - Problem: Undefined control sequence errors during compilation.
Solution: Search the
Paper.logand include the missing\usepackage{}in the converted template.
Additional Resources
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Câu hỏi thường gặp
LaTeX là gì?
LaTeX là hệ thống định dạng văn bản chủ yếu dùng để tạo các tài liệu khoa học và học thuật như bài báo và luận văn. Khác với trình soạn thảo thông thường, bạn định dạng văn bản bằng các lệnh.
Vì sao định dạng của các tạp chí khác nhau?
Mỗi tạp chí khoa học có quy định riêng về cách trình bày bài báo, bao gồm lề, cỡ chữ, kiểu trích dẫn và cách tổ chức các phần. Các mẫu này đảm bảo sự nhất quán về hình thức giữa các bài báo đã xuất bản.
Công cụ có sửa được mọi lỗi không?
Công cụ cố gắng sửa các lỗi thường gặp khi chuyển đổi, như lỗi định dạng bảng hoặc thiếu gói lệnh. Tuy nhiên, các lỗi phức tạp hơn hoặc liên quan đến nội dung vẫn có thể cần bạn xử lý.
Chi tiết
Mô tả gốc của tác giả
This skill should be used when the user asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature). It automates extraction, injection, fixing formatting, and compiling.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5031
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
obsidian-vault-maintainer
394kGiúp agent của bạn giữ gọn kho ghi nhớ kiểu Obsidian, với liên kết wiki hoạt động tốt, thuộc tính nhất quán và các phần tự tạo an toàn.
wiki-maintainer
394kGiúp agent của bạn duy trì wiki bộ nhớ OpenClaw với các trang có thể lặp lại, khối được quản lý an toàn và kiểm tra mâu thuẫn hoặc thiếu sót.
obsidian
394kCho phép agent của bạn đọc, tìm, tạo và sửa ghi chú, công việc, liên kết và thuộc tính trong Obsidian bằng dòng lệnh Obsidian chính thức.