You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action can be used to compile latex documents with `latexmk`. The action uses an ubuntu based [docker image](https://github.com/antaljanosbenjamin/latex-extra-docker).
3
+
4
+
It calls `latexmk` in the working directory on a single tex file.
5
+
## Inputs
6
+
7
+
### `file` (required)
8
+
The LaTeX file to be compiled.
9
+
10
+
### `output-directory`
11
+
The directory for output files, relative to the root of the repository. Defaulted to `.`.
12
+
### `args`
13
+
Additional arguments to pass over to `latexmk`.
14
+
15
+
## Example usage
16
+
17
+
18
+
```
19
+
name: test
20
+
on: [push]
21
+
jobs:
22
+
test-example:
23
+
runs-on: ubuntu-latest
24
+
steps:
25
+
- uses: actions/checkout@v2
26
+
- uses: antaljanosbenjamin/compile-latex@master
27
+
with:
28
+
file: test.tex
29
+
args: -pdf
30
+
- run: '(test -f test.pdf && echo PDF exists) || (echo PDF does not exist && exit 1)'
31
+
```
32
+
33
+
For further examples check the [test workflow](.github/workflows/test.yml).
% from https://en.wikibooks.org/wiki/LaTeX/Bibliographies_with_biblatex_and_biber
2
+
\documentclass{article}
3
+
\usepackage[backend=biber]{biblatex}
4
+
\addbibresource{lauraPhd2016.bib}
5
+
\begin{document}
6
+
I doubt that there is any useful information here~\cite{wikibook}.
7
+
8
+
All we know is limited, apart from knowing the answer we all know. Or do we? Wombat and Koala have discovered some interesting things~\cite{wombat2016}.
9
+
10
+
Some people are too nosy. What can happen to them is described by Laura Lion~\cite[9]{lion2010}.
0 commit comments