pandoc / dockerfiles

Dockerfiles for various pandoc images
GNU General Public License v2.0
364 stars 98 forks source link

FIX #87: Add tectonic to extra #228

Closed daamien closed 4 months ago

daamien commented 4 months ago

Tectonic is a promising pdf engine.

It's ability to automatically download latex support files on-the-fly could solve a lot of missing package x or missing font y problems.

Since this is still experimental, I think we should add it to the extras image and maybe move it uptream into the latex image in the forthcoming month if it is stable and useful...

Closes #87

tarleb commented 4 months ago

I'm having second thoughts. This currently assumes a x86-64 architecture, which will lead to issues if we try to support other architectures like arm.

daamien commented 4 months ago

Yes

there's an apk package but no deb package for Ubuntu

Maybe we can use conda ?

https://tectonic-typesetting.github.io/book/latest/installation

tarleb commented 4 months ago

Adding another package manager seems like a rather heavy solution. Would it be possible to write an install command that works with multiple architectures?

Another possibility could be to ask the tectonic devs to publish a package on CTAN, that would make the installation trivial.

daamien commented 4 months ago

@tarleb I found this solution:

https://github.com/pandoc/dockerfiles/pull/228/commits/3c1b85a546d64b34b1fb6280cd748bf535519877#diff-86bf175f2e6e05c2f1307ec16481ae84c75506c1261e550fa8212e380d25eadbR182

not pretty but it works

let me know if that's ok for you

tarleb commented 4 months ago

Neat, looks good. How much space does that add to the image?

daamien commented 4 months ago

The tectonic binary is 55MB all by itself :)


root@1d11f0afdaad:/data# ls -lh /usr/local/bin/tectonic                                                              
-rwxr-xr-x 1 1001 127 55M Feb  5 00:56 /usr/local/bin/tectonic
tarleb commented 4 months ago

That's like half a pandoc, so not too bad. :smile:

There seems to be a PATH issues on Alpine that needs fixing, but I have no objections to merging this :+1:

daamien commented 4 months ago

Somehow the binary-drop installation wouldn't work on Alpine. I switched back to the apk install method.

https://github.com/pandoc/dockerfiles/pull/228/files#diff-86bf175f2e6e05c2f1307ec16481ae84c75506c1261e550fa8212e380d25eadbR185