1. panos mavrogiorgos
  2. externalize tikz


panos mavrogiorgos  committed ca5532e

Removed argument 'ext' from 'create_pdf' function.

Comments (0)

Files changed (1)

File external_tikz.py Modified

View file
  • Ignore whitespace
  • Hide word diff
     with open(name + ".tex", "w") as f:
-def create_pdf(ext, compiler, cwd, tikz_source_path, name):
+def create_pdf(compiler, cwd, tikz_source_path, name):
     Run XeLaTeX to the source file and copy it to the same folder as the tikz
     source code
         if tikz_source_path not in old or mod_time != old[tikz_source_path]:
             name = tikz_source_path.split(os.path.sep)[-1].replace("."+EXT, "")
             create_tex_file(MAIN_FILE, PREVIEW, cwd, tikz_source_path, name)
-            create_pdf(EXT, COMPILER, cwd, tikz_source_path, name)
+            create_pdf(COMPILER, cwd, tikz_source_path, name)
             # clean up code
             # The created extensions depend on the packages used in the preamble