I'm trying to use the LaTeX package gensymb
in my R markdown document (PDF output), but it seems to not work. These two examples work:
IN LaTeX as a .tex file compiled with PDFLaTeX:
\documentclass{article}[12pt]
\usepackage{gensymb}
\begin{document}
It is 90 \degree F outside.
\end{document}
As well as this one In RStudio as a .rmd file using knitr and pdfLaTeX:
header-includes:
output:
pdf_document:
fontsize: 12pt
geometry: margin=1in
---
It is 90 $^{\circ}$ F outside.
But the following does not compile in a .rmd file.
header-includes:
- \usepackage{gensymb}
output:
pdf_document:
fontsize: 12pt
geometry: margin=1in
---
It is 90 \degree F outside.
The error from R reports
tlmgr.pl: Local TeX Live (2019) is older than remote repository (2020).
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
! LaTeX Error: File `gensymb.sty' not found.
Any help is greatly appreciated!