Skip to content

Compile LaTeX via latexmk

Actions
Calls latexmk to compile a LaTeX document
v1.0.0
Latest
Star (1)

Compile LaTeX action

This action can be used to compile LaTeX documents with latexmk. The action uses an ubuntu based docker image.

It calls latexmk in the working directory to compile a LaTeX document.

Inputs

file (required)

The LaTeX file to be compiled.

output-directory

The directory for output files, relative to the root of the repository. Defaulted to ..

args

Additional arguments to pass over to latexmk.

Example usage

name: test
on: [push]
jobs:
  test-example:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: antaljanosbenjamin/[email protected]
        with:
          file: test.tex
          args: -pdf
      - run: '(test -f test.pdf && echo PDF exists) || (echo PDF does not exist && exit 1)'

For further examples check the test workflow.

Compile LaTeX via latexmk is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Calls latexmk to compile a LaTeX document
v1.0.0
Latest

Compile LaTeX via latexmk is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.