21 lines
847 B
Markdown
21 lines
847 B
Markdown
# latex-build
|
|
|
|
Docker resources to build a docker image to compile latex files in gitea CI
|
|
|
|
## Usage
|
|
Build the docker image using
|
|
```bash
|
|
./build-image.sh your-image-name
|
|
```
|
|
You can then run the image using
|
|
```bash
|
|
docker run --name container-name -v /path/to/latex/build/dir/on/host:/root/data your-image-name:latest ./entrypoint.sh data file.tex false
|
|
```
|
|
The arguments that can be passed to the container are the following (in order):
|
|
1. Extra arguments for `latexmk` (you can also use this to provide the entry file)
|
|
2. Extra packages (alpine linux) to install in the container
|
|
|
|
To build all (i.e. both the full and default image) you can use the provided `build-all.sh` script.
|
|
|
|
The default image is just a base image that may or may not work with your latex setup, where the full image also allows building with `pygments` for e.g. minted.
|