新的Pandoc distrib =松散的交叉引用(RMarkdown-knitr-Bookdown-thesisdown-R) [英] New Pandoc distrib = loose cross-references (RMarkdown - knitr - Bookdown - thesisdown - R)

查看:134
本文介绍了新的Pandoc distrib =松散的交叉引用(RMarkdown-knitr-Bookdown-thesisdown-R)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用knitr和bookdown(+ yaml)将一堆.Rmd文件导出到单个.doc文件时,我失去了一些交叉引用.方法是thesisdown :: thesis_word:.

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:.

  • 在我安装了新版本的Pandoc之后,立即出现了引用丢失的问题.也许我错过了Pandoc安装后的步骤?

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

丢失的引用当前是\@ref(title)引用,它们以前返回由# My title {#title}表示的标题编号,现在返回(??).在安装pandoc之后,仅缺少这些锚点.也许我必须使用另一种样式的锚来引用文档的某个部分?

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似乎还可以:对.bib字典,表格和图形锚点的所有引用都可以(Microsoft Windows中的& env.path变量可以并指向新的pandoc.exe).

非常感谢您的建议,美好的一天.

Thanks a lot for any advice, excellent day.

PS:我正在使用thesisdown(一些bookdown东西),但我不-仍然-请尝试使用knitr进行正常的bookdown导出...我不尝试-现在-另一种类型的导出文档(例如html或pdf).

推荐答案

似乎安装或重新安装 tinytext 是解决此问题的关键.如果没有,请进一步进行软件包更新(例如bookdown,thesisdown).有时,您需要重新安装Rstudio(解决此类问题或某些程序包更新问题).

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).

这篇关于新的Pandoc distrib =松散的交叉引用(RMarkdown-knitr-Bookdown-thesisdown-R)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆