Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abnt-latex/docker
Compilação de latex com Tex Live baseado em docker
https://github.com/abnt-latex/docker
docker latex r tex texlive
Last synced: 26 days ago
JSON representation
Compilação de latex com Tex Live baseado em docker
- Host: GitHub
- URL: https://github.com/abnt-latex/docker
- Owner: abnt-latex
- Created: 2024-08-04T05:12:23.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-11T20:37:36.000Z (3 months ago)
- Last Synced: 2024-11-09T15:58:54.363Z (2 months ago)
- Topics: docker, latex, r, tex, texlive
- Language: Shell
- Homepage:
- Size: 673 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Initialize with Docker
[![GitHub Actions Status](https://github.com/abnt-latex/docker/workflows/Build%20Docker%20Image/badge.svg)](https://github.com/abnt-latex/docker/actions)
## Para usar as imagens (`Packages`)
* [TeXLive and R](https://github.com/orgs/abnt-latex/packages/container/package/texlive-r)
```bash
docker docker pull ghcr.io/abnt-latex/texlive-r:latest
```## Para fazer de forma manual
### Image
Para criar a imagem do latex:ubuntu [40:00.0s]:
```bash
$ docker build -t latex:ubuntu .
```Para listar todas as imagens criadas:
```bash
$ docker images
```### Container
```bash
$ docker run --rm -it -v ${PWD}/:/data/project latex:ubuntu
```Para listar, apagar e parar todas os containers criados:
```bash
$ docker ps
$ docker stop
$ docker rm
```# Install texlive
```bash
sudo apt-get install texlive-full
# OR
sudo apt-get install texlive-publishers texlive-lang-portuguese texlive-latex-extra texlive-fonts-recommended
# tlmgr install abntex2
```### Define Paths
```bash
export PATH="/usr/local/texlive//bin/x86_64-linux:$PATH"
export INFOPATH="/usr/local/texlive//texmf-dist/doc/info:$INFOPATH"
export MANPATH="/usr/local/texlive//texmf-dist/doc/man:$MANPATH"
```### Compile
```bash
./build.sh --dir=${ FOLDER } --file=${ FILE } --mode=${ complete | bib | simple } --simplify # in root
# OR to execute complete mode
pdflatex --interaction=batchmode ${ MAIN_FILE }
bibtex ${ MAIN_FILE }
makeindex ${ MAIN_FILE }.idx
makeglossaries ${ MAIN_FILE }
pdflatex --interaction=batchmode ${ MAIN_FILE }
pdflatex --interaction=nonstopmode ${ MAIN_FILE } | grep ...
# OR
# https://ctan.org/pkg/latexmk
latexmk -pdf ${ MAIN_FILE }
```