I use rmarkdown to render pdf documents. Now I want to add internal links in the texts.
In the helping pages of rmarkdown, it says an internal link is defined as:>
There are some tricky rules for internal links in Rmarkdown PDF output, not well documented on cheat sheets, etc.
Rules:
Only one # for anchor, even if you are using a header with multiple #.
Example: ###header becomes #header when linking.
No spaces between # and anchor text.
Example: #header, not # header.
Multi-word anchors should be separated by dashes.
Example: #this is a header needs to become #this-is-a-header in the link.
Anchor links need to be lowercase, even if the header you are linking to has capitalization.
Example: #Section becomes #section in the link.