liao961120 / ntuthesis

台大碩博士論文模板 (R Package)
https://liao961120.github.io/ntuthesis
GNU General Public License v3.0
15 stars 10 forks source link

! LaTeX Error: Environment Shaded undefined. #21

Open ChenChingChih opened 3 years ago

ChenChingChih commented 3 years ago

跑markdown時可以,但換成bookdown就出現上述錯誤,請問該如何處理呢? gitbook也正常,就只有pdf生不出來... 詳細情形請見我的github專案

! LaTeX Error: Environment Shaded undefined.

���~: LaTeX failed to compile ntu-bookdown.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ntu-bookdown.log for more info. ���~: Warning message: In citation_package_arg(citation_package) : citation_package = 'none' was deprecated; please use 'default' instead. �������

Exited with status 1.

liao961120 commented 3 years ago

這應該是因為內容裡面沒有 code chunk 的關係, 或許可以試試看在內容裡面增加一個空白的 code chunk 看看

https://stackoverflow.com/questions/41052687/rstudio-pdf-knit-fails-with-environment-shaded-undefined-error

ChenChingChih commented 3 years ago

我有在這裡放CODE CHUNCK但還是不行

ChenChingChih commented 3 years ago

另外想請問論文引注格式要如何調整成apa6呢? 因為當我引注時就不會被印在pdf上 Warning messages: 1: In citation_package_arg(citation_package) : citation_package = 'none' was deprecated; please use 'default' instead. 2: LaTeX Warning: Command \@footnotemark has changed. Check if current package is valid. Package transparent Warning: Loading aborted, because pdfTeX is not running in PDF mode.

ChenChingChih commented 3 years ago

@liao961120 作者你好, 我想問題可能是出在引注格式上面? 在gitbook部分可以正常的引注,但在pdf則無法生成,不清楚為何會這樣...

ChenChingChih commented 3 years ago

22 原來是少了這個套件,讓整個程式動不了...

感謝作者的幫忙!debug出來的感覺太棒了~