
% Local defines for Rubin's & Paul's Book.
\input epsf           % at the beginning of your TeX document
\input psfig

%% Wiley book size
% This don't work here becuase we call \input local too early
% the size is defined in wiley_bk10.sty
%\setlength{\textwidth}{4.625in}  %333 pt
%\setlength{\textheight}{7.375in} %513 pt
%\setlength{\topmargin}{-0.5in} % just moves things up on the page
\def\pagemark{\rm {\it Unix Survival Guide}\ \ {\bf\today}\ \ R.\ Landau and P.\ Fink}

%% Fonts for Headers and more
%rphvb   Helvetica-Bold
%rphvbo  Helvetica-BoldOblique
\font\rhfont =rphvro at 8pt                % Running Header Helvetica-Oblique
\font\chptfont =rphvr  scaled\magstep3     % Chapter font Helvetica
\font\chptnfont =rphvb  scaled\magstep1    % Chapter Number font Helvetica
\font\subhfont  =rphvbo                    % subsubsection
%\font\chptnfont =rphvr  at 32pt            % Chapter Number font Helvetica
% defines what font is used on section headers
\def\hfont{\protect\pbsf} % Bold helvetica

% New fonts (defined in wiley_psfonts)
%\def\btt{\protect\pbtt} % Bold tt, courier, font
%\def\ott{\protect\pott} % oblique tt, courier, font
%\def\bsf{\protect\pbsf} % Bold sf, helvetica

%The are the "old" names
\newcommand{\sys}{\small\tt} %  Font for system output

\newcommand{\user}{\small\btt} % Font for user typed in replies


\def\file{\protect\pbtt} % font for file names in commands

% Make a line of computer conversation Usage:
% \comp{Computer output}{User response}{notes}
% Note that leading and trailing spaces are preserved
% You make leave any of three inputs blank.
% comp was 150 wcomp 200 and ccomp 170. They are all identical now.
\newcommand{\comp}[3]{
\noindent \makebox[200 pt][l]{\small {\tt #1\ {\btt #2}}} {\footnotesize #3 }\\
}
%
% For a continued line of notes. Notes are indented more.
\newcommand{\ccomp}[3]{
\noindent \makebox[200 pt][l]{\small {\tt #1\ {\btt #2}}} {\footnotesize #3 }\\
}
%
% For a wide line of computer output. Notes are indented more.
\newcommand{\wcomp}[3]{
\noindent \makebox[200 pt][l]{\small {\tt #1\ {\btt #2}}} {\footnotesize #3 }\\
}
%
% how the hell do you get '~'
\newcommand{\til} {\symbol{126}}
\newcommand{\bslash} {\symbol{92}}
%%
%% Begin a code fragment with comment field, and vline, Usage:
% \codebegin
\newcommand{\codebegin}{
\begin{small}\begin{center}\begin{tabular}{|l|l|}\hline
}
%
% end a code fragment, Usage:
% \codeend
\newcommand{\codeend}{
\hline\end{tabular}\end{center}\end{small} 
\ \\
\noindent
}
%
% Make a line of code fragment with comment within tabular, Usage:
% \code{code}{comment}
% You make leave any of 1st two inputs blank.
\newcommand{\code}[2]{
{\small{\tt {#1}} } &{\footnotesize #2}\\
}
%%%
%
%% Begin a 2 column code fragment with NO vline, Usage:
% \codesbegin
\newcommand{\codesbegin}{
\begin{small}\begin{center}\begin{tabular}{|ll|}\hline
}
%
%
% Make a line of double code fragment within tabular,
% (can use with \codebegin or codesbegin) Usage:
% \codes{code1}{code2}
% You make leave any of 1st two inputs blank.
\newcommand{\codes}[2]{
{\small {\tt {#1}}} & {\small {\tt {#2}}}\\
}
%%
%% yet another code.
% \listingbegin
\newcommand{\listingbegin}{
\begin{small}\begin{tt}
}
%
% end a code fragment, Usage:
% \listingend
\newcommand{\listingend}{
\end{tt}\end{small}
}


%% Begin a list of definitons, Usage:
% \definebegin
\newcommand{\definebegin}{
\ \\*[1ex]
\begin{tabular}{|ll}
}
%
% end a list of definitions, Usage:
% \defineend
\newcommand{\defineend}{
\end{tabular}
\ \\[1ex] \noindent
}
%
% Make a definition within tabular, Usage:
% \define{name}{meaning}
% You make leave any of 1st two inputs blank.
% was 1.8in shorten to 1.3
\newcommand{\define}[2]{
\makebox[1.3in][l]{\bf {#1}} & \makebox[4.in][l]{#2}\\
}
%
%
% inserts a postscript figure
\newcommand{\epsfigure}[2]{
\begin{figure}
	\begin{center}
	\mbox{
		\epsfbox{FIGS/#1}
	}
	\end{center}
	\caption{#2\label{#1}}
\end{figure}
}

% inserts a postscript figure
\newcommand{\psfigure}[2]{
\begin{figure}
\begin{center}
\ \psfig{figure=FIGS/#1}
\end{center}
\caption{#2\label{#1}}
\end{figure}
}


%place bullet in margin, next to line
\newcommand{\bull}{
\vspace{1ex} \noindent \hspace{+3ex} $\bullet$
}
