My markdown file won't knit to PDF and returns the following error:
Unmatched ( in regex; marked by <-- HERE in m//( <-- HERE .sty/ at /usr/local/bin/tlmgr line 1778. Error in grep(paste0("/", x[j], "$"), l) : invalid regular expression '/(.sty$', reason 'Missing ')'' Calls: ... system2_quiet -> on_error -> parse_packages -> grep
I am on a Mac and everything was working yesterday, and then I installed tinytex (I may have installed it twice) and now I cannot knit to PDF. Has anyone seen this error before? Or worked with tmlr?
I have tried uninstalling tinytex and reinstalling Rstudio.
If it helps, my YAML heading is:
---
title: \vspace{2in}"**Borrower Feedback Analysis**"
date: "`r Sys.Date()`"
#output: html_document
output:
pdf_document:
latex_engine : xelatex
toc: true
toc_depth: 1
header-includes:
- \usepackage(tinytex)
- \usepackage{sectsty}
- \usepackage{xcolor}
- \definecolor{blendHeaderBlue}{HTML}{00146b}
- \definecolor{blendParahraphBlue}{HTML}{4a578f}
- \sectionfont{\color{blendHeaderBlue}}
- \subsectionfont{\color{blue}}
- \paragraphfont{\color{blue}}
geometry: margin= .9in
fontsize: 10pt
---