简体   繁体   English

Rmarkdown(html):本地搜索目录(toc)

[英]Rmarkdown (html): local search for table of contents (toc)

I was wondering if Rmarkdown for html outputs has a function that can do a local search for the TOC only. 我想知道html输出的Rmarkdown是否具有只能对TOC进行本地搜索的功能。 I don't want to use the Ctrl+F function as I have got repeated words used as the section names and it would be much slower than just searching over the TOC. 我不想使用Ctrl + F功能,因为我已经将重复的单词用作部分名称,这比仅在TOC上搜索要慢得多。

The TOC is built using Tocify.js . TOC是使用Tocify.js构建的 It does not have any such feature, so don't expect anything in RMarkdown unless you cook one up using JQuery/Javascript. 它没有任何此类功能,因此除非您使用JQuery / Javascript编写了一个,否则不要期望RMarkdown中有任何功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM