Skip to content
Public template

About

LaTeX template — render PDF with GitHub Actions (XeLaTeX)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

latex-template

Template repo để viết tài liệu LaTeX và render PDF tự động bằng GitHub Actions (XeLaTeX, hỗ trợ tiếng Việt).

Claude Code plugin

Repo này cũng là marketplace cho plugin latex: tạo dự án LaTeX mới, mỗi dự án một repo GitHub riêng, PDF build bằng GitHub Actions — máy không cần cài TeX.

/plugin install latex --marketplace pnstack/latex-template

Cần git và gh đã đăng nhập với scope workflow (gh auth refresh -h github.com -s workflow).

Lệnh Việc làm
/latex:new <repo> <chủ đề> Scaffold dự án, viết nội dung, tạo repo, push, tải PDF về build/
/latex:build [thư mục] Commit + push thay đổi, chờ CI build, tải PDF về build/

Skill latex-vietnamese (cấu hình tiếng Việt, quy ước chương) nằm trong plugins/latex.

Dùng template

  1. Bấm Use this template để tạo repo mới.
  2. Viết tài liệu trong example/ (hoặc đổi tên thư mục và sửa example trong .github/workflows/latex.yml).
  3. Push lên main hoặc mở PR → tải PDF ở tab Actions → artifact pdf.

example/ chứa một tài liệu mẫu (tổng hợp công thức ma trận) để kiểm thử workflow — thay bằng nội dung của bạn.

Workflow

latex.yml dùng xu-cheng/latex-action:

  • Tự động: push lên main / PR thay đổi example/**.
  • Thủ công: Actions → Render LaTeX to PDF → Run workflow, với các input:
Input Mặc định Ý nghĩa
branch (default) Branch cần build
working_directory example Thư mục chứa file .tex
root_files main.tex Các file gốc, phân tách bằng dấu phẩy/xuống dòng
artifact_name pdf Tên artifact upload

Build local

cd example && latexmk -xelatex main.tex

About

LaTeX template — render PDF with GitHub Actions (XeLaTeX)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages