Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to set up tinytex #41

Open
wlangera opened this issue Jan 2, 2023 · 0 comments
Open

Fail to set up tinytex #41

wlangera opened this issue Jan 2, 2023 · 0 comments

Comments

@wlangera
Copy link

wlangera commented Jan 2, 2023

Correct installation and set up of TinyTeX did not work for me according to the instructions in the slides. Similar problems were reported on the GitHub page of TinyTeX (Fail to install Caption package in Rstudio (Windows 10) #257).

A solution is provided here. You can temporarily change the PATH-variable (add ;C:\Windows\system32):

# change PATH variable
old_path <- Sys.getenv("PATH")
Sys.setenv(PATH = paste0(old_path, ";C:\\Windows\\system32"))

# install tinytex
install.packages("tinytex")
tinytex::install_tinytex() 

# setup for tinytex
tinytex::tlmgr_install(c(
    'inconsolata', 'times', 'tex', 'helvetic', 'dvips'
))
tinytex::tlmgr_conf(
    c("auxtrees", "add", system.file("local_tex", package = "INBOmd"))
)
tinytex::tlmgr_install(c("hyphen-dutch", "hyphen-french"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant