We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
The text was updated successfully, but these errors were encountered:
I want to know too
Sorry, something went wrong.
我刚刚接触这个有趣的工具,生成 PNG 图片需要在生成 PDF 文件之后,将 PDF 转换成 PNG。下面是在 macOS 上面的办法。
安装 ImageMagick 工具包
ImageMagick
brew install imagemagick
修改 tikzmake.sh 脚本
tikzmake.sh
#!/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 的命令。-density 300 这个选项,将获得一个解析度更好的 PNG 图片。
-density 300
No branches or pull requests
How to generate PNG images?
The text was updated successfully, but these errors were encountered: