Uso rmarkdown per il rendering di documenti PDF. Ora voglio aggiungere collegamenti interni nei testi.I collegamenti interni in rmarkdown non funzionano
Nelle pagine di aiutare rmarkdown, si dice un link interno è definito come:
See the [Introduction](#introduction).
quando uso per esempio nel prossimo codice ci dovrebbero essere due collegamenti interni: link1 e link2. Entrambi non collegano. C'è qualcosa di ovvio che sto sbagliando? Molte grazie in anticipo!
---
title: "Test"
author: "test test"
output:
pdf_document:
latex_engine: xelatex
number_sections: yes
toc: yes
toc_depth: 3
html_document:
css: tables.css
number_sections: yes
theme: cerulean
toc: yes
toc_depth: 3
subtitle: test test test
mainfont: Calibri Light
fontsize: 12pt
header-includes:
- \usepackage[dutch]{babel}
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \fancyfoot[LE,RO]{this is a fancy foot}
- \usepackage{dcolumn}
- \usepackage{here}
- \usepackage{longtable}
- \usepackage{caption}
- \captionsetup{skip=2pt,labelsep=space,justification=justified,singlelinecheck=off}
---
# start
```{r results="asis",tidy=FALSE,eval=TRUE,echo=FALSE,message=FALSE, error=FALSE, warning=FALSE, comment = NA}
cat("click here: [link1](#test 1)")
```
click here: [link2](#test 1)
\pagebreak
#test 3
\pagebreak
#test 2
\pagebreak
#test 1
grazie per la risposta rapida. Questo è tutto! – rdatasculptor
Anche se è piuttosto strano che nel tutorial di rmarkdown non vengano menzionati ancore. Invece dice: "Per collegarsi ad un'altra sezione dello stesso documento, usa l'identificatore generato automaticamente" – rdatasculptor
@ user1983395, Non ha controllato la documentazione. So che in HTML, di solito sono chiamati ancore, ma forse "identificatori" sono più accurati. – A5C1D2H2I1M1N2O1R2T1