summaryrefslogtreecommitdiff
path: root/doc/ThornGuide
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-07-05 10:29:14 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-07-05 10:29:14 +0000
commit61aac7716e79ae69d0c2379b3238f59b48daf8f4 (patch)
tree8df1e55486f004e0042de5051c0f93667028c3a6 /doc/ThornGuide
parent1665566cf6575a7b1779212296a28cd2e916005e (diff)
Started to make it a 'proper' LaTeX2e package:
Using \CA@ as marker for internal definitions Declares a package name, date and version number Changed to using RequirePackage to laod in other packages Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2923 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/ThornGuide')
-rw-r--r--doc/ThornGuide/cactus.sty52
1 files changed, 41 insertions, 11 deletions
diff --git a/doc/ThornGuide/cactus.sty b/doc/ThornGuide/cactus.sty
index a8b6fba8..573acdc1 100644
--- a/doc/ThornGuide/cactus.sty
+++ b/doc/ThornGuide/cactus.sty
@@ -1,20 +1,46 @@
-\newif\ifpdf
+% @version $Header$
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\NeedsTeXFormat{LaTeX2e}
+
+\def\CA@styledate{\CA@getcvsdate $Date$}
+\def\CA@styleversion{\CA@getcvsversion $Revision$}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\CA@getcvsdate $Date${#1/#2/#3}
+\def\CA@getcvsversion $Revision${#1}
+
+\IfFileExists{../interface.ccl}
+{
+ \ProvidesPackage{../../../../doc/ThornGuide/cactus}[\CA@styledate \CA@styleversion]
+}
+{
+ \ProvidesPackage{cactus}[\CA@styledate \CA@styleversion]
+}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% Check if we are under pdftex
+\newif\ifCA@pdf
\ifx\pdfoutput\undefined
- \pdffalse % we are not running PDFLaTeX
+ \CA@pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=1 % we are running PDFLaTeX
- \pdftrue
+ \CA@pdftrue
+ % Add the pdftex option to a subsequent load of graphicx
+ \PassOptionsToPackage{pdftex}{graphicx}
\fi
-\ifpdf
-\usepackage[pdftex]{graphicx}
-\else
-\usepackage{graphicx}
-\fi
-\usepackage{latexsym}
-\usepackage{ifthen}
-\usepackage{calc}
+% Load in other packages.
+
+\RequirePackage{graphicx}
+\RequirePackage{latexsym}
+\RequirePackage{ifthen}
+\RequirePackage{calc}
\parskip = 2 pt
\oddsidemargin = 0 cm
@@ -45,3 +71,7 @@
{\renewcommand{\entrylabel}{\Lentrylabel}
\begin{entry}}
{\end{entry}}
+
+\endinput
+%%
+%% End of cactus.sty