https://github.com/pyramation/latex-docker
docker container for latex projects
https://github.com/pyramation/latex-docker
Last synced: 5 months ago
JSON representation
docker container for latex projects
- Host: GitHub
- URL: https://github.com/pyramation/latex-docker
- Owner: pyramation
- Created: 2017-08-01T17:36:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-25T02:56:57.000Z (over 1 year ago)
- Last Synced: 2025-03-13T02:03:52.068Z (about 1 year ago)
- Language: TeX
- Size: 385 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
DEPRECATED IN FAVOR OF https://github.com/pyramation/latex-pstricks-docker/
The goal of this image is to make it super easy to have a turn-key LaTeX setup ;)
# build
first time takes a while
```sh
make
```
# create a local `tex/` folder
On your computer in the same directory you create your LaTeX folder, call the folder `tex/`
* Store your `.tex` files (or folders) here.
* Any files (like pdfs) you create in the LaTeX box will be available here.
```sh
mkdir tex
```
# ssh into the box
```sh
make ssh
```
# create pdfs!
latex a file
```sh
latex doc.tex
```
turn the dvi into a pdf
```sh
dvipdfm doc
```
# tips for lots of embedded graphics
Try out other approaches if this doesn't work, but I've found it works great.
```sh
latex math.tex
dvips -Ppdf -G0 math.dvi
ps2pdf math.ps
```
# bibtex
At the bottom of your document, let's say `awesome.tex` include
```
\newpage
\bibliographystyle{cell}
\bibliography{sources}
```
`\bibliography` is referencing `sources.bib` in the current directory. Then run:
```sh
latex awesome.tex
bibtex awesome.tex
latex awesome.tex
latex awesome.tex
```