diff options
author | André Schlichting | 2015-03-16 13:49:19 +0100 |
---|---|---|
committer | André Schlichting | 2015-03-16 13:49:19 +0100 |
commit | 142776a55064cc4032da8c87ea87b6590cc87562 (patch) | |
tree | e01e7295bdb95039d7206eb4a1751acbcafcdc43 /support-synctex.patch | |
download | aur-142776a55064cc4032da8c87ea87b6590cc87562.tar.gz |
initial maintained aur-packages
Diffstat (limited to 'support-synctex.patch')
-rw-r--r-- | support-synctex.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/support-synctex.patch b/support-synctex.patch new file mode 100644 index 000000000000..b60ef691b40b --- /dev/null +++ b/support-synctex.patch @@ -0,0 +1,27 @@ +diff --git a/texbuild b/texbuild +index 5e175f1..c95a7ea 100755 +--- a/texbuild ++++ b/texbuild +@@ -48,12 +48,13 @@ def msg (message): + filename = sys.argv[1] + base = os.path.splitext (os.path.basename (filename))[0] + final = base + ".pdf" ++synctex = base + ".synctex.gz" + logfile = base + ".log" + auxfile = base + ".aux" + + texbuildlogfile = "texbuild.log" + +-latex = ["pdflatex", "-recorder", "-interaction=nonstopmode", filename] ++latex = ["pdflatex", "-recorder", "-src-specials", "-synctex=1", "-interaction=nonstopmode", "-shell-escape", "-enable-write18", filename] + bibtex = ["bibtex", base] + + +@@ -167,5 +168,6 @@ while (True): + debug ("copying log") + shutil.copy (logfile, "t.log") + shutil.copy (auxfile, "t.aux") # for bibtex ++ shutil.copy (synctex, "t.synctex.gz") # for synctex + + +-- |