Home General Thread

authorindex and tinytex environmental variables

friendly friendly 4mo ago

[Env: Windows 10, R 4.5.1, tinytex 0.57, Quarto 1.7.29]

I'm using tinytex for my Quarto book, which is a big change from how I used to do things using MikTeX on windows, where I knew where all LaTeX files lived, how I could have my own localtexmf directory for .sty, .bst files, etc. I knew how everything worked,
but don't know how to manage my TeX setup with tinytex.

I want to create an Author Index, using the LaTeX authorindex package and its' perl authorindex script, but this relies on environmental variables for the search paths for .bib and .bst files,

my $bstenv="BSTINPUTS";	# Environment Variable holding .bst search path
my $bibenv="BIBINPUTS";	# Env Variable holding search path for BibTeX databases

How can I set these in the MINGW64 shell for RStudio?

The .bib files for my book are all under a bib/ directory.

Quarto uses csl: bib/apa.csl rather than a .bst file. I suppose I could try to use a apa.bst file instead.

1 Reply

yihui yihui 4mo ago

If your question is how to set environment variables on Windows, I think TinyTeX is irrelevant here, and the answer should be easily found from a Google search.

If your question is how to set the local texmf directory, remember that TinyTeX is essentially TeX Live, which also supports the local texmf directory. By default, it is the texmf-local directory under the installation root directory, which can be found via tinytex::tinytex_root(). If you modify this directory, you may need to run tinytex:::refresh_all(). You can also configure this directory to a different path if you want (check out the tlmgr manual).

BTW, this discussion board is not meant to be a general software Q&A board but primarily for personal matters (e.g., my blog comments). For questions on specific packages, please use Github issues in specific repositories instead (https://github.com/rstudio/tinytex/issues would be more appropriate in this case). Thanks!

friendly friendly 4mo ago

FYI & for the record: I'm still unable to run authorindex successfully, but I raised this Q in TeX StackExchange

Sign in to join the discussion

Sign in with GitHub