dante-ev / latex-action

:octocat: GitHub Action to compile LaTeX documents
MIT License
177 stars 25 forks source link

makeglossaries? #22

Open RemDelaporteMathurin opened 2 years ago

RemDelaporteMathurin commented 2 years ago

Hi @koppor

Any idea how to use the makeglossaries option?

This is a screenshot from the Kaobook documentation.

image

RemDelaporteMathurin commented 2 years ago

I find a way to do it, but I wanted to check with you if there was a better option:

name: Build LaTeX document

# Triggers the workflow on push or pull request events
on: [push, pull_request, workflow_dispatch]

jobs:
  build_latex:
    runs-on: ubuntu-latest
    container:
      image: danteev/texlive:latest
    steps:
      - name: Cancel Previous Runs
        uses: styfle/cancel-workflow-action@0.6.0
        with:
          access_token: ${{ github.token }}

      - name: Set up Git repository
        uses: actions/checkout@v2

      - name: Compile LaTeX document
        run: |
          latexmk -pdf main.tex
          makeglossaries main
          latexmk -pdf main.tex
koppor commented 2 years ago

Hey, please have a look at https://github.com/latextemplates/LNCS/blob/main/_latexmkrc for an example latexmk configuration

I also offer a template generator at https://github.com/latextemplates/generator-latex-template#latex-template-generator- - it generates a (more or less) great initial TeX temples. Heavy work in progress though.