2

I'm new using latex and I'm a bit lost about how to properly configure my environments so my compiler is able to find my files.

From what I read, I'm supposed to have a TEXINPUTS and TEXMFHOME environment variables, with default values, but I don't have them in my env so far. And putting files in ~/texmf ends up with a not found error.

From what I understand I am not supposed to set this variables myself unless I want to customize them, so what did I missed ?

If I use the command kpsewhich the vars seem ok, but still I don't see them in env, and neither my build it seems.

My command is :

latexmk -pdf -pdflatex="xelatex" -use-make file.tex

I am on Arch with all the texlive-* packages installed out of the box.

EDIT:

To be more specific, I'd like to have my shared .cls, .sty, .fontspec, whatever, which I am supposed to put by default in $TEXMFHOME, available when I build my pdf. But it seems out of the box this folder is not read, I get a not found error for my files there. I can obviously export those vars (and it actually works when I do that), but it seems wrong to have to export default values to make it works as expected.

closed as unclear what you're asking by user36296, Phelype Oleinik, Mensch, CarLaTeX, Stefan Pinnow Apr 13 '18 at 4:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    If you are a new user, why exactly are you messing with TEXINPUTS, TEXMFHOME or ~/texmf? What exactly are you trying to do? – daleif Dec 27 '17 at 14:45
  • 1
    You wont' see these variables in env unless you've modified them: 'out of the box', kpsewhich uses defaults so they never need to be set by most users ... – Joseph Wright Dec 27 '17 at 14:56
  • @daleif as I said, I'd like my compiler to use the files in these locations, but it actually don't. So I'd like to know what did I miss so the files I put in TEXMFHOME are actually found as they should be from what I read. – Sylver Dec 27 '17 at 15:09
  • 1
    But what exactly did you put in those locations? What is is a new latex user needs that did not come from the texlive you installed? – daleif Dec 27 '17 at 15:12
  • My shared .cls, .sty and fontspec for instance. – Sylver Dec 27 '17 at 15:18