gpt4 book ai didi

Coloring hyperlinks in table of contents(为目录中的超链接上色)

转载 作者:bug小助手 更新时间:2023-10-28 11:41:28 25 4
gpt4 key购买 nike



Consider the following quarto code:

请考虑以下四分音码:


---
title: "Untitled"
format: pdf
toc: true
---

# section 1

# section 2

The hyperlinks of the table of contents are all in black. Is there some way of making them, e.g., blue, to make more clear that the text is clickable?

目录的超链接都是黑色的。有没有办法让它们变成蓝色,以更清楚地表明文本是可点击的?


更多回答

Thanks, @KJ, for your comment. I believe that many people do not notice that the entries of the table of contents are clickable. In the case of web-pages, typically, the hyperlinks are easily identifiable, which does not happen with the table of contents of PDF documents generated by quarto.

感谢您的评论,@KJ。我相信很多人没有注意到目录中的条目是可以点击的。在网页的情况下,通常超链接很容易识别,这不会发生在Quarto生成的PDF文档的目录中。

Are you asking about toccolor pandoc variable in yaml?

您是在询问YAML中的TOCCOLOR PandocVariable吗?

Thanks, @shafee. That is really toccolor!

“谢谢,”沙菲说。那真是太棒了!

Hi, @shafee, I would prefer that you answer, as the credits of the idea should go to you. As soon as you post your answer, I will accept it. Thanks!

嗨,@沙菲,我更希望你回答,因为这个想法的功劳应该属于你。一旦你贴出你的答案,我就会接受。谢谢!

优秀答案推荐

Use the toccolor option in yaml to color the hyperlinks in table of contents,

使用YAML中的TocCOLOR选项为目录中的超链接上色,


---
title: "Untitled"
format: pdf
toc: true
toccolor: blue
---

# section 1

# section 2



colored toc




Check out the colors section from Quarto documentations for more related options such as, linkcolor, citecolor, urlcolor etc.

请查看Quarto文档中的颜色部分,以了解更多相关选项,如LinkColor、Citecolor、urlcolor等。


更多回答

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com