用 texstudio, 外部 pdf 浏览器查看可以正常显示中文, 但是内置的 pdf 浏览器不能显示中文

https://www.zhihu.com/question/58579274

根本原因在于texstudio默认的调用本地poppler的目录与实际安装目录不匹配。这是因为mac系统升级后文件布局发生改变opt/homebrew/Cellar/poppler,但是texstudio仍然用老目录导致usr/local/share/poppler

对于M1 Mac可以参考如下步骤:

1. 查看当前texstudio的libpoppler版本,

cd /Applications/texstudio.app/Contents/Frameworks
ls

2. 查看texstudio的libpoppler调用的本地poppler目录,

strings -a /Applications/texstudio.app/Contents/Frameworks/libpoppler.116.dylib  | grep poppler

 3. 找到本地安装的poppler目录,一般homebrew安装的在/opt/homebrew/Cellar/poppler下,

cd /opt/homebrew/Cellar/poppler
ls

4. 将二者建立连接,本地poppler的share/poppler连接到libpoppler默认调用的目录share

sudo ln -s /opt/homebrew/Cellar/poppler/21.12.0/share/poppler /usr/local/share/poppler
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值