You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a directory containing a LaTeX document,
$ latexmk -pvc
Then hit Ctrl-C to stop PVC ("preview continously") mode.
What did you expect to occur after running these commands?
The message "Latexmk: User typed ctrl/C or ctrl/break. I'll finish." should appear on the terminal, indicating that latexmk was able to capture the Ctrl-C. Afterwards, there should be no processes related to latexmk left. This is the intended behavior that occurs on Linux and on Windows using a Cmd, Cygwin, or MinGW shell.
What actually happened instead?
There is no message on the terminal which returns to the usual prompt. However, a perl.exe process, which is related to latexmk, remains running and watches for changes in the LaTeX project.
Investigation so far:
Latexmk.exe calls .../texlive/2017/tlpkg/tlperl/bin/perl.exe to run a script called latexmk.pl. This version of perl reports
"This is perl 5, version 24, subversion 1 (v5.24.1) built for MSWin32-x86-multi-thread"
If one uses the perl executable that comes with Git bash (/usr/bin/perl) to run latexmk.pl, the problem does not occur.
In conclusion, there must be a problem in Git bash with passing Ctrl-C to the Windows executable .../texlive/2017/tlpkg/tlperl/bin/perl.exe. I'd like to stress that this does not occur in a MinGW shell, which seems to be similar to Git bash, although I do not understand the details.
The text was updated successfully, but these errors were encountered:
Setup
defaults?
to the issue you're seeing?
Windows Installation of TeXLive present.
$ pdflatex -v
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/W32TeX)
[...]
Details
Git bash (as shipped with Git for Windows)
Minimal, Complete, and Verifiable example
this will help us understand the issue.
The message "Latexmk: User typed ctrl/C or ctrl/break. I'll finish." should appear on the terminal, indicating that latexmk was able to capture the Ctrl-C. Afterwards, there should be no processes related to latexmk left. This is the intended behavior that occurs on Linux and on Windows using a Cmd, Cygwin, or MinGW shell.
There is no message on the terminal which returns to the usual prompt. However, a perl.exe process, which is related to latexmk, remains running and watches for changes in the LaTeX project.
Latexmk.exe calls .../texlive/2017/tlpkg/tlperl/bin/perl.exe to run a script called latexmk.pl. This version of perl reports
"This is perl 5, version 24, subversion 1 (v5.24.1) built for MSWin32-x86-multi-thread"
If one uses the perl executable that comes with Git bash (/usr/bin/perl) to run latexmk.pl, the problem does not occur.
In conclusion, there must be a problem in Git bash with passing Ctrl-C to the Windows executable .../texlive/2017/tlpkg/tlperl/bin/perl.exe. I'd like to stress that this does not occur in a MinGW shell, which seems to be similar to Git bash, although I do not understand the details.
The text was updated successfully, but these errors were encountered: