Sign inSign up

wenfengand/texlive

By wenfengand

Updated almost 7 years ago

Image
0

65

wenfengand/texlive repository overview

texlive 2017 msfonts

It's a docker image built for Chinese ms fonts.

And we replace apt source with Tinghua's.

usage

  1. prepare a script named run.sh.
#!/bin/bash
docker run --rm \
--name some-texlive \
-v $(pwd):/workspace \
-it wenfengand/texlive:2017msfonts
  1. start a container
chmod +x run.sh
./run.sh
  1. run some tex commands
xelatex some.tex

Dockerfile

FROM texlive/texlive-full:2017 

# MAINTAINER
MAINTAINER [email protected]

COPY sources.list /etc/apt/sources.list
COPY fonts/ /usr/share/fonts/msfonts/

RUN apt update && \
    apt install -y fontconfig xfonts-utils && \
    cd /usr/share/fonts/msfonts/ && \
    mkfontscale && \
    mkfontdir   && \
    fc-cache -fv && \
    apt install make 
# change dir to /
WORKDIR /workspace
CMD ["bash"]

sources.list

deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free

Contents in local folder fonts should be downloaded from ... (TODO).

Tag summary

Content type

Image

Digest

Size

1.3 GB

Last updated

almost 7 years ago

docker pull wenfengand/texlive:2017msfonts