3tty0n / latexmk-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

latexmk-action

GitHub Action to compile LaTeX documents using latexmk.

Inputs

  • root_file:

    The root LaTeX file to be compiled. This input is required.

  • args:

    The extra arguments to be passed to the LaTeX engine.

    By default, it is -pdf -shell-escape -file-line-error -interaction=nonstopmode. This tells latexmk to use pdflatex.

    Refer to latexmk document for more information.

  • working_dir:

    The workspace where the latexmk command is executed.

  • extra_packages:

    Extra packages you need.

Example

Put main.yml containing the following at .github/workflows directory.

name: Build LaTeX document
on: [push, pull_request]
jobs:
  build_latex:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v1
      - name: Compile LaTeX document
        uses: 3tty0n/latexmk-action@master
        with:
          root_file: main.tex

About


Languages

Language:Shell 56.3%Language:Dockerfile 26.0%Language:TeX 17.7%