%%
%% This is file `decorule.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% decorule.dtx  (with options: `package')
%% This file was generated from an XML master source.
%% Amendments and corrections should be notified to the maintiner
%% for inclusion in future versions.
%% decorule.dtx
%% Copyright © 2010-2011 by Peter Flynn <peter@silmaril.ie>
\NeedsTeXFormat{LaTeX2e}[2009/09/24]
\ProvidesPackage{decorule}[2011/08/02 v0.6 The decorule LaTeX2e package]
\RequirePackage{graphicx}
\RequirePackage{fix-cm}
\newcounter{sym@min}
\setcounter{sym@min}{1}
\newcounter{sym@max}
\setcounter{sym@max}{20}
\newcounter{sym@step}
\setcounter{sym@step}{1}
\newcounter{sym@rotate}
\renewcommand*{\thesym@rotate}{\the\c@sym@rotate}%
\setcounter{sym@rotate}{45}
\newcounter{sym@size}
\newlength{\sym@raise}
\newlength{\sym@skip}
\newcommand{\sym@symbol}{$\sim$}
\newcommand{\decorule}{\par\begingroup\centering
\setcounter{sym@size}{\c@sym@min}
\loop
\setlength{\sym@raise}{\c@sym@size pt}%
    \divide\sym@raise by2
\raisebox{-\sym@raise}{%
      \fontsize{\c@sym@size}{0}\selectfont
      \rotatebox{\thesym@rotate}{\reflectbox{\hbox
          to\c@sym@size pt{\hss\sym@symbol\hss}}}}%
\setlength{\sym@skip}{\c@sym@size pt}%
    \divide\sym@skip by3
    \multiply\sym@skip by2
    \kern-\sym@skip
\addtocounter{sym@size}{\c@sym@step}%
    \ifnum\c@sym@size<\c@sym@max
  \repeat
\setlength{\sym@raise}{\c@sym@max pt}%
  \divide\sym@raise by2
  \raisebox{-\sym@raise}{%
    \fontsize{\c@sym@max}{0}\selectfont
    \rotatebox{\thesym@rotate}{\reflectbox{\hbox
        to\c@sym@max pt{\hss\sym@symbol\hss}}}}%
\loop
    \setlength{\sym@skip}{\c@sym@size pt}%
    \divide\sym@skip by3
    \multiply\sym@skip by2
    \kern-\sym@skip
    \setlength{\sym@raise}{\c@sym@size pt}%
    \divide\sym@raise by2
    \raisebox{-\sym@raise}{%
    \fontsize{\c@sym@size}{0}\selectfont
    \rotatebox{\thesym@rotate}{\reflectbox{\hbox
        to\c@sym@size pt{\hss\sym@symbol\hss}}}}%
    \addtocounter{sym@size}{-\c@sym@step}%
    \ifnum\c@sym@size>\c@sym@min
  \repeat
\setlength{\sym@skip}{\c@sym@min pt}%
  \divide\sym@skip by3
  \multiply\sym@skip by2
  \kern-\sym@skip
  \setlength{\sym@raise}{\c@sym@min pt}%
  \divide\sym@raise by2
  \raisebox{-\sym@raise}{%
  \fontsize{\c@sym@min}{0}\selectfont
  \rotatebox{\thesym@rotate}{\reflectbox{\hbox
        to\c@sym@min pt{\hss\sym@symbol\hss}}}}%
\par\endgroup}
%%% pig.dtx
%%% Copyright 2005 M. Y. Name
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is M. Y. Name.
%%
%% This work consists of the files pig.dtx and pig.ins
%% and the derived file pig.sty.
%% This work consists of all files listed in manifest.txt.
\endinput
%%
%% End of file `decorule.sty'.
