Giter VIP home page Giter VIP logo

Comments (7)

XiangyunHuang avatar XiangyunHuang commented on August 30, 2024 1

@pzhaonet adobe 字体是闭源的,没有放在 CTAN 上, tinytex 也无能为力的,因为没有,所以下不动

from msg.

XiangyunHuang avatar XiangyunHuang commented on August 30, 2024 1

@pzhaonet 我这里有一篇整理的关于 docker 的最常用和最简单的一些操作,见 https://www.xiangyunhuang.com.cn/post/2017/05/19/rocker-docker/

复杂、全面的操作可以参考书籍 Docker -从入门到实践,我就是从这本书入门的

from msg.

XiangyunHuang avatar XiangyunHuang commented on August 30, 2024

@pzhaonet 我当时看到书里面使用的字体是 Adobe 系列中文字体,所以我也就用了,如果你系统没有安装,可把下面这一行

https://github.com/XiangyunHuang/MSG-Book/blob/ea3ee1652819dbb165e8b32ae8d1a78ad4459d82/preamble.tex#L1

改为

\usepackage[heading, fontset=fandol]{ctex}

考虑到最方便的可重复,我将书籍所有依赖(R 包、系统依赖、字体、LaTeX 宏包等)打包成 Docker 镜像了,构建镜像的 Dockerfile 在项目的 docker 目录下。而 配置 Adobe 字体的命令在下面几行中

https://github.com/XiangyunHuang/MSG-Book/blob/ea3ee1652819dbb165e8b32ae8d1a78ad4459d82/docker/Dockerfile#L71-L78

from msg.

pzhaonet avatar pzhaonet commented on August 30, 2024

docker 我是完全不会用……

其实我的原意是想说:为啥 tinytex 无法自动安装缺失的 adobe 字体呢?呈 @yihui 阅。况且,我搜了一下,本地电脑是有这个字体文件的, 位于 C:\Program Files (x86)\Adobe\Acrobat Reader DC\Resource\CIDFont\AdobeSongStd-Light.otf

改成 fandol 之后,tinytex 自动安装成功,pdf 也编译成功了:

tlmgr search --file --global "/FandolSong-Regular[.](tfm|afm|mf|otf)"
Trying to automatically install missing LaTeX packages...
tlmgr install fandol
tlmgr.pl: package repository http://ftp.fau.de/ctan/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: fandol [21077k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/peng.zhao/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr search --file --global "/couriers.sty"
Trying to automatically install missing LaTeX packages...
tlmgr install courier-scaled
tlmgr.pl: package repository http://ftp.fau.de/ctan/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: courier-scaled [3k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/peng.zhao/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log

from msg.

yihui avatar yihui commented on August 30, 2024

正是如此。其实可以考虑开源的思源宋体。当然 Fandol 也行。

from msg.

pzhaonet avatar pzhaonet commented on August 30, 2024

@XiangyunHuang 谢谢推荐。

可是光安装就愁死了。先是 chrome 浏览器从这本书推荐的链接下载后认为有害直接删除,然后注册下载安装时说我的 windows 版本不支持……

还是默默等待缘分到来的那一天吧。

from msg.

boltomli avatar boltomli commented on August 30, 2024

docker 我是完全不会用……
其实我的原意是想说:为啥 tinytex 无法自动安装缺失的 adobe 字体呢?呈 @yihui 阅。况且,我搜了一下,本地电脑是有这个字体文件的, 位于 C:\Program Files (x86)\Adobe\Acrobat Reader DC\Resource\CIDFont\AdobeSongStd-Light.otf。

本地有字体的话试试安装 adobemapping CTAN 包,这个 tinytex 不会自动发现安装,但有时又必需。

from msg.

Related Issues (20)

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.