% $Id: pretzel-latex.sty,v 1.4 1997/07/09 10:36:25 gaertner Exp $
%
% formatting macros for Latex_cweb_output class

% make the Logo available :-) (use \def in case it's already defined)
\def\pretzel{{Pretzel}}

\newcount\ind % counter for counting amount of indentation

\newenvironment{ppcode}{%       % output of prettyprinted text
  \catcode`\^^M=5               % take care that any \obeylines is ignored
  \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\pretzelindent{\advance\ind by1} % indent
\def\pretzeloutdent{\advance\ind by-1} % outdent
\def\pretzelopt#1{\hfil\penalty#10\hfilneg} % optional line break
\def\pretzelbackup{\hspace{-1em}} % backup one em
\def\pretzelbreakspace{\hfil\penalty-1\hfilneg\kern2.5em\ignorespaces} % breakspace
\def\pretzelforce{\par\noindent\kern\ind em} % forced line break
\def\pretzelbigforce{\pretzelforce\smallskip} % bigforce
\def\pretzelnoindent{\hskip-\ind em\hskip 2em} % no_indent

%
% $Log: pretzel-latex.sty,v $
% Revision 1.4  1997/07/09 10:36:25  gaertner
% use \def instead of \newcommand with \pretzel logo in case it's already
% defined.
%
% Revision 1.3  1997/07/09 08:36:19  gaertner
% Added Pretzel logo \pretzel to make it available in Texts.
%
% Revision 1.2  1996/12/03 17:44:26  gaertner
% Added documentation, handles obeylines, but still doesn't work
% with noweb.
%
% Revision 1.1  1995/09/05  15:09:18  gaertner
% Initial revision
%
%
