From 41f6accf239ea62e4f979c592c6728a616245d9f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 13 Jan 2006 00:05:53 +0000
Subject: sauerj

git-svn-id: svn://tug.org/texlive/trunk@1291 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/sauerj/metainfo.sty | 238 ++++++++++++++++++++++++
 1 file changed, 238 insertions(+)
 create mode 100644 Master/texmf-dist/tex/latex/sauerj/metainfo.sty

(limited to 'Master/texmf-dist/tex/latex/sauerj/metainfo.sty')

diff --git a/Master/texmf-dist/tex/latex/sauerj/metainfo.sty b/Master/texmf-dist/tex/latex/sauerj/metainfo.sty
new file mode 100644
index 00000000000..3f5bb20ed1e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/sauerj/metainfo.sty
@@ -0,0 +1,238 @@
+%%
+%% This is file `metainfo.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% metainfo.dtx  (with options: `package')
+%% 
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{metainfo}
+   [2004/11/25 v0.9.1 typeset document metainfo]
+\newcommand{\typesetmetainfo}[1]{%
+\bgroup%
+\mi@activenewline%
+\mi@emptyactivepercent%
+\mi@otherbraces%
+\ifmi@indexmacros\mi@activehat\fi%
+\let\mi@old@verbatim\@verbatim%
+\def\@verbatim{%
+\mi@old@verbatim%
+\mi@verbatimnewline%
+}%
+\expandafter\mi@skiplines\@@input#1\relax%
+\egroup%
+}
+\def\mi@@MIbeginnings{\chapter\section\subsection\subsubsection}
+\def\mi@@firstlocalMItext{\textbf{Annotations:}\par\noindent}
+\def\mi@@lastlocalMItext{}
+\def\mi@@everylocalMItext{}
+\DeclareOption{compactheadings}{%
+\@ifundefined{thechapter}{}{%
+\def\chapter{\@startsection{chapter}{0}{\z@}{-2\baselineskip}%
+{\baselineskip}{\normalfont\normalsize\bfseries}}%
+}%
+\def\section{\@startsection{section}{1}{\z@}{-2\baselineskip}%
+{\baselineskip}{\normalfont\normalsize\bfseries}}%
+\def\subsection{\@startsection{subsection}{2}{\z@}{-2\baselineskip}%
+{\baselineskip}{\normalfont\normalsize\bfseries}}%
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+{-2\baselineskip}{\baselineskip}%
+{\normalfont\normalsize\bfseries}}%
+}
+\newif\ifmi@indexmacros
+\mi@indexmacrosfalse
+\DeclareOption{indexshorthand}{%
+\mi@indexmacrostrue%
+\let\mi@@@hat^%
+\def\mi@hat{%
+\ifmmode%
+\expandafter\mi@@@hat%
+\else%
+\expandafter\futurelet\expandafter\@tempa\expandafter\mi@hat@%
+\fi%
+}
+\def\mi@hat@{%
+\ifx\@tempa\mi@hat%
+\expandafter\mi@hat@twohats%
+\else\ifx\@tempa\bgroup%
+\expandafter\expandafter\expandafter\mi@indextypeset%
+\else%
+\mi@hat@errbrace%
+\fi\fi%
+}
+\def\mi@hat@twohats#1{%
+\futurelet\@tempa\mi@hat@twohats@%
+}
+\def\mi@hat@twohats@{%
+\ifx\@tempa\bgroup%
+\expandafter\index%
+\else%
+\mi@hat@errbrace%
+\fi%
+}
+\def\mi@indextypeset#1{%
+#1\index{#1}%
+}
+\def\mi@hat@errbrace{%
+\PackageError{metainfo}{`\string^' or `\string^\string^' not %
+followed by a left brace}\@ehc%
+}
+}
+\DeclareOption{listlocalmetainfo}{%
+\def\mi@@firstlocalMItext{%
+\begin{itemize}%
+}%
+\def\mi@@lastlocalMItext{%
+\end{itemize}%
+}%
+\def\mi@@everylocalMItext{%
+\item\relax%
+}%
+}
+\ProcessOptions\relax
+\newif\ifmi@firstlocalMI
+\mi@firstlocalMItrue
+\def\mi@skiplines#1{%
+\ifx#1\mi@percentempty%
+\expandafter\mi@checkbeginlocalMI%
+\else\ifcat\noexpand#1\relax%
+\expandafter\expandafter\expandafter\mi@checkbeginMI%
+\else%
+\expandafter\expandafter\expandafter\mi@gobbletolineend%
+\fi\fi%
+#1%
+}
+\bgroup
+\catcode`\^^M=\active%
+\gdef\mi@typesetMI{%
+\mi@normalbraces%
+\let^^M\mi@typesetMI@checkend%
+\ignorespaces%
+}
+\long\gdef\mi@typesetMI@checkend#1{%
+\ifx#1\mi@percentempty%
+\expandafter\mi@typesetMI@checkend@%
+\else%
+\mi@otherbraces%
+\let^^M\@empty%
+\expandafter\mi@skiplines\expandafter#1%
+\fi%
+}
+\long\gdef\mi@typesetMI@checkend@#1{%
+\ifx#1\mi@typesetMI@checkend%
+\par\expandafter\mi@typesetMI@checkend%
+\else%
+\space%
+\expandafter#1%
+\fi%
+}
+\gdef\mi@checkbeginMI#1{%
+\ifx#1\end%
+\expandafter\mi@checkdocumentend%
+\else%
+\def\@tempa##1#1##2\@nil{\mi@checkbeginMI@{##2}#1}%
+\expandafter\expandafter\expandafter\@tempa%
+\expandafter\mi@@MIbeginnings\expandafter#1%
+\expandafter\@nil%
+\fi%
+}
+\gdef\mi@checkbeginMI@#1#2{%
+\ifx^^M#1^^M%
+\expandafter\mi@gobbletolineend%
+\else%
+\ifmi@firstlocalMI\else\mi@@lastlocalMItext\fi%
+\let^^M\mi@checkbeginMI@@%
+\mi@normalbraces%
+\mi@normalpercent%
+\mi@firstlocalMItrue%
+\expandafter#2%
+\fi%
+}
+\gdef\mi@checkbeginMI@@{%
+\let^^M\@empty%
+\mi@otherbraces%
+\mi@emptyactivepercent%
+\mi@checkbeginMI@@@%
+}
+\egroup
+\def\mi@checkbeginMI@@@#1{%
+\ifx#1\mi@percentempty%
+\par%
+\expandafter\mi@typesetMI%
+\else%
+\expandafter\mi@skiplines\expandafter#1%
+\fi%
+}
+\def\mi@checkbeginlocalMI#1#2{%
+\ifx#2\mi@percentempty%
+\par%
+\ifmi@firstlocalMI\mi@@firstlocalMItext\fi%
+\mi@@everylocalMItext%
+\mi@firstlocalMIfalse%
+\expandafter\mi@typesetMI%
+\else%
+\expandafter\mi@gobbletolineend\expandafter#2%
+\fi%
+}
+\def\mi@checkdocumentend{%
+\mi@normalbraces%
+\mi@checkdocumentend@%
+}
+\def\mi@checkdocumentend@#1{%
+\def\@tempa{#1}%
+\ifx\@tempa\mi@textdocument%
+\ifmi@firstlocalMI\else\mi@@lastlocalMItext\fi%
+\expandafter\mi@gobbletolineend@any\expandafter\endinput%
+\else%
+\mi@otherbraces%
+\expandafter\mi@skiplines%
+\fi%
+}
+\def\mi@textdocument{document}
+\def\mi@percentempty{\@empty}
+\bgroup
+\catcode`\^^M=\active%
+\gdef\mi@gobbletolineend{%
+\mi@gobbletolineend@any\mi@skiplines%
+}
+\long\gdef\mi@gobbletolineend@any#1#2^^M{%
+#1%
+}
+\egroup
+\bgroup
+\catcode`\|=14 %
+\catcode`\^^M=\active%
+\catcode`\%=\active|
+\gdef\mi@activenewline{|
+\catcode`\^^M=\active|
+\let^^M\@empty|
+}|
+\gdef\mi@verbatimnewline{|
+\catcode`\^^M=\active|
+\def^^M{\par\@gobbletwo}|
+}|
+\gdef\mi@emptyactivepercent{|
+\catcode`\%=\active|
+\let%\mi@percentempty|
+}|
+\catcode`\^=\active|
+\gdef\mi@activehat{|
+\catcode`\^\active|
+\let^\mi@hat|
+}|
+\egroup
+\def\mi@normalpercent{%
+\catcode`\%=14 %
+}
+\def\mi@otherbraces{%
+\catcode`\{=12 %
+\catcode`\}=12 %
+}
+\def\mi@normalbraces{%
+\catcode`\{=1 %
+\catcode`\}=2 %
+}
+\endinput
+%%
+%% End of file `metainfo.sty'.
-- 
cgit v1.2.3

