data-analysis-in-action
data-analysis-in-action copied to clipboard
一些 Quarto 的问题
Quarto 多文档格式输出
- [x] EPUB 格式输出,一些数学公式无法渲染 https://github.com/quarto-dev/quarto-cli/issues/3432
- [ ] EPUB 格式输出,对于自定义的数学公式宏命令( Math Macros )无法渲染。目前,书中使用了
\def\bm#1{{\boldsymbol #1}}Warning: Could not convert TeX math \def\bm#1{{\boldsymbol #1}} , rendering as TeX: ^ unexpected control sequence \def expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace - [ ] 在 Word 格式输出中, data-visualization.qmd 的内容直接删除了。 data-visualization.qmd 是 PART 级,添加了一些该部分的介绍。看来是不支持 PART 后直接给内容,必须加 chapter,或移动到介绍章节 https://github.com/quarto-dev/quarto-cli/issues/3434
- [ ] 在 Word 输出中,子图 overflow 详见 https://github.com/quarto-dev/quarto-cli/issues/3435
- [x] 在 Word 输出中,gt 包制作的表格缺失引用 https://github.com/quarto-dev/quarto-cli/issues/3600 不仅仅是 gt 包,大部分都不支持在 Word 中交叉引用,https://github.com/quarto-dev/quarto-cli/issues/1556 但预计会在 Quarto 1.4 中支持。
- [ ] 在 Word 输出中,子图排列错位,详见下方,恐怕也与 https://github.com/quarto-dev/quarto-cli/issues/3435 相关
- [x] 各类表格制作包在 Quarto 中缺失引用 预计要在 1.4 版本中修复,2023 年下半年。
Quarto 没有利用 knitr 的截图设置,始终用 webshot + phantomjs 来截图,
knitr::opts_chunk$set(webshot = "webshot2")
Quarto 截图对 plotly 包绘制的交互图没有用,但是对 DT 包制作的交互表有用。
Quarto 1.4.376
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.8: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.376
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/xiangyun/Library/TinyTeX/bin/universal-darwin
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.5
Path: /usr/local/opt/[email protected]/bin/python3.11
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
[✓] Checking R installation...........OK
Version: 4.3.1
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library
knitr: 1.44
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
已经确认 phantomjs 和 webshot 谷歌浏览器都已安装