Questions tagged [tinytex]

TinyTeX is a TeX distribution based on TeX Live. tinytex is an R package that helps to install TinyTeX.

149 questions
3
votes
1 answer

How to resolve rmarkdown to latex errors involving tikz devices

I am trying to compile an rmarkdown document that includes a geographic plot into a PDF file. Here is a MWE: --- title: "Problems with maps in tikz" output: pdf_document --- ```{r setup, include=FALSE} library(ggplot2) library(sf) ``` ##…
gregmacfarlane
  • 2,121
  • 3
  • 24
  • 53
3
votes
3 answers

How do I get amsmath to work in RMarkdown when knitting to PDF?

In RMarkdown, I have a document I want to knit to pdf. The document has equations for which I need automatic numbering. I had been using the $$ 1+1=2 \tag{1} $$ convention to write equations, but now want to switch to the \begin{equation} 1+1=2…
ben
  • 787
  • 3
  • 16
  • 32
3
votes
2 answers

Unable to knit pdf, receiving tinytex error with failed tlmgr search

Using - RStudio Version 1.2.1335 - R version I am able to knit the R markdown file to HTML and Word, but fail with PDF. I keep receiving the same error message telling me that it is unable to locate the "Palatino" font. The file is successfully…
Shivvy
  • 67
  • 2
  • 6
3
votes
1 answer

Failed to compile test.tex after successful TinyTeX installation via tinytex

I am trying to install TinyTeX via the convenient tinytex-package for R. After having had a few issues with getting the installation to run smoothly on MacOS, the install_tinytex() function now executes properly and ends with the statement:…
O René
  • 305
  • 1
  • 12
3
votes
1 answer

will R TinyTeX installation interfere with other LaTeX installations on my computer

On my Windows computers I typically install MiKTeX, and on my Linux computers I typically install TeX Live. I write to R Markdown a lot and it is recommended I install the package called TinyTeX via install.packages("tinytex") then…
stackinator
  • 5,429
  • 8
  • 43
  • 84
2
votes
1 answer

ERROR: Your TexLive version is not updated enough

I would like to create a pdf document using Quarto. When I run the following simple code it returns the following error: --- title: "Test" format: pdf --- Example document Output error: running xelatex - 1 command xelatex not found, attempting…
Quinten
  • 35,235
  • 5
  • 20
  • 53
2
votes
0 answers

Error: ! Undefined sequence control \setbeamertemplate, trying render rmarkdown-file to beamer presentation

I get the following latex error when rendering to rmarkdown file to beamer-presentation. ! Undefined control sequence. l.16 \setbeamertemplate {caption}[numbered] My rmarkdownscript looks as following, and the problem…
Asger
  • 21
  • 2
2
votes
1 answer

Install custom TeX packages

I'm trying to install a custom Latex package (this Beamer template). I've tried to create a new directory under ...\AppData\Roaming\TinyTeX\texmf-local\, copy the .sty files and refresh Tinytex with tlmgr update --self -all tlmgr path add…
Alberson Miranda
  • 1,248
  • 7
  • 25
2
votes
1 answer

How to render PDF from R Markdown with Chinese characters

I am unable to render PDF files from R Markdown properly due to the Chinese characters in an otherwise mostly English document, from a Windows 11 machine, using tinytex. I'm receiving the following error: ! Package fontspec Error: The font "SimHei"…
Phil
  • 7,287
  • 3
  • 36
  • 66
2
votes
1 answer

"Error in (function (file = if (onefile) "Rplots.pdf" else "Rplot%3d.pdf, " when I compile PDF in RStudio (KNITR package)

I created a Sweave file in RStudio, with mostly code: \documentclass{article} \begin{document} Hello <<>>= library(x) library(y) library(z) data(dataset) plot(dataset$variable1, dataset$variable2) [...] #This means "other lines", not literally…
SuperFluo
  • 77
  • 8
2
votes
1 answer

Error: installing tinytex (tinytex::install_tinytex()) in rstudio

I am trying to knit reports to pdf documents in rstudio. I have successfully installed rtools and added it to my PATH, and also installed rmarkdown and tinytex. However whenever I run tinytex::install_tinytex() the following error about tlmgr is…
2
votes
2 answers

Why No Latex Installation Detected

I am running R 4.0.5 on Window 10. It's a new laptop with a very recent R, RStudio, and tinytex installations. I have a notebook file that works fine when I knit to Word. But when I try to knit to PDF, I get the following error: output file:…
2
votes
1 answer

Kable table where booktabs and collapse_rows with the first column "stacked" fails to produce pdf after R/Rstudio/tinytex update

I recently updated my RStudio version to Version 1.4.1106, my R version to 4.0.5 (2021-03-31) -- "Shake and Throw". This was prompted by a particularly troublesome tinytex installation. Since that time I have been unable to get .rmd to knit into…
SeaJane
  • 178
  • 1
  • 7
2
votes
1 answer

Unable to compile a Rmarkdown file on Arch Linux

I'm having a problem compiling a simple Rmarkdown file, and I'm clueless about the solutions. Here is the problem: Document I want to compile It's a simple document without R code, just text. In the header: title, author, date and output:…
Rik Ferreira
  • 161
  • 1
  • 10
2
votes
2 answers

debugging rmarkdown error 'tlmgr' not found

I'm trying to knit to PDF using an .rmd file. It failed and suggested I look: https://yihui.org/tinytex/r/#debugging for debugging tips. The second step is to run tinytex::tlmgr_update(), however this returns: tlmgr update --all --self Error in…
Rafael
  • 3,096
  • 1
  • 23
  • 61
1
2
3
9 10