diff --git a/latex/build.py b/latex/build.py
index <HASH>..<HASH> 100644
--- a/latex/build.py
+++ b/latex/build.py
@@ -63,6 +63,9 @@ class LatexMkBuilder(LatexBuilder):
         with TempDir() as tmpdir,\
                 source.temp_saved(suffix='.latex', dir=tmpdir) as tmp:
 
+            # close temp file, so other processes can access it also on Windows
+            tmp.close()
+
             base_fn = os.path.splitext(tmp.name)[0]
             output_fn = base_fn + '.pdf'
 
@@ -127,6 +130,9 @@ class PdfLatexBuilder(LatexBuilder):
         with TempDir() as tmpdir,\
                 source.temp_saved(suffix='.latex', dir=tmpdir) as tmp:
 
+            # close temp file, so other processes can access it also on Windows
+            tmp.close()
+
             # calculate output filename
             base_fn = os.path.splitext(tmp.name)[0]
             output_fn = base_fn + '.pdf'
Close temp file, so other processes can access it also on Windows