summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/decorule
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-03 21:53:21 +0000
committerKarl Berry <karl@freefriends.org>2011-08-03 21:53:21 +0000
commitbb305fc850c6da980b0ccd591d872f4c3b4bb593 (patch)
tree08720958dc9602048bc40b657ae40a0c5262b814 /Master/texmf-dist/tex/latex/decorule
parent7252b5175de2dd829c568c26c5fa8cf33c23fa28 (diff)
decorule (3aug11)
git-svn-id: svn://tug.org/texlive/trunk@23388 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/decorule')
-rw-r--r--Master/texmf-dist/tex/latex/decorule/decorule.sty33
1 files changed, 26 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/decorule/decorule.sty b/Master/texmf-dist/tex/latex/decorule/decorule.sty
index 61c59eb9bc9..d0ce65ae1c8 100644
--- a/Master/texmf-dist/tex/latex/decorule/decorule.sty
+++ b/Master/texmf-dist/tex/latex/decorule/decorule.sty
@@ -11,7 +11,7 @@
%% decorule.dtx
%% Copyright © 2010-2011 by Peter Flynn <peter@silmaril.ie>
\NeedsTeXFormat{LaTeX2e}[2009/09/24]
-\ProvidesPackage{decorule}[2011/06/13 v0.22 The decorule LaTeX2e package]
+\ProvidesPackage{decorule}[2011/08/02 v0.6 The decorule LaTeX2e package]
\RequirePackage{graphicx}
\RequirePackage{fix-cm}
\newcounter{sym@min}
@@ -21,19 +21,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}{%
+\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{\c@sym@rotate}{\reflectbox{\hbox
+ \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
@@ -46,7 +47,7 @@
\divide\sym@raise by2
\raisebox{-\sym@raise}{%
\fontsize{\c@sym@max}{0}\selectfont
- \rotatebox{\c@sym@rotate}{\reflectbox{\hbox
+ \rotatebox{\thesym@rotate}{\reflectbox{\hbox
to\c@sym@max pt{\hss\sym@symbol\hss}}}}%
\loop
\setlength{\sym@skip}{\c@sym@size pt}%
@@ -57,7 +58,7 @@
\divide\sym@raise by2
\raisebox{-\sym@raise}{%
\fontsize{\c@sym@size}{0}\selectfont
- \rotatebox{\c@sym@rotate}{\reflectbox{\hbox
+ \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
@@ -70,9 +71,27 @@
\divide\sym@raise by2
\raisebox{-\sym@raise}{%
\fontsize{\c@sym@min}{0}\selectfont
- \rotatebox{\c@sym@rotate}{\reflectbox{\hbox
+ \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'.