#!/bin/bash # # file: /usr/local/bin/xdvi # purpose: wrapper for xdvi # created: pasha nov 23 2009 # modified: pasha jan 15 2024 # modification: chrome -> browser # if [ $OSTYPE == darwin17 ]; then __DIR=/opt/local __GEOMETRY=830x860 else __DIR= __GEOMETRY=830x770 fi __XDVI=${__DIR}/bin/xdvi if [ "$1" == "--help" ]; then $__XDVI --help else # to avoid annoying "reloading" messages when recompiling TeX sources # and "broken" message when quitting with gs support # # if using windows toolbar, the appropriate geometry would be 830x746+100+0 # exec $__XDVI -s 6 -geometry ${__GEOMETRY}+100+0 -expertmode 1 -browser browser "$@" >/dev/null 2>&1 & fi # end of xdvi