Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 }
```