我正在准备一个历史书的手稿,写在R-降价与Bookdown,这将有8个章节,每个都有100 +芝加哥式尾注,使用GitBook样式的Web格式。
我的目标是每章后重新启动尾注的编号,以避免陷入高的数字和类似的传统史书的外观。
我已经尝试了这里的大多数(https://bookdown.org/yihui/bookdown/html.html#gitbook-style)中描述的设置,但不能产生所期望的网络输出。这里是我的index.Rmd的相关部分:
output:
bookdown::gitbook:
dev: svglite
css: css/style.css
split_by: rmd
split_bib: true
见我简化了样机演示:https://jackdougherty.github.io/bookdown-test/book/和源代码:https://github.com/JackDougherty/bookdown-test
请注意,在bookdown v 0.9,该<a>
标签的引文内部类改为从.footnote-裁判.footnoteRef。所以你需要使用bookdown的更新版本时,扩展一些你的CSS,以说明的:
/* don't show the wrong footnote calls */
.footnote-ref sup,
.footnoteRef sup {
display: none;
}
...
.footnote-ref,
.footnoteRef {
counter-increment: fn-call;
}
.footnote-ref::after,
.footnoteRef::after {
content: counter(fn-call);
position: relative;
top: -.5em;
font-size: 85%;
line-height: 0;
vertical-align: baseline;
}
...
见https://github.com/rstudio/bookdown/issues/589#issuecomment-462149512了解更多详情。