Markdown文档内参考文献跳转

实现Markdown文档中,在正文里面点击引用的文献,跳转相应的参考文献位置。

正文

此处引用参考文献 [1]。此处引用参考文献 [2]

此处引用参考文献 [3]。此处引用参考文献 [4]

参考文献

  • [1] J. J. Kuffner and S. M. LaValle. “RRT-Connect: An efficient approach to single-query path planning”. In: IEEE International Conference on Robotics and Automation. Vol. 2. IEEE. 2000, pp. 995–1001.
  • [2] L. E. Kavraki, P. Svestka, J.-C. Latombe, and M. H. Overmars. “Probabilistic roadmaps for path planning in high-dimensional configuration spaces”. In: IEEE Transations on Robotics and Automation 12.4 (1996), pp. 566–580.
  • [3] C. Chamzas, C. Quintero-Pena, Z. Kingston, A. Orthey, D. Rakita, M. Gleicher, M. Toussaint, and L. E. Kavraki. “MotionBenchMaker: A tool to generate and benchmark motion planning datasets”. In: IEEE Robotics and Automation Letters 7.2 (2021), pp. 882–889.
  • [4] J. Ichnowski and R. Alterovitz. “Concurrent nearest-neighbor searching for parallel sampling-based motion planning in SO(3), SE(3), and Euclidean spaces.” Algorithmic Foundations of Robotics. Springer. 2020, pp. 69-85

详细解释

在 Markdown 文档中,可以使用如下的语法来实现参考文献的跳转:

这是正文内容,此处引用参考文献 [[1]](#1)。此处引用参考文献 [[2]](#2)。

此处引用参考文献 <a href="#3">[3]</a>。此处引用参考文献 <a href="#4">[4]</a>。

## 参考文献

<a id="1">[1]</a> J. J. Kuffner and S. M. LaValle. "RRT-Connect: An efficient approach to single-query path planning". In: IEEE International Conference on Robotics and Automation. Vol. 2. IEEE. 2000, pp. 995–1001.
<a id="2">[2]</a> L. E. Kavraki, P. Svestka, J.-C. Latombe, and M. H. Overmars. "Probabilistic roadmaps for path planning in high-dimensional configuration spaces". In: IEEE Transations on Robotics and Automation 12.4 (1996), pp. 566–580.

<a id="3">[3]</a> C. Chamzas, C. Quintero-Pena, Z. Kingston, A. Orthey, D. Rakita, M. Gleicher, M. Toussaint, and L. E. Kavraki. "MotionBenchMaker: A tool to generate and benchmark motion planning datasets". In: IEEE Robotics and Automation Letters 7.2 (2021), pp. 882–889.
<a id="4">[4]</a> J. Ichnowski and R. Alterovitz. "Concurrent nearest-neighbor searching for parallel sampling-based motion planning in SO(3), SE(3), and Euclidean spaces." Algorithmic Foundations of Robotics. Springer. 2020, pp. 69-85
  1. 正文引用:使用 [[1]](#1) 来创建一个超链接,链接目标是 #1

    这是正文内容,需要引用参考文献 [[1]](#1)。
    

    参考文献 3 和 参考文献 4 使用了另一种方法,<a href="#3">[3]</a>,来创建一个超链接,链接目标是 #3#4

    此处引用参考文献 <a href="#3">[3]</a>。此处引用参考文献 <a href="#4">[4]</a>。
    
  2. 文献列表:在参考文献部分使用 <a id="1"></a> 创建一个锚点,这个锚点的 ID 是 1,与正文中的链接目标相对应。

    ## 参考文献
    
    <a id="1"></a>J. J. Kuffner and S. M. LaValle. "RRT-Connect: An efficient approach to single-query path planning". In: IEEE International Conference on Robotics and Automation. Vol. 2. IEEE. 2000, pp. 995–1001.
    

这样,当你点击正文中的 [1] 时,会自动跳转到参考文献部分对应的文献条目。这个方法可以使你的 Markdown 文档具有更好的可读性和导航性。

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CSDN的Markdown可以使用类似于LaTeX的方式添加参考文献,具体步骤如下: 1. 在CSDN编辑器中输入参考文献的BibTeX格式,例如: ``` @article{gpt, title={Language models are unsupervised multitask learners}, author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya}, journal={OpenAI Blog}, year={2019}, volume={1}, pages={9} } ``` 2. 在需要引用参考文献的地方,使用类似于LaTeX的方式插入引用,例如: ``` 这是一篇关于自然语言处理的文章[@gpt]。 ``` 注意,引用要使用英文方括号,且在方括号内填写引用的BibTeX标识符。 3. 在文章末尾使用如下格式插入参考文献: ``` <!--more--> ## 参考文献 <div class="citeproc-container"> </div> <script src="https://cdn.jsdelivr.net/npm/@citation-js/citation-js@0.5.9/dist/citation.min.js"></script> <script> const csl = "@article{gpt,\n title={Language models are unsupervised multitask learners},\n author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya},\n journal={OpenAI Blog},\n year={2019},\n volume={1},\n pages={9}\n}"; const items = citation.parse(csl); const sys = new citation.Citation(sys => { sys.add(items); sys.format("bibliography", { entrySpacing: "0", hangingIndent: "0", lineSpacing: "2", listStyle: "none", entryType: "article-journal", lang: "zh-CN", append: "" }, "bibliography"); }); document.querySelector(".citeproc-container").appendChild(sys.bibliography); </script> ``` 注意,`csl`变量中的内容需要替换成你自己的参考文献BibTeX格式,且可以在`format`函数中设置参考文献的样式。如果需要添加多篇参考文献,可以在`csl`变量中添加多个BibTeX格式的条目,在`sys.add`函数中添加多个条目即可。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值