Closed shirdekel closed 2 years ago
Agreed - I was thinking a bit about this when I was looking into the different ways to allow for customisation of link colouring etc.
Could you submit a PR and also add a suggested section that documents this to the new 'How to Use' chapter?
Just submitted the PR. Can you clarify what you expect for the 'How to Use' chapter, though? Currently it seems quite high level and it feels like adding something about TOC link highlighting would be out of place. Or do you eventually want to it be quite detailed?
Good question, I was wondering a bit about what would be best.
There's a couple of options:
I favour the second option - would you agree?
@ulyngs since this has been merged the issue can be closed.
Good question, I was wondering a bit about what would be best.
There's a couple of options:
the 'How to Use' chapter remains high-level, and more detailed things such as TOC link highlighting go in the 'Customisations and Extensions chapter'
the 'How to Use' chapter adds a section named something like 'setting layout options in index.Rmd' - this section has brief explanations for each of the setting that are available directly from index.Rmd's YAML header, without any further tweaking
I favour the second option - would you agree?
Sorry for the delayed response. Yes, I thought that something like option 2 is better!
Next to the
linkcolor-rgb
value inindex.Rmd
there is a comment that says that "In the coloring normal links looks a bit excessive, as it highlights also all links in the table of contents"Adding
linktocpage
tohypersetup
makes the links appear only for the page numbers, not the text, in the TOC. This makes the amount of link highlighting a little less excessive.For instance:
Obviously this could be made optional and be controlled from
index.Rmd
. Happy to submit a PR.