Skip to content

Commit

Permalink
opts
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 7, 2021
1 parent 4332314 commit 4bfa725
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: yegor256/[email protected]
with:
path: foo
opts: -pdf
packages: acmart tikz
```
Expand All @@ -24,6 +25,12 @@ which configures the behavior of [latexmk](https://mg.readthedocs.io/latexmk.htm
If you don't have special requirements in your project, and just need to compile
a `.tex` file, skip the config, everything should work out of the box.

The options available (provided via the `with` YAML element):

* `path` is a relative path of the directory with `.tex` file(s)
* `opts` is the options to pass to `latexmk`
* `packages` is a comma-separated list of TeXLive package to install

In order to test this action, just run:

```bash
Expand Down
2 changes: 1 addition & 1 deletion entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ if [[ "${INPUT_PACKAGES}" ]]; then
tlmgr --verify-repo=none install ${INPUT_PACKAGES}
fi

latexmk
latexmk ${INPUT_OPTS}

0 comments on commit 4bfa725

Please sign in to comment.