Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jobname cannot read paths #45

Closed
Vayel opened this issue Mar 25, 2015 · 4 comments
Closed

jobname cannot read paths #45

Vayel opened this issue Mar 25, 2015 · 4 comments

Comments

@Vayel
Copy link
Contributor

Vayel commented Mar 25, 2015

pdflatex --jobname="/home/eleve/vincent.lefoulon/Documents/MPF/data/prod/filename" "/home/eleve/vincent.lefoulon/Documents/MPF/data/prod/filename.tex" does not work whereas pdflatex --jobname="filename" "/home/eleve/vincent.lefoulon/Documents/MPF/data/prod/filename.tex" does. But the second command saves the file in the working directory.

pdflatex --output-directory ~/Documents/MPF/data/prod "/home/eleve/vincent.lefoulon/Documents/MPF/data/prod/filename.tex" would do the job and save the file as ~/Documents/MPF/data/prod/filename.pdf

@Vayel
Copy link
Contributor Author

Vayel commented Mar 26, 2015

Indeed, command = compiler + ' --output-directory="' + os.path.dirname(filename) + '" "' + filename + '.tex"' does the job with pdflatex.

@Vayel
Copy link
Contributor Author

Vayel commented Apr 2, 2015

Or maybe using the cd command would do the job.

@jrast
Copy link

jrast commented Apr 10, 2015

I also encountered some problems which might be related to this on a windows system. If I specified the filename as absolute path, the aux file was not found during the pdflatex run. My quick fix was this:

cur_path = os.getcwd()
os.chdir(os.path.dirname(filename))
doc.generate_pdf()
os.chdir(cur_path)

Maybe something like this should be included in generate_pdf.

@JelteF
Copy link
Owner

JelteF commented Apr 24, 2015

This should be fixed now

@JelteF JelteF closed this as completed Apr 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants