mcpField
L
latex-compile

latex-compile

github.com/mercatorprojDocuments851 installsUpdated 3w ago
Repository

About latex-compile

A LaTeX compilation guide for thesis and presentation authors, describing fixed XeLaTeX and BibTeX command sequences for producing PDFs. It uses `Thesis.tex` and `ThesisPresentation.tex` as examples.

Key features

  1. 01Compile a thesis PDF
  2. 02Run XeLaTeX and BibTeX in sequence
  3. 03Compile Beamer presentation slides
  4. 04Provide PowerShell and Bash commands

Use cases

  1. 01Generate a thesis PDF
  2. 02Update thesis references
  3. 03Generate a presentation PDF

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mercatorproj/vibe-thesis-skills --skill latex-compile

After installing, type/latex-compilein Claude Code to confirm it loaded.

Bundled filesLICENSEREADME.md

Details

From the project README

LaTeX 编译

目录占位符见仓库根目录 README.md。下文以默认目录名 论文章节(即 {{THESIS_DIR}})与主文件 Thesis.tex 为例;若你的主文件名为 main.tex,将命令中的文件名替换即可。

学位论文(Thesis.tex)

在 {{THESIS_DIR}}(默认 论文章节)下执行下面 4 条命令,顺序固定。PDF 生成在同一目录下 Thesis.pdf。

PowerShell(Windows):

cd 论文章节
xelatex -interaction=nonstopmode Thesis.tex
bibtex Thesis
xelatex -interaction=nonstopmode Thesis.tex
xelatex -interaction=nonstopmode Thesis.tex

Bash(Linux/macOS):

cd 论文章节
xelatex -interaction=nonstopmode Thesis.tex
bibtex Thesis
xelatex -interaction=nonstopmode Thesis.tex
xelatex -interaction=nonstopmode Thesis.tex

执行时当前工作目录应为项目根(即包含 {{THESIS_DIR}} 的目录),或先 cd 到该目录再执行上述命令。

汇报幻灯片(ThesisPresentation.tex)

Beamer 汇报 PDF 与论文同目录,使用 XeLaTeX 编译,无需 BibTeX。建议编译两次以稳定目录与导航。

cd 论文章节
xelatex -interaction=nonstopmode ThesisPresentation.tex
xelatex -interaction=nonstopmode ThesisPresentation.tex

产出:{{THESIS_DIR}}/ThesisPresentation.pdf(默认即 论文章节/ThesisPresentation.pdf)。

Comments

Markdown supported