Skip to content

Commit

Permalink
latexmk: Fix copying the synctex file to the root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
arichardson committed Jan 3, 2023
1 parent 1fe5114 commit 138901a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/cheri-architecture.pdf
/cheri-architecture-tr.pdf
/cheri-architecture.run.xml
/cheri-architecture.synctex.gz
/cheri-architecture.toc
/fig-*.fls
/fig-*.pdf
Expand Down
2 changes: 1 addition & 1 deletion latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (latexmk_version_at_least("4.67")) {
# Delete the copied file on failure:
$failure_cmd = "rm -vf %D %R.pdf; " . $scan_logfile;
# Otherwise copy it (and possibly the synctex.gz file) out of the build dir and scan the logfile.
$copy_files = "cp -v %D %R.pdf; test -f %R.synctex.gz && cp -fv %R.synctex.gz %R.synctex.gz";
$copy_files = "cp -v %D %R.pdf; test -f %Z%R.synctex.gz && cp -fv %Z%R.synctex.gz %R.synctex.gz";
$warning_cmd = $copy_files . "; " . $scan_logfile;
$success_cmd = $copy_files . "; " . $scan_logfile;
} else {
Expand Down

0 comments on commit 138901a

Please sign in to comment.