Sign inSign up

auchida/pandoc

By auchida

•Updated about 4 years ago

docker image with pandoc and texlive, including luatexja and bxjscls etc

Image
0

7.6K

auchida/pandoc repository overview

⁠docker-pandoc

License

docker image with pandoc and texlive, including luatexja and bxjscls to generate Japanese PDF files. Optionally Noto Sans/Serif fonts are available noto-jp and noto-cjk-jp tag.

  • noto-cjk-jp uses language-specific OpenType version of Noto fonts.
  • noto-jp uses region-specific subset OpenType of Noto fonts, has less glyphs and image size as well.

see Noto CJK – Google Noto Fonts⁠ for more information

Docker image is available as auchida/pandoc⁠ in Docker Hub.

⁠Image tags

  • latest, base
  • noto-cjk-jp
  • noto-jp

⁠Usage

⁠For base/latest
$ docker run -v $PWD:/opt/docs auchida/pandoc pandoc -V documentclass=ltjsarticle --pdf-engine=lualatex -o docs.pdf docs.md

or

$ docker run -v $PWD:/opt/docs auchida/pandoc pandoc -V documentclass=bxjsarticle -V classoption=pandoc,standard --pdf-engine=xelatex -o docs.pdf docs.md

About pandoc, consult Pandoc - About pandoc⁠ for more information.

⁠For noto-cjk-jp
$ docker run -v $PWD:/opt/docs auchida/pandoc:noto-cjk-jp pandoc -V documentclass=bxjsarticle -V classoption=pandoc,standard,jafont=noto-otf --pdf-engine=lualatex -o docs.pdf docs.md

or

$ docker run -v $PWD:/opt/docs auchida/pandoc:noto-cjk-jp pandoc -V documentclass=bxjsarticle -V classoption=pandoc,standard,jafont=noto --pdf-engine=xelatex -o docs.pdf docs.md

If you want to use LuaLaTeX and ltjs classes, instead of bxjs classes, put -H|--include-in-header option with a following file:

\usepackage[noto-otf]{luatexja-preset}
⁠For noto-jp
$ docker run -v $PWD:/opt/docs auchida/pandoc:noto-jp pandoc -V documentclass=bxjsarticle -V classoption=pandoc,standard,jafont=noto-jp --pdf-engine=xelatex -o docs.pdf docs.md

One may use noto-jp with LuaLaTeX by -H|--include-in-header option with \set*jfont commands in the luatexja-fontspec package.

⁠License

Contents on this repository are dedicated to CC0 public domain. No rights reserved.

License for distributed Docker images follows one of Debian Project⁠, TeXLive⁠, Noto CJK fonts⁠, Pandoc⁠ and its dependencies.

Tag summary

Content type

Image

Digest

sha256:f4ef344d6…

Size

518.3 MB

Last updated

about 4 years ago

docker pull auchida/pandoc