{"id":23034518,"url":"https://github.com/r4ai/latex-docker","last_synced_at":"2026-01-11T05:48:37.940Z","repository":{"id":54354736,"uuid":"520186347","full_name":"r4ai/LaTeX-Docker","owner":"r4ai","description":"my pandoc LaTeX environment.","archived":false,"fork":false,"pushed_at":"2023-08-05T01:43:29.000Z","size":346,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T12:46:12.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/r4ai/pandoc","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r4ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-01T16:36:09.000Z","updated_at":"2022-08-16T08:19:29.000Z","dependencies_parsed_at":"2024-12-15T16:43:38.437Z","dependency_job_id":null,"html_url":"https://github.com/r4ai/LaTeX-Docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4ai%2FLaTeX-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4ai%2FLaTeX-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4ai%2FLaTeX-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4ai%2FLaTeX-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r4ai","download_url":"https://codeload.github.com/r4ai/LaTeX-Docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246900424,"owners_count":20852051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T16:32:36.129Z","updated_at":"2026-01-11T05:48:37.914Z","avatar_url":"https://github.com/r4ai.png","language":"TeX","readme":"# LaTeX-Docker　[![Build and push docker image](https://github.com/e9716/LaTeX-Docker/actions/workflows/docker-image.yml/badge.svg?branch=main)](https://github.com/e9716/LaTeX-Docker/actions/workflows/docker-image.yml)\n\nmy pandoc $\\mathrm{\\LaTeX}$ environment.\nThis repository contains the following two Dockerfiles\n\n1. [r4ai/latex](https://hub.docker.com/r/r4ai/latex)\n   - based on [paperist/texlive-ja](https://github.com/Paperist/texlive-ja)\n   - includes **luatex, xelatex ...**\n   - amd64 \u0026 arm64 support. (M1 support)\n1. [r4ai/pandoc](https://hub.docker.com/r/r4ai/pandoc)\n   - based on r4ai/latex.\n   - includes **pandoc, pandoc-crossref, easy-pandoc-templates** ...\n   - **not arm64** support. only support amd64.\n     (because pandoc-crossref couldn't be built with arm64 debian)\n\n## how to build\n\n### r4ai/latex (texlive)\n\n```bash\ndocker build -f docker/latex/Dockerfile -t r4ai/latex:latest .\n```\n\n### r4ai/pandoc (pandoc)\n\n```bash\ndocker build -f docker/pandoc/Dockerfile -t r4ai/pandoc:latest .\n```\n\n## how to use\n\n### r4ai/latex\n\nCompile .tex and generate pdf.\nFor example, the following command generates a `main.pdf` from `main.tex`.\n\n```bash\ndocker run --rm -it \\\n    --volume $PWD:/workdir r4ai/latex:latest \\\n    sh -c 'ptex2pdf -l -ot -kanji=utf8 -synctex=1 -interaction=nonstopmode -halt-on-error -file-line-error main.tex'\n```\n\n### r4ai/pandoc\n\nGenerate PDF from markdown by LaTeX.\nFor example, the following command generates a `output.pdf` from `input.md`.\n\n```bash\ndocker run --rm \\\n    --volume \"$(pwd):/build\" \\\n    --user $(id -u):$(id -g) \\\n    r4ai/pandoc:latest input.md -o output.pdf \\\n        --pdf-engine=xelatex \\\n        -V documentclass=bxjsarticle \\\n        -V classoption=pandoc \\\n        -M listings --listings \\\n        -H /settings/header.tex \\\n        -H /settings/deeplists.tex \\\n        --metadata-file /settings/metadata.yml \\\n        -F pandoc-crossref\n```\n\nGenerate PDF from markdown by html5.\nFor example, the following command generates a `output.pdf` from `input.md`.\n\n```bash\ndocker run --rm \\\n    --volume \"$(pwd):/build\" \\\n    r4ai/pandoc:latest input.md -o output.pdf \\\n        -t html5 \\\n        --template=easy_template.html \\\n        --metadata-file /settings/metadata.yml \\\n        -F pandoc-crossref\n```\n\n## how to debug\n\n### r4ai/pandoc\n\nopen bash.\n\n```bash\ndocker run --rm -it \\\n      --volume \"$(pwd):/build\" \\\n      --entrypoint /bin/bash \\\n      r4ai/pandoc:latest\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr4ai%2Flatex-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr4ai%2Flatex-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr4ai%2Flatex-docker/lists"}