Latex Output logo

Latex Output

CommunityPopular
Norman-bury
latex-output

Use when user requests LaTeX format output or has provided school/journal LaTeX templates

Overview

PublisherNorman-bury
Repositoryresearch-writing-skill
Skill namelatex-output
Stars
3.2K
Forks
214
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Norman-bury on GitHub. Read the source before you install it.

Installation

Install the Latex Output AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Norman-bury/research-writing-skill.git /tmp/research-writing-skill
mkdir -p .claude/skills
cp -r /tmp/research-writing-skill/skills/latex-output .claude/skills/latex-output
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Latex Output in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Latex Output on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Latex Output is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

LaTeX 输出

负责将论文内容输出为 LaTeX 格式,支持用户提供的学校或期刊模板。

使用场景

  1. 用户明确要求 LaTeX 输出
  2. 用户提供了 LaTeX 模板
  3. 目标期刊/学校要求 LaTeX 格式

LaTeX 模板目录

用户可将模板文件放入 latex-templates/ 目录:

latex-templates/
├── README.md              # 使用说明
├── template.cls           # 模板类文件
├── template.sty           # 模板样式文件
└── main-template.tex      # 模板主文件示例

Checklist

  • 检查 latex-templates/ 是否有用户模板
  • 询问用户是否使用该模板
  • 解析模板结构(章节命令、格式要求)
  • 根据模板创建 .tex 章节文件
  • 创建 main.tex 主文件
  • 创建 references.bib 参考文献文件
  • 验证可编译性

模板解析

识别章节命令

常见的章节命令:

latex
\chapter{章节名}      % 章
\section{节名}        % 节
\subsection{小节名}   % 小节
\subsubsection{小小节} % 小小节

识别特殊环境

latex
\begin{abstract}...\end{abstract}  % 摘要
\begin{keywords}...\end{keywords}  % 关键词
\begin{figure}...\end{figure}      % 图片
\begin{table}...\end{table}        % 表格
\begin{equation}...\end{equation}  % 公式

输出结构

使用模板时

论文项目/
├── latex-templates/        # 原始模板(保持不动)
├── chapters/               # 章节内容(.tex)
│   ├── 00-abstract.tex
│   ├── 01-introduction.tex
│   ├── 02-literature.tex
│   └── ...
├── figures/                # 图片文件
├── main.tex                # 主文件
├── references.bib          # 参考文献
└── plan/                   # 项目计划

main.tex 模板

latex
\documentclass{template}  % 或用户模板类

% 导入用户模板的样式
\usepackage{template}

% 基本设置
\title{论文题目}
\author{作者}
\date{\today}

\begin{document}

\maketitle

% 摘要
\input{chapters/00-abstract}

% 目录
\tableofcontents

% 正文章节
\input{chapters/01-introduction}
\input{chapters/02-literature}
\input{chapters/03-methods}
\input{chapters/04-results}
\input{chapters/05-discussion}
\input{chapters/06-conclusion}

% 参考文献
\bibliographystyle{gbt7714-numerical}  % 或其他样式
\bibliography{references}

\end{document}

章节文件格式

.tex 章节文件示例

latex
% chapters/01-introduction.tex
% 绪论

\chapter{绪论}

\section{研究背景}

随着...技术的发展,...领域面临着...的挑战。
本文针对...问题,提出...方法。

\section{研究目的与意义}

本研究旨在...

\subsection{理论意义}

...

\subsection{实践意义}

...

\section{研究内容与方法}

本文的研究内容主要包括:

\begin{enumerate}
    \item 第一部分...
    \item 第二部分...
    \item 第三部分...
\end{enumerate}

\section{论文结构}

本文共分为X章,各章内容安排如下:

第一章为绪论,介绍...
第二章为文献综述,综述...
...

参考文献(BibTeX)

references.bib 格式

bibtex
@article{author2023title,
    author = {张三 and 李四},
    title = {论文标题},
    journal = {期刊名称},
    year = {2023},
    volume = {10},
    number = {2},
    pages = {100-110},
}

@book{author2022book,
    author = {王五},
    title = {书籍名称},
    publisher = {出版社},
    year = {2022},
    address = {出版地},
}

@inproceedings{author2021conf,
    author = {赵六},
    title = {会议论文标题},
    booktitle = {会议名称},
    year = {2021},
    pages = {50-55},
}

常见模板适配

清华大学模板 (ThuThesis)

latex
\documentclass[degree=master]{thuthesis}

特殊命令:

  • \thusetup{...} 设置论文信息
  • \makecover 生成封面
  • \frontmatter 前言部分
  • \mainmatter 正文部分
  • \backmatter 附录部分

国科大模板 (ucasthesis)

latex
\documentclass{ucasthesis}

期刊模板

不同期刊格式各异,需根据用户提供的模板解析。

编译说明

在 plan/notes.md 中记录编译命令:

markdown
## LaTeX 编译

### 推荐工具
- TeXLive (跨平台)
- MacTeX (macOS)
- MiKTeX (Windows)

### 编译命令
```bash
xelatex main.tex
bibtex main
xelatex main.tex
xelatex main.tex

一键编译

bash
latexmk -xelatex main.tex

## 与 Markdown 的转换

### 从 Markdown 转 LaTeX

如果用户已有 Markdown 内容,可以转换:

1. 标题:`# 标题` → `\chapter{标题}`
2. 加粗:`**文字**` → `\textbf{文字}`
3. 引用:`> 引用` → `\begin{quote}引用\end{quote}`
4. 代码:`` `代码` `` → `\texttt{代码}`
5. 列表:`- 项目` → `\begin{itemize}\item 项目\end{itemize}`

### 注意事项

- LaTeX 特殊字符需转义:`# $ % & _ { } ~ ^`
- 中文需使用 XeLaTeX 编译
- 图片路径使用相对路径

## 错误处理

### 如果没有模板

> "未检测到 LaTeX 模板。请选择:
> 1. 提供模板文件(放入 latex-templates/)
> 2. 使用默认 article 类
> 3. 使用 ctexart 类(中文)
> 4. 继续使用 Markdown 格式"

### 如果模板不完整

> "检测到模板文件,但缺少 [文件名]。
> 请补充完整模板,或使用默认设置。"

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Latex Output AI skill do?

Use when user requests LaTeX format output or has provided school/journal LaTeX templates

Why use Latex Output on TypingMind?

Because you install it once and use it with any model. Latex Output is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Latex Output in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Norman-bury/research-writing-skill/tree/main/skills/latex-output. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Latex Output?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Latex Output?

As many as you like. As long as a model supports skills, you can use Latex Output with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Latex Output AI skill free?

Yes. It is published on GitHub by Norman-bury under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇