我正在准备一份历史书手稿,用R-Markdown和Bookdown编写,其中将有8个章节,每个章节都带有100+芝加哥风格的尾注,使用GitBook风格的网络格式。
我的目标是在每一章之后重新开始尾注编号,以避免遇到高数字,并类似于传统历史书籍的出现。
我已经试验了这里描述的大多数设置(https://bookdown.org/yihui/bookdown/html.html#gitbook-style),但无法产生所需的web输出。以下是我的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
发布于 2019-02-10 16:43:01
注意,在bookdown v0.9中,引文中的<a>标记的类从.脚注-ref改为.footnoteRef。因此,您需要扩展一些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。
https://stackoverflow.com/questions/50616517
复制相似问题