在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):blang/latex-docker开源软件地址(OpenSource Url):https://github.com/blang/latex-docker开源编程语言(OpenSource Language):Makefile 55.4%开源软件介绍(OpenSource Introduction):Latex docker containerThis container helps compiling latex sources without the need to install all latex packages on your system. Why should I use this container?
VersionsAll versions are based on Ubuntu: (See all tags)
If you need...
For stability, choose a more specific version tag (See all tags) Quick SetupCompile latex sources using docker: # Change to your project
cd my_latex_project
# Download the command wrapper and make it executable
wget https://raw.githubusercontent.com/blang/latex-docker/master/latexdockercmd.sh
chmod +x latexdockercmd.sh
# Optional: Change the version (see above, default blang/latex:ubuntu)
edit ./latexdockercmd.sh
# Compile using pdflatex (docker will pull the image automatically)
./latexdockercmd.sh pdflatex main.tex
# Or use latexmk (best option)
./latexdockercmd.sh latexmk -cd -f -interaction=batchmode -pdf main.tex
# Cleanup: ./dockercmd.sh latexmk -c or -C
# Or make multiple passes (does not start container twice)
../latexdockercmd.sh /bin/sh -c "pdflatex main.tex && pdflatex main.tex" RequirementsFirst, add your local user to docker group (should already be the case): sudo usermod -aG docker YOURUSERNAME The Daemon setupIf you're working on source in latex, you might want to compile it multiple times and don't want to start a container each time.
CustomizeIf software is missing, extend this base image with your own software: Create a Dockerfile or download Dockerfile.blueprint for examples:
Build your custom image: docker build -t mycustomlateximg . Edit Latex MakeClean build using
Use
CTAN PackagesA list of available ctan packages can be found here: http://mirror.ctan.org/systems/texlive/tlnet/archive Install texlive packages:
ContributionIf the image is missing a package only specific for you, please don't open an issue or pull request but build your own image as described above. If a critical package is missing or you have a recipe for missing packages in a common scenario, please create an issue / PR on Dockerfile.blueprint. LicenseSee LICENSE file. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论