How to use the todo
package in R Markdown-generated LaTeX documents?
To load packages, it is possible to add them to the document's header with header-includes:
. This successfully works with \usepackage{hyperref}
and its styling (\hypersetup{colorlinks=true}
), but doesn't seem to allow to add inline todo{}
s.
---
title: "Untitled"
author: "Test"
date: "7/24/2017"
output: pdf_document
header-includes:
- \usepackage{todo}
- \usepackage{hyperref}
- \hypersetup{colorlinks=true}
---
[Link styling works](www.example.com) but \todo{todo does not}.
which generates
todonotes
?todo
package, that do not make the automatic internal\label{todolbl:1}
.\label{todolbl:1}
,\label{todolbl:1}
, etc. manually. But what I would do is just change "todo" by "todonotes" in the YAML header and add\listoftodos
at the end of the .Rmd file.