[tex-k] Web2C: "-parse-first-line" does not work in on-line fileprompt.

Igor Liferenko igor.liferenko at gmail.com
Wed Sep 19 11:22:04 CEST 2018


I came to the conclusion that it is impossible to make formats
work properly when using prompt to input file name. I decided
to handle this by just creating a wrapper which checks if
file exists before calling tex:

tex () {
  if [ -e "$1" ]; then
    command tex "$@"
  else
    echo ERROR: cannot open input file
    return 1
  fi
}

Regards,
Igor


More information about the tex-k mailing list