-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to generate PNG images? #138
Comments
I want to know too |
我刚刚接触这个有趣的工具,生成 PNG 图片需要在生成 PDF 文件之后,将 PDF 转换成 PNG。下面是在 macOS 上面的办法。 安装 brew install imagemagick 修改 #!/bin/bash
python $1.py
pdflatex $1.tex
rm *.aux *.log *.vscodeLog
rm *.tex
convert -density 300 $1.pdf $1.png
rm *.pdf
if [[ "$OSTYPE" == "darwin"* ]]; then
open $1.png
else
xdg-open $1.png
fi
完成。 解释: convert -density 300 $1.pdf $1.png 这是将 PDF 转换成 PNG 的命令。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to generate PNG images?
The text was updated successfully, but these errors were encountered: