% $Id: pretzel.sty,v 1.5 1995/02/23 10:26:34 gaertner Exp $
%
% global macros for the documentation of the
% Studienarbeit


%
% other styles
%

%\input titlepage.sty
\input a4.sty
%\input bigchap.sty
\input makeidx.sty


%
% some logos
%

\def\WEB{{\tt WEB}}
\def\CWEB{{\tt CWEB}}
\def\TANGLE{{\tt TANGLE}}
\def\WEAVE{{\tt WEAVE}}
\def\pretzel{{Pretzel}}

\def\CTANGLE{{\tt CTANGLE}}
\def\CWEAVE{{\tt CWEAVE}}
\def\C{{\sc C}}
\def\CPP{{\C\raise1pt\hbox{++}}}

\def\ALGOL{{\sc Algol}}
\def\LISP{{\sc Lisp}}
\def\PASCAL{{\sc Pascal}}
\def\UNIX{{\sc UNIX}}

\def\t#1{{\tt #1}} % short form for typewriter style


% filecontents - display contents of an example file in text

% to be done



% macros for formatting the examples


\newenvironment{inp}{%  % input of an example
  \flushleft                    % examples are flushed left
  \leftskip 1em                 % but indented a bit
  \catcode`\_=12                % typeset underlines
  \tt                           % use typewriter type
  }{%
  \endflushleft
  }

\newcount\ind % counter for counting amount of indentation

\newenvironment{outp}{% % output of prettyprinted text
  \flushleft
  \leftskip 1em
  \sfcode`;=3000                % a `;' acts like a period
  \pretolerance=10000           % no second pass for paragraph makeup
  \hyphenpenalty 10000 \exhyphenpenalty 10000 % no hypenation
  \global\ind=0                 % reset indentation
  \hangindent=\ind em           % standard left indentation for rest of para
  \hangafter=0                  % align all lines
  \parindent=0pt                % no extra para indentation
  \noindent\kern \ind em        % get into horizontal mode
  \ignorespaces
  }{%
  \endflushleft
  }

\def\id#1{\mbox{\it#1\/}} % identifiers in italics
\def\fmt#1{\mbox{\it #1\/}} % format commands also
\def\res#1{\mbox{\bf #1}} % reserved words in boldface
\def\ass{\mbox{${}\mathrel{:=}{}$}} % assignment operator
%\def\andsign{\mbox{$\wedge$}} % and sign
\def\andsign{\res{and}}
\def\myindent{\advance\ind by1} % indent
\def\myoutdent{\advance\ind by-1} % outdent
\def\myforce{\par\noindent\kern\ind em} % forced line break
\def\mybackup{\hspace{-1em}} % backup one em


%
% $Log: pretzel.sty,v $
% Revision 1.5  1995/02/23  10:26:34  gaertner
% Added LISP logo.
%
% Revision 1.4  1995/02/21  09:11:19  gaertner
% Removed mkWEAVE and makeWEAVE macros and those for Oppens text.
% Introduced a new pretzel macros to witness the name change.
%
% Revision 1.3  1995/01/19  15:21:50  gaertner
% Included the a4.sty again. Removed \preFLEX and \preBISON
% definitions. Have to remove them from the main text too.
%
% Revision 1.2  1994/10/07  10:27:54  gaertner
% This was the original fwmac.sty file. Only added the RCS fields
% for Id and Log.
%
%
