【发布时间】:2017-01-19 15:09:23
【问题描述】:
我正在使用 bookdown 同时生成 html 和 pdf。我想在 html 版本中使用动态表(DT),但在 pdf 文件中使用普通表。有没有办法在降价中做到这一点,而不必将文件作为输入分开并使用 yml 文件。 类似的东西
if (output = html) {
DT...
}
if (output = "pdf"){
xlatex ...
}
谢谢 伦格
【问题讨论】:
-
看起来您可以使用stackoverflow.com/questions/35144130/… 中描述的相同方法。我已将此标记为重复,然后将其收回,因为我不确定
bookdown机制是否相同。但现在我已经调查过了,我相信它是。