jac*_*rty 8 r-markdown bookdown
我正在准备一本历史书籍手稿,用Bookdown撰写的R-Markdown,将有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
Run Code Online (Sandbox Code Playgroud)
请参阅我的简化模型演示:https: //jackdougherty.github.io/bookdown-test/book/ 和源代码:https: //github.com/JackDougherty/bookdown-test
小智 1
请注意,在 bookdown v 0.9 中,<a>引文中标签的类从.footnote-ref更改为.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;
}
...
Run Code Online (Sandbox Code Playgroud)
有关更多详细信息,请参阅https://github.com/rstudio/bookdown/issues/589#issuecomment-462149512 。
| 归档时间: |
|
| 查看次数: |
172 次 |
| 最近记录: |