If i set my TEXINPUTS variable to 

~wtautz/mytexmf//: 

I am able to generate the correct postscript file.

HOWEVER, if I put the same files under

/software/tetex/data/texmf.local/tex/latex/from-old-tex-distribution/uwcrests/

neither xdvi nor dvips seems to be able to do the right thing, i.e
the encapsulated postscript file can not be seen when viewed??

Is there some
special place I am suppose to put figures in the tetex tree?? I did run texhash
after putting files into place (I don't think this is actually necessary). 
The weird thing is that the encapsulated postscript (logori.ps) looks like
it is being being found by latex but not by either dvips or xdvi? I tried
running xdvi with -debug options

Here dvips -d 1024 when not setting TEXINPUTS:

kdebug:hash_lookup(TEXMFMAIN) => /software/tetex-1.0/data/texmf
/software/tetex-1.0/data/texmf
kdebug:hash_lookup(logori.ps) => (nil)
kdebug:hash_lookup(logori.ps) =>
/software/tetex-1.0/data/texmf.local/tex/latex/from-old-tex-distribution/uwcrests/
kdebug:hash_lookup(logori.ps) => (nil)
kdebug:hash_lookup(logori.ps) =>
/software/tetex-1.0/data/texmf.local/tex/latex/from-old-tex-distribution/uwcrests/
kdebug:hash_lookup(logori.ps) => (nil)
kdebug:hash_lookup(logori.ps) =>
/software/tetex-1.0/data/texmf.local/tex/latex/from-old-tex-distribution/uwcrests/
<logori.ps>] 


whereas if we set TEXINPUTS (I.E when we CAN view the encapsulated file)
sh_lookup(/u/wtautz/mytexmf/mythm.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/uwcrests) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/Old.tar) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/delmath.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/mypage.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/wthm.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/backup.tgz) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/egathm.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/unthm.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/armac.tex) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/wmath.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/bour.sty) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/Contents) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/simple-nfss.dvi) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/tmp.tgz) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/wmath.sty.orig) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/simple-nfss.ps) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/simple-nfss.tex) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/symbols.dvi) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/symbols.tex) => (nil)
kdebug:hash_lookup(/u/wtautz/mytexmf/tutorials-for-tex.list) => (nil)
<logori.ps>] 



here is the style file (note the figure line)


% UWLETTERHEAD.sty - our version of the letter.sty
% - Puts the telephone number in what it guesses might be a reasonable place
% - generates UW letter head

\typeout{UWLETTERHEAD Style - April 22, 1993}

\ifx\undefined\makelabels \input letter.sty \fi
\input psfig.sty

\font\univrm=pagk scaled 2300
\font\smallfont=pagk at 7.5pt
\newcommand{\smallrm}{\tiny \smallfont}

\raggedbottom

\newlength\uwheadsep
\newlength\uwheadheight
\setlength{\uwheadsep}{\headsep}
\setlength{\uwheadheight}{\headheight}

\headsep 0pt
\headheight 0pt
\textheight 8.5in
\topmargin 0pt

\def\uwpagestyle{}
\def\pagestyle#1{
    \def\uwpagestyle{#1}
    \ifx\csname uw@#1 \endcsname\undefined \else
        \@nameuse{uw@#1}
    \fi

    \@nameuse{ps@#1}
}

\def\uw@headings{
    \headheight \uwheadheight
    \headsep \uwheadsep
    \addtolength{\textheight}{-\headsep}
    \addtolength{\textheight}{-\headheight}
}

\oddsidemargin   17pt
\evensidemargin  17pt
\marginparwidth  70pt
\marginparsep    11pt
\textwidth 425pt
\marginparpush 5pt

\def\setlocphone{
  \ifx\@empty\fromname
     \ifx\@empty\fromlocation
       \ifx\@empty\telephonenum
         \def\fromlocphone{}
       \else
         \def\fromlocphone{\telephonenum}
       \fi
     \else
       \ifx\@empty\telephonenum
         \def\fromlocphone{\fromlocation}
       \else
         \def\fromlocphone{\fromlocation \\ \telephonenum}
       \fi
     \fi
   \else
     \ifx\@empty\fromlocation
       \ifx\@empty\telephonenum
         \def\fromlocphone{\fromname}
       \else
         \def\fromlocphone{\fromname \\ \telephonenum}
       \fi
     \else
       \ifx\@empty\telephonenum
         \def\fromlocphone{\fromname \\ \fromlocation}
       \else
         \def\fromlocphone{\fromname \\ \fromlocation \\ \telephonenum}
       \fi
     \fi
   \fi
}

\def\fromlocphone{}
\def\name#1{\def\fromname{#1}\setlocphone}
\def\telephone#1{\def\telephonenum{#1}\setlocphone}
\def\location#1{\def\fromlocation{#1}\setlocphone}
\def\letterdate{\today}
\def\date#1{\def\letterdate{#1}}
\def\letteremail{}
\def\email#1{\def\letteremail{\\Email:  #1}}

\def\useuwcrest{logori}
\def\uwcrest#1{\def\useuwcrest{#1}}
\def\uwlogo{
      \ \psfig{figure=\useuwcrest.ps,height=1.85cm} \\
      *[\parskip] }
% Let's try the previous construct
%\def\uwlogo{
%      \special{header=\useuwcrest.ps}
%      \ \psfig{figure=uw\useuwcrest.ps,height=1.85cm} \\
%      *[\parskip] }
    
\def\logofill{
    \hspace{-1\oddsidemargin} 
    \makebox[4.55in]{}
}

\def\opening#1{%
    \ifx\@empty\uwpagestyle
        \pagestyle{empty}
    \fi
    \centerline{ \vspace{-0.8in}    \vspace{-\headsep} \vspace{-\headheight}}
        
    {\flushleft \hspace{-1\oddsidemargin} \hspace{0.1in} {\univrm University of 
Waterloo\\}}
    \centerline{ \vspace{-0.37in}}
        
    \ifx\@empty\fromaddress
        \thispagestyle{firstpage} 
        \ifx\@empty\fromlocphone
            \hbox{\smallrm \logofill 
\begin{tabular}{l}\uwlogo\ignorespaces\letteremail \\*[2\parskip] 
\normalsize\letterdate\end{tabular}\hss}\par 
        \else  % there is a telephone number
            \hbox{\smallrm \logofill 
\begin{tabular}{l}\uwlogo\ignorespaces\fromlocphone 
            \letteremail \\*[2\parskip] \normalsize\letterdate\end{tabular}}\hss\par
        \fi
    \else  % home address
        \thispagestyle{empty} 

        \ifx\@empty\fromlocphone
            \hbox{\smallrm \logofill 
\begin{tabular}{l}\uwlogo\ignorespaces\fromaddress \letteremail \\*[2\parskip]
            \normalsize\letterdate \end{tabular}\hss}\par
        \else  % there is a telephone number
            \hbox{\smallrm \logofill 
\begin{tabular}{l}\uwlogo\ignorespaces\fromaddress \\
            *[\parskip]\fromlocphone \letteremail \\*[2\parskip] 
\normalsize\letterdate \end{tabular}\hss}\par
        \fi
    \fi
    \vspace{2\parskip}
    {\raggedright \toname \\ \toaddress \par}\vspace{2\parskip}
    #1\par\nobreak

}

% the firstpage page style is what prints the first page of a business letter
% i.e. the letterhead page

\def\ps@firstpage{\def\@oddhead{}\def\@oddfoot{}%
\def\@evenhead{}\def\@evenfoot{}
}

%\makeatother

Reply via email to