I am running pdflatex from inside the python script. Python project is inside venv and my terminal command is like abs\path\to\pdflatex.exe abs\path\to\file.tex but when run, it cannot find my *.sty file which is placed in the same directory as my main .tex file. Program waits for me to enter the path to that sty file. I need this to be automatically done by running the command inside python script. How can I fix this?
Asked
Active
Viewed 219 times
0
mend4x
- 113
pdflatex fileany relative paths in the file are relative to the working directory of the pdflatex process not relative to the main document. If you cd first then these are the same and the result is a lot less confusing. – David Carlisle Jun 17 '21 at 13:38-include-directoryoption and used it to make it one line command – mend4x Jun 18 '21 at 04:07TEXINPUTSwon't be a good solution, I guess – mend4x Jun 18 '21 at 04:13