360 Secure SkillHub
360 安全技能中心

latex-scaffold

将 LaTeX 学术论文项目整理为含 assets/ 与 src/ 的模块化结构,在 main.tex 中用 \input 引入章节;运行随附 Python 脚本为 assets 中的图片自动生成引用 .tex,并提供三档表格单元格高亮配色定义;可选提供 IEEE 会议模板的获取指引。

分类:效率
instinct323
instinct323
热度 25.50
最近更新 2026-05-11 17:47:44

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add instinct323/latex-scaffold
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
latex-scaffold
description
Scaffold LaTeX papers into modular structure. Use for organizing .tex files, generating figure code, and table highlighting. Trigger on LaTeX paper organization, figure management, or academic paper formatting.

LaTeX Scaffold

Standardize LaTeX academic paper projects with modular structure and automated asset management.

Project Structure

project-root/
├── assets/                 # Images and auto-generated .tex files
│   ├── figure1.png
│   ├── figure1.tex         # Auto-generated
│   └── table1.tex
├── src/                    # Modular sections
│   ├── introduction.tex
│   ├── methods.tex
│   └── references.bib
└── main.tex                # Entry point with \input{src/...}

Workflow

Step 0: Get Template (if needed)

If user has no LaTeX project, download the default IEEE conference template:
https://ras.papercept.net/conferences/support/files/ieeeconf.zip

Step 1: Structure the Project

Split large .tex files. In main.tex, use:

\input{src/introduction}
\input{src/methods}
\input{src/results}

Step 2: Generate LaTeX for Assets

python <skill-dir>/scripts/generate_tex_for_assets.py <project-root>

Requires in preamble:

\usepackage{graphicx}
\usepackage{caption}

Step 3: Add Table Highlighting

\usepackage[table]{xcolor}
% \cellcolor{top1}3.14
\definecolor{top1}{rgb}{0.996, 0.851, 0.380}  % Gold
\definecolor{top2}{rgb}{0.675, 0.843, 0.557}  % Light green
\definecolor{top3}{rgb}{0.663, 0.914, 0.894}  % Cyan

Trigger Guidelines

USE this skill when:

  • User has a .tex file to organize
  • "Organize my LaTeX paper"
  • "Split this tex file into sections"
  • "Generate LaTeX for my figures"
  • "Set up table colors in LaTeX"
  • "Make my LaTeX project modular"

DO NOT use when:

  • "How do I install LaTeX?" (installation question)
  • "What does \textbf do?" (syntax question)
  • "Create a LaTeX presentation" (wrong document type)
  • "Convert PDF to LaTeX" (unrelated task)
  • User just mentions "LaTeX" without context of organizing/managing papers

Notes

  • Main filename is flexible
  • Generated .tex files in assets/ can be customized after generation
  • Color definitions are optional but recommended