Skip to content

Compile LaTeX docs to PDF with latexmk.

License

Notifications You must be signed in to change notification settings

repaction/texlive

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test TeXLive Action

TeXLive Action

This action compiles LaTeX docs to PDF using latexmk with a minimal texlive image.

Inputs

  • tex_files

The main LaTeX file or a list of such files to be compiled.

  • compiler

Default to latexmk, can be changed to latex or pdflatex.

  • options

Default options for latexmk is set to -pdf -file-line-error -halt-on-error -interaction=nonstopmode. The options should be changed correspondingly when the compiler has been changed.

Example

name: Build LaTeX document
on: [push]
jobs:
  build_latex:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v2
      - name: Compile LaTeX document
        uses: repaction/texlive@main
        with:
          tex_files: |
            main.tex

References:

[1] https://github.com/xu-cheng/latex-action