Skip to content

How to add an hyperlink to a section header? #264

Description

@rempsyc

I would like for example to hyperlink my "Publications" section header to my Google Scholar profile. But regular rmarkdown or LaTeX syntax doesn't seem to work. I am using the awesomecv template.

---
surname: Curie
pronouns: she/her
output:
  vitae::awesomecv:
    page_total: true
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE)
library(vitae)
```

# [Publications](https://scholar.google.com/)

Test 1

# \href{https://scholar.google.com/}{Publications}

Test 2

Test 1 doesn't create an hyperlink, while test 2 results in the following error:

! Argument of \href@split has an extra }.
<inserted text> 
                \par 
l.108 ...://scholar.google.com/}{Publications}}{}}
                                                  \label{section} 

Error: LaTeX failed to compile Untitled.tex. 
See https://yihui.org/tinytex/r/#debugging for debugging tips. See Untitled.log for more info.
Execution halted

Is there any supported way to do this already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions