%\iffalse -*- doctex -*- \fi % %% \RCS$Id: pmn-grph.sty,v 1.1 2003/11/09 10:45:08 turtle Exp $ %% \RCS$Revision: 1.1 $ %% \RCS$Date: 2003/11/09 10:45:08 $ % %\iffalse metacomment % -*- latex-mode -*- % % $Id: pmn-grph.sty,v 1.1 2003/11/09 10:45:08 turtle Exp $ % % (C) 2003 Peter Møller Neergaard %% %% This program may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.2 %% 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.2 or later is part of all distributions of LaTeX %% version 1999/12/01 or later. % % This program consists of the file pmn-grph.sty. % % To print the documentation (which for the moment is uninteresting) % remove (or comment out) the line % % \endinput % % occurring immediately after % % %<*documentation> % %\fi % % \CheckSum{11} % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z % Digits \0\1\2\3\4\5\6\7\8\9 % Exclamation \! Double quote \" Hash (number) \# % Dollar \$ Percent \% Ampersand \& % Acute accent \' Left paren \( Right paren \) % Asterisk \* Plus \+ Comma \, % Minus \- Point \. Solidus \/ % Colon \: Semicolon \; Less than \< % Equals \= Greater than \> Question mark \? % Commercial at \@ Left bracket \[ Backslash \\ % Right bracket \] Circumflex \^ Underscore \_ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % % \MakeShortVerb{\"} % % \title{The \package{pmn-grph} package\thanks % {This file has CVS revision \RCSRevision, dated \RCSDate.}} % \author{Peter Møller Neergaard} % \maketitle % % \begin{abstract} % Extends the \package{graphics}-driver with an easy test to know % which driver we are using. % \end{abstract} % % \section{Package identification} % % We identify ourselves. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{pmn-grph}[2003/11/08 PMN graphics extensions] \RequirePackage{graphicx} % \end{macrocode} % % We define a command to typeset RCS tags % \begin{macro}{\IfPdftexDriver} % \begin{macro}{\IfDvipsDriver} % \cmd{\ifpdftex}\marg{consequent}\marg{alternate} and % \cmd{\ifdvips}\marg{consequent} choose between \meta{consequent} % and \meta{alternative} based on the \package{graphics}-driver. % % We first make sure that we do not conflict with other packages % \begin{macrocode} \makeatletter \newcommand{\IfPdftexDriver}{} \newcommand{\IfDvipsDriver}{} % \end{macrocode} % and then we start define the "\if"-commands. \package{graphics} % stores the driver name in \cmd{\Gin@driver} so we compare with % that. The "\if"-commands are \LaTeX-style and thus take two % arguments and drop the one it does not need. % \begin{macrocode} \let\IfPdftexDriver\@secondoftwo \let\IfDvipsDriver\@secondoftwo \def\reserved@a{pdftex.def} \ifx\reserved@a\Gin@driver \let\IfPdftexDriver\@firstoftwo \fi \def\reserved@a{dvips.def} \ifx\reserved@a\Gin@driver \let\IfDvipsDriver\@firstoftwo \fi % \end{macrocode} % \end{macro} ^^A \ifDvipsDriver % \end{macro} ^^A \ifPdftexDriver % \StopEventually{} % % And the commands to typeset the documentation. All enclosed in % "<*documentation>"$\ldots$"" so we exclude it if we % ever make a docstrip file. For now, we simply stop input with % \cmd{\endinput} so the file can be used directly as a package file. % \begin{macrocode} %<*documentation> \endinput \makeatother \documentclass{pmn-ldoc} \newcommand{\docdate}{2003/11/02} \usepackage[latin1]{inputenc} % \OnlyDescription % \DisableCrossrefs \begin{document} \DocInput{pmn-grph.sty} \end{document} % % \end{macrocode} % \Finale \sloppy \PrintChanges