
Sou novo aqui e preciso de ajuda com meu documento Markwodn. Encontrei um problema desagradável: quando tento tricotar meu PDF, recebo este erro:
tlmgr.pl: Remote database (revision 69711 of the texlive-scripts package)
seems to be older than the local installation (rev 69718 of
texlive-scripts); please use a different mirror and/or wait a day or two.
! Undefined control sequence.
l.1 \babel@toc
{nil}{}\relax
Esta é a aparência do meu cabeçalho YAML:
---
output:
pdf_document
header-includes:
- \usepackage{ngerman}
- \usepackage{setspace}
- \onehalfspacing
csl: chicago-author-date.csl
bibliography: Heuschrecken.bib
---
E estas são as bibliotecas que estou usando:
library(xlsx)
library(devtools)
library(ggplot2)
library(ggpubr)
library(magrittr)
library(dplyr)
library(lsr)
library(ggpmisc)
library(readxl)
library(rbbt)
library(pandoc)
library(knitr)
library(kableExtra)
library(tinytex)
O problema ocorre quando tento inserir meu toc
\newpage
\tableofcontents
\newpage
Isolei o erro e ele só ocorre quando estou usando o comando \tableofcontents. Surpreendentemente, funciona muito bem quando estou usando \listoffigures ou \listoftables. Fico feliz com qualquer sugestão sobre como corrigir esse erro.
Meu sistema é um Win 10, 64x - se isso for relevante.
Responder1
Encontrei uma solução para o meu problema. Não teve nada a ver com nenhuma instalação. Copiei tudo o que tinha em um documento RMarkdown diferente e funcionou. Não sei por que, mas agora está tudo bem.