# run install-windows.bat without installing any LaTeX packages, so we get a
# minimal TeX Live installation (which only contains tlmgr)
owd = setwd('tools')
f = 'install-windows.bat'
x = readLines(f)
i = x == r"(call tlmgr install %pkgs%)"
if (sum(i) != 1)
stop('The script ', f, ' should contain a line to install extra LaTeX packages.')
x = x[!i]
x = x[x != 'pause'] # do not pause
writeLines(x, f)
shell('install-windows.bat')
setwd(owd)
sys.source('tools/clean-tlpdb.R')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.