New Pandoc distrib = loose cross-references (RMarkdown - knitr - Bookdown - thesisdown - R)

放肆的年华 提交于 2020-12-12 21:35:58

问题


I've loose some cross-references when exporting a bunch of .Rmd files to a single .doc file, using knitr and bookdown (+ yaml). The method is thesisdown::thesis_word:.

  • The problem of loosing-references occurred immediately after I've installed a new version of Pandoc. Maybe I miss a step after Pandoc installation ?

  • The lost references are currently the \@ref(title) ones, which previously return the number of the title indicated by : # My title {#title} and now return (??). Only these anchors are missing, after the install of pandoc. Maybe I have to use another style of anchors for references to a section of the document ?

    • Pandoc seems ok : all references to .bib dictionary, tables and figures anchors are ok (& env. path variables in Microsoft Windows are ok and pointing to the new pandoc.exe).

Thanks a lot for any advice, excellent day.

PS : I'm using thesisdown (sort of bookdown stuff) and I don't - yet - try a normal bookdown export using knitr... I don't try - yet - another type of exported document (like html or pdf).


回答1:


It seems that install or reinstall tinytext is the key for solving this problem. If not, just go further with packages update (e.g., bookdown, thesisdown). Sometimes, you need to reinstall Rstudio (solve this kind of problem, or some package update issues).



来源:https://stackoverflow.com/questions/61438696/new-pandoc-distrib-loose-cross-references-rmarkdown-knitr-bookdown-thes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!