1

Does \getpwd command work only with "pdflatex --recorder file.tex" compiling process? I am using the DVI -> PS -> PDF chain to compile in TeXstudio 2.12.6 and the \getpwd is returning empty text.

Follow the Minimum Work Exemple (MWE) that I want compile using the DVI -> PS -> PDF chain:

\documentclass{article}

\usepackage[abspath]{currfile}

\begin{document}

   dir: \getpwd

\end{document}
Adriano
  • 315
  • Welcome to TeX.SX! Yes, the -recorder option is necessary. Can you make a small example of how you use \getpwd? – egreg Feb 23 '18 at 17:28
  • With \getpwd you just define \thepwd; if you want to print (or use for other purposes) the name of the directory, with its path, you have to use \thepwd. – egreg Feb 23 '18 at 17:51
  • I updated the question above with MWE as requested. – Adriano Feb 23 '18 at 17:52
  • I have a tree of subdirectories that I want to concatenate with \getpwd. Exemple: for an "equation" subdirectory, I would want something as \input(\getpwd\equation). – Adriano Feb 23 '18 at 17:59
  • Sorry, but this is quite unclear. – egreg Feb 23 '18 at 18:49
  • The idea is get the current path of directory of the file where the command \getpwd is being used, and associate with other files that they are into the directories in same root directory (of that file which has the \getpwd being used). Thus I would access by \input command.

    I want to make it, because I want beware to move the file with the same root directory without edit the \input command every time.

    – Adriano Feb 23 '18 at 19:12

0 Answers0