Skip to content

Commit

Permalink
bugfix in pdflatexex_mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe committed Nov 8, 2014
1 parent e8fd86e commit d0e8d71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/pdflatexex_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def run(texfile, pdflatexopts=[], mode=MODE_EX, pdfbasename=None, pdflatex=None,
if not texfile_dir:
texfile_dir = None # None, by default (meaning CWD)

texfile_full = os.path.realpath(os.path.abspath(texfile))

workdir = tempfile.mkdtemp();

fnsuffix = defaultsuffix(mode)
Expand All @@ -125,7 +127,7 @@ def run(texfile, pdflatexopts=[], mode=MODE_EX, pdfbasename=None, pdflatex=None,

try:
f = open(runtexfile, 'w');
f.write(r'\def\ethuebungwant' + wantlatex + r'{}\input{'+texfile_bn+'}' +'\n');
f.write(r'\def\ethuebungwant' + wantlatex + r'{}\input{'+texfile_full+'}' +'\n');
f.close();
except:
print >>sys.stderr, "Can't open file %s." % (runtexfile)
Expand Down

0 comments on commit d0e8d71

Please sign in to comment.