#!/usr/bin/env csh This is really just a commnent so emacs will go into the right minor mode

setenv RIG ~rig

# setenv MAILDIR /usr/spool/mail
# if (! -e $MAILDIR) setenv MAILDIR /var/mail
# setenv MAIL $MAILDIR/$USER

setenv EADDR $user@$DOMAINNAME
setenv LUCEADDR rgreen@luc.edu
setenv REALNAME "Ronald I. Greenberg"

setenv FAXCOVER $RIG/lib/faxcover.ps

setenv PAGER /usr/bin/less

setenv EMACS /usr/bin/emacs
setenv EDITOR $EMACS
setenv VISUAL $EMACS
# setenv TEXEDIT "$EMACS +%d %s"

# setenv PAGER /usr/bin/less # For portability, maybe better to leave this out; man will do right thing by default
# Is PAGER usefule anywhere else?

# setenv PRINTER HP2300 # in DH-225
# setenv PRINTER sunlaser
# setenv PRINTER color416 # in LT-416
# setenv PRINTER hp512 # in LT-512
# setenv PRINTER HP1320 # in DH-226
# setenv PRINTER hplaser # in room DH-310
# setenv PRINTER hp329 # in DH-329 closet
# setenv MATHPRN $PRINTER

# setenv ADCOMPLAIN_FROM rig@cs.luc.edu

# For my convenience in finding files but out of date:
# setenv ELROOT /usr/share/emacs/21.4/lisp

# For possible use by CGI scripts
setenv DOCUMENT_ROOT /var/www/localhost/htdocs
setenv WEB_USER_DIR public_html

# M4 uses M4PATH for libraries.
setenv M4PATH $RIG/tex/m4circuits

# For Smartystreets address verification
setenv SMARTYID e9dddcca-5878-5819-6781-6d2efb60c27f
setenv SMARTYTOKEN wFQ8QukTMYoy4G5RlJr3

# Following two variables for my personal convenience of finding files:
# Could omit next with correct path setting, but I use this in .path.csh:
setenv TEXMFROOT /usr/share/texlive
setenv LATROOT $TEXMFROOT/tex/latex
# Not normally needed for kpathsea searching per /usr/local/texlive/2016/texmf-dist Section 7.2.1:
# setenv TEXMF /usr/local/texlive/2016
#setenv TETEXDIR $TEXMFROOT
#setenv TEXCONFIG $RIG # for new dvips to find config.ps, config.pdf, and .dvipsrc
#setenv TEXMFCONFIG /etc/texmf # for newer Ubuntu setup

# OLD SETTINGS OF OTHER TEX-RELATED VARIABLES BELOW, but now set everything up
# per TeX directory structure defaulting at ~/texmf (could by set by TEXMFHOME) per
# http://tug.org/texinfohtml/kpathsea.html#ls_002dR Section 4 
# Helpers for finding spots:
#     kpsewhich -show-path=bib
#     kpsewhich -show-path=tex
# etc., but doesn't work for sty or cls; instead:
#     kpsewhich -help-format | grep -1

#setenv TEXINPUTS .:..:$RIG/tex:$RIG/tex/macros:$RIG/tex/macros/oldmacs:$RIG/tex/templates:$RIG/tex/acm:$RIG/tex/acmsupport/tex/latex/hyperref:$RIG/tex/acmsupport/tex/generic/oberdiek:$RIG/tex/acmsupport/tex/latex/oberdiek:$RIG/tex/acmsupport/tex/latex/libertine:$RIG/tex/acmsupport/tex/latex/newtx:$RIG/tex/acmsupport/tex/latex/inconsolata:$RIG/tex/acmsupport/tex/latex/fontaxes:$RIG/tex/acmsupport/mweights:$RIG/tex/elsevier:$RIG/tex/ieee:$RIG/tex/llncs:$RIG/tex/siam:$RIG/tex/ppl:$RIG/tex/lms:$RIG/tex/tree-dvips:$RIG/tex/qtree:$RIG/tex/treetex:$RIG/tex/karnaugh:$RIG/tex/luc:$LATROOT/unpacked:$RIG/tex/psfig:$TEXMFROOT/tex/texinfo:$TEXMFROOT/tex/plain:

# TeX/LaTeX uses TEXINPUTS for \input/\include commands BibTeX is
# supposed to use TEXINPUTS for .bst files if BSTINPUTS not set but it
# doesn't seem to me to be that way.

# setenv BSTINPUTS $TEXMFROOT/bibtex/bst:$RIG/tex/bib2html:$RIG/tex/hypertex:$RIG/tex/elsevier:
# BibTeX and bib2html uses BSTINPUTS for .bst files

# setenv BIBINPUTS .:$RIG/tex:
# See also $TEXMFROOT/bibtex/bib
# BibTeX uses BIBINPUTS for .bib files

# Following for machines like laplace.  (.bst files included under "inputs".)
# setenv ALTTEXINPUTS $TEXMFROOT/tex/inputs:$LATROOT
# setenv ALTBSTINPUTS $TEXMFROOT/tex/inputs
# setenv TEXINPUTS ${TEXINPUTS}:$ALTTEXINPUTS
# setenv BSTINPUTS ${BSTINPUTS}:$ALTBSTINPUTS
# setenv TEX_INPUTS "$TEXINPUTS"
# setenv BST_INPUTS "$BSTINPUTS" # Does anybody use this?

# setenv GFFONTS .:
# gftopk finds gfs by looking at GFFONTS if it's set; else it looks at TEXFONTS

# setenv MFINPUTS .:$RIG/tex/mfs:$TEXMFROOT/mf:
# metafont uses MFINPUTS to find mfs.

# setenv TEXPKS $RIG/tex/pks//:$RIG/tex/pks-newcode//:$TEXMFROOT/fonts/public/cm/pk/cx:$TEXMFROOT/fonts/public/cm-lidl/pk/cx:$TEXMFROOT/fonts/tmp/pk:
# dvips uses TEXPKS to find pks if PKFONTS not set.
# System pk locations don't look to be right for rig.cs.luc.edu; things are working fine there with variable unset.

# setenv XDVIFONTS $TEXPKS
# Xdvi uses XDVIFONTS to find pks.  Probably best unset now.

# setenv TEXFONTS $RIG/tex/tfms:$RIG/tex/tfms-newcode:$TEXMFROOT/fonts/public/cm/tfm:$TEXMFROOT/fonts/public/latex/tfm
# LaTeX uses TEXFONTS to find tfms.
# I'm adding below based on where things seem to be on rig.cs.luc.edu but not sure if pk & tfm settings still relevant
# setenv TEXFONTS ${TEXFONTS}:$TEXMFROOT/fonts/tfm/public/latex-fonts:$TEXMFROOT/fonts/tfm/public/cm
# setenv TEXFONTS ${TEXFONTS}:$TEXMFROOT/fonts/tfm/public/culmus
# These settings were actually causing things to break on rig.cs.luc.edu.  Unset is fine.


# For ghostview as per /opt/AEgs/README.solaris:
# setenv GS_FONTPATH /usr/openwin/lib/X11/fonts/Type1/outline
# setenv GS_LIB /usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/Type3
# Paths above are non-existent on rig.cs.luc.edu so taking this things out.

# setenv TOP "-s30"

# setenv OW_WINDOW_MANAGER twm
