From e90bad0d494ecd43a4f81c50efbabf7bc04887d7 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 18 Aug 2006 23:28:12 +0000
Subject: stellenbosch 4.0 (17aug06)

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

(limited to 'Master/texmf-dist/tex/latex/stellenbosch/ussummary.sty')

diff --git a/Master/texmf-dist/tex/latex/stellenbosch/ussummary.sty b/Master/texmf-dist/tex/latex/stellenbosch/ussummary.sty
new file mode 100644
index 00000000000..14f2226e81a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/stellenbosch/ussummary.sty
@@ -0,0 +1,111 @@
+%%
+%% This is file `ussummary.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ussummary.dtx  (with options: `pkg')
+%% 
+%% -------------------------------------------------------------------
+%%         University of Stellenbosch Thesis Extras Packages
+%%                Summary Page for Mech Eng Reports
+%% -------------------------------------------------------------------
+%% 
+%% Author: Danie Els
+%% 
+%%         Copyright (C) 2005-2006 Danie Els
+%%         All rights reserved.
+%% 
+%% 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
+%% 2003/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status "maintained".
+%% This Current Maintainer of this work is Danie Els (dnjels@sun.ac.za)
+%% -------------------------------------------------------------------
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackage{ussummary}[2006/03/08
+                            v1.0a
+                            Stellenbosh Mech Eng Summary page (DNJ ELS)]
+\RequirePackage{calc}
+\RequirePackage{array}
+\RequirePackage{longtable}
+\RequirePackage{colortbl}
+   %\let\CT@cell@color\relax
+\providecommand*{\phantomsection}{}
+\@ifundefined{US@AFRstr}%
+   {\edef\US@AFRstr{\string afrikaans}}%
+   {}
+\providecommand{\AorE}[2]{%
+   \ifx\US@AFRstr\languagename #1\else #2\fi}
+\newcommand*{\USS@HeadFnt}{\sffamily\bfseries}
+\newcommand*{\SumHeadFnt}[1]{\def\USS@HeadFnt{#1}}
+\newlength{\USS@tdima}
+\newlength{\USS@tdimb}
+\newenvironment{USS@AdjustWidth}[2]{%
+   \begin{list}{}{%
+      \setlength{\topsep}{0pt}%
+      \setlength{\partopsep}{0pt}%
+      \setlength{\leftmargin}{#1}%
+      \setlength{\rightmargin}{#2}%
+      \setlength{\listparindent}{\parindent}%
+      \setlength{\itemindent}{\parindent}%
+      \setlength{\parsep}{\parskip}%
+      }%
+   \item[]}{\end{list}}
+\newenvironment{USS@SetMargins}[2]%
+  {\setlength{\USS@tdima}{-1in-\hoffset-\oddsidemargin}%
+   \setlength{\USS@tdimb}{-\USS@tdima}%
+   \addtolength{\USS@tdima}{#1}%
+   \addtolength{\USS@tdimb}{-\paperwidth+\textwidth+#2}%
+   \begin{USS@AdjustWidth}{\USS@tdima}{\USS@tdimb}}%
+  {\end{USS@AdjustWidth}}
+\newenvironment{Summary}[2][\USS@default]
+   {\def\USS@default{#2}%
+    \clearpage
+    \setlength{\USS@tdima}{15mm - 1in-\voffset-\topmargin-\headheight-\headsep-\topskip}%
+    \vspace*{\USS@tdima}%
+    \thispagestyle{plain}%
+    \phantomsection
+    \@ifundefined{chapter}
+       {\addcontentsline{toc}{section}{#1}}%
+       {\addcontentsline{toc}{chapter}{#1}}%
+    \markboth{#2}{#2}%
+    \begin{USS@SetMargins}{25mm}{25mm}
+       {\centering\large\USS@HeadFnt\MakeUppercase{#2}\par}
+       \bigskip}
+   {\end{USS@SetMargins}}
+\newenvironment{SumTable}
+   {\setlength\LTleft{\leftmargin}%
+    \setlength\LTright{\fill}%
+    \renewcommand{\arraystretch}{1.25}%
+    \small
+    \begin{longtable}{|p{\linewidth-2\tabcolsep-.8pt}|}}%
+   {\end{longtable}}
+\newcommand{\SumHead}[1]{%<-- Heading for summary
+    \multicolumn{1}
+       {|>{\USS@HeadFnt\columncolor[gray]{.8}}c|}%
+       {#1}}
+\newcommand\SumSignatures{%
+    \noindent
+    \begin{minipage}[t]{3cm}
+        \hrulefill\\
+        \centering\AorE{Student}{Student}
+    \end{minipage}
+    \hfill
+    \begin{minipage}[t]{3cm}
+        \hrulefill\\
+        \centering\AorE{Datum}{Date}
+    \end{minipage}
+    \hfill
+    \begin{minipage}[t]{3cm}
+        \hrulefill\\
+        \centering\AorE{Dosent}{Lecturer}
+    \end{minipage}
+    \par}
+\endinput
+%%
+%% End of file `ussummary.sty'.
-- 
cgit v1.2.3

