Git Product home page Git Product logo

texlive-ja's Introduction

paperist/texlive-ja

The minimal TeXLive Docker image for Japanese
コンパクトな日本語向け TeXLive Docker イメージ

github sponsors

size:alpine size:debian size:debian:arm64

Supported tags / タグ一覧

  • alpine
    • Only AMD64 supported.
    • AMD64 のみ対応しています
  • latest, debian
    • AMD64, ARM64 supported.
    • AMD64, ARM64 (M1 mac) に対応しています

Install / インストール

The image can be installed from Docker Hub or GitHub Container Registry.
Docker Hub もしくは GitHub Container Registry からインストールできます

Docker Hub

docker pull paperist/texlive-ja:latest

GitHub Container Registry

docker pull ghcr.io/paperist/texlive-ja:latest
docker image tag ghcr.io/paperist/texlive-ja:latest paperist/texlive-ja:latest

Usage / 使い方

$ docker run --rm -it -v $PWD:/workdir paperist/texlive-ja:latest \
    sh -c 'latexmk -C main.tex && latexmk main.tex && latexmk -c main.tex'

See Usage (Japanese) for details.
詳しくは、使い方 を参照してください

Contributing / コントリビュートについて

Bug fixes are welcome.
バグ修正は歓迎します

Basically, we do not accept feature additions or non-bug fixes.
現在、機能追加やバグ以外の修正は、基本的に受け付けていません

If you want additional features, you can create an extended image based on this image.
機能を追加したい場合は、このイメージを基に拡張したイメージを作ることができます

See Usage "Extending image" (Japanese) for details.
詳しくは、使い方「イメージを拡張する」 を参照してください

License / ライセンス

MIT (c) 3846masa


Forked from umireon/docker-texci (under the MIT License).

texlive-ja's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

texlive-ja's Issues

XeLaTeX not working

Hi!

It seems xelatex is missing some librairies in this image:

bash-4.4# xelatex -help
Error loading shared library libfontconfig.so.1: No such file or directory (needed by /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex)
Error loading shared library libfreetype.so.6: No such file or directory (needed by /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex)
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcPatternDestroy: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcObjectSetDestroy: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcConfigGetCurrent: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcGetVersion: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcPatternGetString: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcPatternGetInteger: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcFontList: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcObjectSetBuild: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcInit: symbol not found
Error relocating /usr/local/texlive/2018/bin/x86_64-linuxmusl/xelatex: FcNameParse: symbol not found

How to compile .tex with unicode chars when attach ./docs/ to .workdir/?

I'm satisfied with my ./manuscript.tex is compiled correctly with command
docker-compose run --rm latexmk manuscript.tex

But I want to move *.tex and *.pdf into ./docs/ next.

I tried the procedures below but compilation failed finally.

My trial

Move manuscript

mkdir docs
mv .manuscript.tex ./docs

Edit docker-compose.yml

  volumes:
-    - './:/workdir'
+   - './docs/:/workdir

Rebuild docker-compose

docker-compose up -d

Compile .tex

docker-compose run --rm latexmk manuscript.tex

How to watch .tex files?

Thanks to the answer to #2, I managed to set workflow using latexmk up.

I tried to watch *.tex file update using -pvc option,
but it failed because acroread is not installed to the Docker image.

Would you tell me how can I install acroread to the image?

Thanks,

Support ARM

  • 64bit ARM64 (I have M1 Mac)
  • 32bit ARMvX (I have Raspberry PI 4)

Failed generate pdf with eps file as image file.

HI, this is noe. I use it with write paper with latex.
I saw this error when I use .eps file in latex.

latex-test-latex-1  | Running 'dvipdfmx  -o "template.pdf" "template.dvi"'
latex-test-latex-1  | ------------
latex-test-latex-1  | template.dvi -> template.pdf
latex-test-latex-1  | [1][2][3][4][5][6
latex-test-latex-1  | dvipdfmx:warning: Could not open conversion result "/tmp/dvipdfm-x.5884038f1a3641531dc1e7b804bdf7dd" for image "./sampleimage.eps". Why?
latex-test-latex-1  | dvipdfmx:fatal: Image inclusion failed for "sampleimage.eps" (page=1).

This seems to be an error caused by ghostscript not being installed on debian or alpine. (If I installed ghostscript in docker container, this problem was solved).

When writing a paper, eps files are minor, but sometimes used.
In this case, can I ask you to add the installation of ghostscript? Or should we customize our own Dockerfile and install it additionally?

Have a nice day!

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
alpine/Dockerfile
  • alpine 3.20.1@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0
  • alpine 3.20.1@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0
debian/Dockerfile
  • debian 12.5-slim@sha256:67f3931ad8cb1967beec602d8c0506af1e37e8d73c2a0b38b181ec5d8560d395
  • debian 12.5-slim@sha256:67f3931ad8cb1967beec602d8c0506af1e37e8d73c2a0b38b181ec5d8560d395
github-actions
.github/actions/build/action.yml
  • docker/setup-qemu-action v3.0.0@68827325e0b33c7199eb31dd4e31fbe9023e06e3
  • docker/setup-buildx-action v3.3.0@d70bba72b1f3fd22344832f00baa16ece964efeb
  • docker/build-push-action v6.1.0@31159d49c0d4756269a0940a750801a1ea5d7003
.github/workflows/build-latest.yml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446
.github/workflows/build-pr.yml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • actions/upload-artifact v4.3.3@65462800fd760344b1a7b4382951275a0abb4808
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • actions/upload-artifact v4.3.3@65462800fd760344b1a7b4382951275a0abb4808
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
.github/workflows/build-tag.yml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • docker/login-action v3.2.0@0d4c9c5ea7693da7b068278f7b52bda2a190a446

  • Check this box to trigger a request for Renovate to run again on this repository

Do fontconfig-dev and freetype-dev needed?

The size difference between debian and alpine is mainly due to fontconfig-dev and freetype-dev.
I assume this difference can be shrunk. TeX Live does usually not require any dev packages and dev packages are large in debian.

(Investigated with https://github.com/wagoodman/dive)

Debian

スクリーンショット 2021-10-06 23 56 46

Alpine

スクリーンショット 2021-10-06 23 58 09

Debian without dev packages

スクリーンショット 2021-10-07 0 14 22

Alpine without dev packages

スクリーンショット 2021-10-07 0 19 03

Sizes

REPOSITORY                                      TAG             IMAGE ID       CREATED         SIZE
texlive-ja-debian                               latest          5de04b0ec948   9 hours ago     1.2GB
texlive-ja-alpine                               latest          f64403c05737   9 hours ago     1.05GB
texlive-ja-debian-2                             latest          7ce6aff728eb   7 minutes ago   1.12GB
texlive-ja-alpine-2                             latest          5c2e89f28d1c   2 minutes ago   1.04GB

tlmgr fails

Hi, your image was working perfect until recently, but now tlmgr fails with the following error:

tlmgr install fontawesome multibib

tlmgr: Remote repository is newer than local (2018 < 2019)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
Exited with code 1

I guess it's because TeX Live 2019 has been released?

How to open PDF when succeed to build

Thank you for developing a great container. It worked and a pdf file was created.
But would you tell me how can I open the pdf file from docker image (I'm a novice of Docker, so excuse me for asking a stupid question)?

I compiled example.tex from a shell script like

platex example
pbibtex example
platex example
platex example
dvipdfmx example
open example.pdf.

The last command containing open command fails because the command did not work in the docker image.

What command should I use to open a file in the image?
I found a word linux in the Dockerfile, so I tested

  • xgd-open
  • evince-open
  • gnome-open
  • etc...
    but none of them worked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.