-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using docker for building documents #302
Comments
Thanks a lot for the description. Do you mind my incorporating the content into readme with credits? |
@James-Yu Go ahead! :) As I currently don't have the option: maybe someone should test if the |
Tried your script on a Mac. That does not work: That works: |
@tam3r Thanks for testing, I edited the script in #302 (comment) |
With newest edge build for Docker on Windows you can run LCOW aside of Windows containers. This requires to specify
|
Note that tianon/latex uses This might be not bad in general, but in case you a) want to have new packages (such as support for plantuml) or b) get the latest package updates, a newer version is beneficial. In my image koppor/texlive, I am using TeX Live 2017 with the latest package updates and working setups for additional packages such as minted. |
@koppor
|
Please try with danteev/texlive ( https://github.com/dante-ev/docker-texlive ) Yes, I should take down the Docker repository. The homepage redirects to the DANTE e.V. page, doesn't it? |
@koppor Thanks. It works but it shows "Formatting failed. Please refer to LaTeX Workshop Output for details." |
Is there some possibility that you can check the "LaTeX Workshop Output" for details? |
No issue here. I just wanted to share my solution for using a docker container for building (maybe also an alternative to #119 ). This is especially useful if you for example don't want to install the huge texlive package on your computer. Another side effect is that on Windows the build process within a linux container is faster than building on the local system.
I just wrote myself a little script
latexdocker.cmd
for running the container. It should work for both Linux and Windows and just executes all arguments inside the container:I am using the
tianon/latex
image here, which isdebian:jessie
withtexlive-full
,biber
,latexmk
andmake
(Dockerfile). Compressed image is only 1GB!In the settings of LaTex-Workshop you can just use the script and pass the binary and other arguments to it:
Of course you can also use the other binaries like
pdflatex
and so on. Note that you can't use the%DOC%
variable in the settings as it contains the path on the local machine instead of the one in the container.The text was updated successfully, but these errors were encountered: