Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Bold, font size – Hyperlink

Can I change the font size and make the font bold in this fragment of code in RMarkdown? I export this report to PDF.

\newcommand{\soln}{https://www.google.com/}

\begin{center}

\href{\soln}{`r df['name']`}

\end{center}

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Use latex command \bfseries to bold the text and then wrap the whole \href command within a font size command, for example, \huge. see here for the list of font-size changing commands.

---
title: "large and bold hyperlink"
output: pdf_document
date: "2022-12-01"
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)

df <- "Whatever"
```

\newcommand{\soln}{https://www.google.com/}

\begin{center}

\huge{\href{\soln}{\bfseries `r paste(df)`}}

\end{center}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading