pandoc / dockerfiles

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

I want to use kotex when i use pandoc/extra Docker image #203

Closed arikim1212 closed 4 months ago

arikim1212 commented 1 year ago

hello, I want to make a manual with korean languages. So, I use pandoc/extra image but after \usepackage{kotex}, {LaTeX Error : File 'kotex.sty' not found} comes out. What should I do? I put kotex package in to /opt/texlive/texdir/texmf-dist/tex/latex directory but same error comes out. Thank you...

alerque commented 1 year ago

I would suggest creating a new Docker image by using this one as a base and using the ctan package tooling to install the kotex package inside your image (which will update package indexes and stuff as opposed to installing it by hand).

arikim1212 commented 1 year ago

I think it is possible if I change pandoc/extra/packages.txt and make images with dockerfile. Is it correct?? In the packages.txt, I can install packages using tlmgr. Or, if I should fix dockerfile directly? Then, where should I put tlmgr install kotex in dockerfile directly?? Dockerfile is so complicated. Sorry for my insufficient english.

tarleb commented 1 year ago

I suggest to create a Dockerfile with

FROM pandoc/extra
RUN tlmgr install kotex-utf

and then build a new pandoc/kotex image from that with

docker build -t pandoc/kotex -f Dockerfile .