Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinay0410/tectonic-action
Compile Tex files easily
https://github.com/vinay0410/tectonic-action
action github-action latex latex-action pdf tectonic tex xelatex
Last synced: 3 months ago
JSON representation
Compile Tex files easily
- Host: GitHub
- URL: https://github.com/vinay0410/tectonic-action
- Owner: vinay0410
- Created: 2019-10-20T08:37:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T18:30:19.000Z (about 2 years ago)
- Last Synced: 2024-07-17T08:26:08.854Z (4 months ago)
- Topics: action, github-action, latex, latex-action, pdf, tectonic, tex, xelatex
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 83
- Watchers: 2
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Latex Action
This action compiles latex/xelatex files using [Tectonic](https://tectonic-typesetting.github.io/en-US/), which automatically downloads necessary dependencies, and compiles to pdf.
## Inputs
### `tex-path`
**Required** Path of tex, xtx file to compile.
### `push`
**Optional** Compiled PDF is pushed, if `push` is passed as 'yes'.
## Outputs
Pushes a Compiled PDF file parallel to the tex, xtx file, if push is passed as 'yes'.## Example usage
### Pushes Compiled PDF
```
on: [push]jobs:
latex-job:
runs-on: ubuntu-latest
name: A job to Compile Latex file
steps:
- uses: actions/checkout@v1
- name: Compilation
uses: vinay0410/tectonic-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tex_path: 'dir/file.tex'
push: 'yes'
```### Doesn't Push Compiled PDF
```
on: [push]jobs:
latex-job:
runs-on: ubuntu-latest
name: A job to Compile Latex file
steps:
- uses: actions/checkout@v1
- name: Compilation
uses: vinay0410/tectonic-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tex_path: 'dir/file.tex'
```