/usr/share/racket/pkgs/slatex/slatex-launcher.rkt is in racket-common 6.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | (module slatex-launcher scheme/base
(require "slatex-wrapper.rkt"
scheme/cmdline)
(module test racket/base)
(define argv (current-command-line-arguments))
(define no-latex (make-parameter #f))
(case (system-type)
[(macos)
;; set up drag and drop
(current-load slatex)
(for-each slatex (vector->list argv))]
[(windows unix macosx)
(let* ([filename
(command-line
#:program "slatex"
#:once-each
[("-n" "--no-latex") "Just preprocess, don't run LaTeX"
(no-latex #t)]
#:args (filename)
filename)]
[result
(parameterize ([error-escape-handler exit])
(if (no-latex)
(slatex/no-latex filename)
(slatex filename)))])
(if result
(exit)
(exit 1)))]))
|