yihui
下面是xfun给出的信息
R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362), RStudio 1.3.959
Locale:
LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
LC_MONETARY=English_United States.1252 LC_NUMERIC=C
LC_TIME=English_United States.1252
system code page: 936
Package version:
base64enc_0.1.3 digest_0.6.25 evaluate_0.14 glue_1.4.1 graphics_4.0.0
grDevices_4.0.0 highr_0.8 htmltools_0.5.0 jsonlite_1.6.1 knitr_1.28.9
magrittr_1.5 markdown_1.1 methods_4.0.0 mime_0.9 rlang_0.4.6
rmarkdown_2.3 stats_4.0.0 stringi_1.4.6 stringr_1.4.0 tinytex_0.23
tools_4.0.0 utils_4.0.0 xfun_0.14 yaml_2.2.1
Pandoc version: 2.9.1.1
另外我下载了bookdown demo也没有编译出pdf。似乎是expl3包的问题。
! Undefined control sequence.
l.67 \bool
_new:N \g__expl_reload_bool
前面提到的\protect\hypertarget 只在定理环境有添加。例如
\begin{theorem}
\protect\hypertarget{thm:unnamed-chunk-3}{}{\label{thm:unnamed-chunk-3} }Let <code class="katex-escape">\(a\)</code>, <code class="katex-escape">\(b\)</code> and <code class="katex-escape">\(c\)</code> be three sides of a right triangle. If <code class="katex-escape">\(c>a\)</code> and <code class="katex-escape">\(c>b\)</code>, then <code class="katex-escape">\(c^2=a^2+b^2\)</code>.
\end{theorem}
或许是label后面的空格造成的问题。