-
Notifications
You must be signed in to change notification settings - Fork 53
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
第3章第9节第2小节 梯度下降算法的过程演示图存在错误 #3
Comments
原稿中我基本全是用 如果不是为了图形中的字体漂亮的话,也可以放弃 tikz 图形设备,改用基础图形系统中丑陋的 plotmath 办法,也就是用 |
@yihui 明白了,我准备引入 magick 包将自动生成的 PDF 图片转 PNG 图片 # convert pdf to png
to_png <- function(fig_path) {
png_path <- sub("\\.pdf$", ".png", fig_path)
magick::image_write(magick::image_read_pdf(fig_path), format = "png", path = png_path)
return(png_path)
} 生成这类图形的代码块选项添加 |
目前的 pdf 书稿里,有一部分图不是 tikz。我想尽可能全部用 tikz,但是中文支持有问题:为了使用 tikz,我设置 |
@XiangyunHuang 好的,我试试看成不成。涉及中文的图倒是不太多,不成就忽略了。 |
图的 title 公式显示不对 @yihui
The text was updated successfully, but these errors were encountered: