0

Is there any way to define a path relative to home in windows ?

Like it's done here for linux

  • ~ should work – David Carlisle Jun 1 '17 at 18:55
  • 1
    @Moriambar the link in the question is "how to input file in home directly into latex" so it is a tex question (just obscured) – David Carlisle Jun 1 '17 at 18:56
2

The answers given in the linked question should work.

\input{\string~/abc}

for example.

The documentation of the comments (for example in

/usr/local/texlive/2017/texmf-dist/web2c/texmf.cnf

or equivalent on your system) say

.... ~ expands to %USERPROFILE% on Windows, $HOME otherwise.

  • Right. Thanks! I had an error on my first try of this solution and thought it was platform specific. – cladelpino Jun 1 '17 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.