%\iffalse -*- doctex -*- \fi % %% \RCS$Id: pmn-app.sty,v 1.4 2003/11/03 08:28:54 turtle Exp $ %% \RCS$Revision: 1.4 $ %% \RCS$Date: 2003/11/03 08:28:54 $ % %\iffalse metacomment %% (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-app.sty. % % To print the documentation (which for the moment is uninteresting) % remove (or comment out) the line % % \endinput % % occurring immediately after % % %<*documentation> % %\fi % % \CheckSum{10} % \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-app} package\thanks % {This file has CVS revision \RCSRevision, dated \RCSDate.}} % \author{Peter Møller Neergaard} % \maketitle % % \begin{abstract} % This package provides a command \cmd{\App} typesetting % applications with neat spacing. % \end{abstract} % % \section{Package identification} % % We identify ourselves. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{pmn-app}[2003/06/27 pmn-app] % \end{macrocode} % % \begin{macro}{\App}\mbox{} % \begin{macro}{\pmn@app@if@first} % \mcmd{\App}\marg{args} typesets \meta{args} (a comma-separated % list) with neat spacing. % \begin{macrocode} \makeatletter \def\App#1{{\let\pmn@app@if@first\@firstoftwo \ensuremath{% \@for\@arg:=#1\do{% \pmn@app@if@first{\let\pmn@app@if@first\@secondoftwo}{\:}\@arg% }% }}% } % \end{macrocode} % \cmd{\pmn@app@if@first} flags whether we are in the first argument % (no space in front) or the remainder. % \end{macro} ^^A\pmn@app@if@first % \end{macro} ^^A \App % \StopEventually{} % % And finally 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 % \end{macrocode} % We undefine \cmd{\RCS} before loading \package{pmn-ldoc} where it is % also defined: % \begin{macrocode} \documentclass{pmn-ldoc} \usepackage[latin1]{inputenc} \newcommand{\docdate}{2003/11/02} % \OnlyDescription % \DisableCrossrefs \begin{document} \DocInput{pmn-app.sty} \end{document} % % \end{macrocode} % \Finale \sloppy \PrintChanges