diff --git a/templates/latex.yml b/templates/latex.yml index ac04bc327de9b1324453b898803b1b6dd8eef3dd..b021c47fcf61b0e1154224c6b11bb2fb7b4bced0 100644 --- a/templates/latex.yml +++ b/templates/latex.yml @@ -20,18 +20,16 @@ latex_pdf: # Compile the main pdf. # Tectonic is used to compile LaTeX because it automatically fetches the # required packages. - # biber is used for the bibliography because it is the spiritual successor - # to bibtex, has better unicode support, and is easier to program. + # biber is automatically used when necessary, e.g. for the MICADO + # documentation. extends: .abstract_pdf_job stage: build script: - # Workaround to use biber, see https://github.com/tectonic-typesetting/tectonic/issues/53#issuecomment-404370890 - # TODO: Replace with just tectonic once it has biber support. - - tectonic --reruns 0 --keep-intermediates "${BASENAME}.tex" - - biber "${BASENAME}" - tectonic "${BASENAME}.tex" - - rm -f "${BASENAME}.aux" "${BASENAME}.bbl" "${BASENAME}.bcf" "${BASENAME}.blg" "${BASENAME}.out" "${BASENAME}.run.xml" "${BASENAME}.toc" artifacts: + # It would be nicer to have "${BASENAME}.pdf" as artifact, but that + # is not possible. So instead everything untracked is an artifact and + # this is only the pdf because it removes all intermediate files. untracked: true rules: - if: $CI_AWE_SKIP_LATEX_PDF