%\iffalse -*- doctex -*- \fi % %% \RCS$Id: pmn-note.sty,v 1.8 2004/08/27 23:47:17 turtle Exp $ %% \RCS$Revision: 1.8 $ %% \RCS$Date: 2004/08/27 23:47:17 $ % %\iffalse metacomment % -*- latex-mode -*- %% $Id: pmn-note.sty,v 1.8 2004/08/27 23:47:17 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-note.sty. % % To print the documentation (which for the moment is uninteresting) % remove (or comment out) the line % % \endinput % % occurring immediately after % % %<*documentation> % %\fi % % \CheckSum{21} % \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 \~} % % \title{The \package{pmn-note} package\thanks % {This file has CVS revision \RCSRevision, dated \RCSDate.}} % \author{Peter Møller Neergaard} % \maketitle % % \begin{abstract} % This package provides more highlighted notes with the % \package{fixme} package. If you want to load \pakcage{fixme} with % specific options you should load it before \package{pmn-note}. % \end{abstract} % % \section{Package identification} % % We identify ourselves. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{pmn-note}[2004/01/21 PMN note] % \end{macrocode} % Load the \package{fixme} package to provide notes. % \begin{macrocode} \@ifpackageloaded{fixme}{}% {\RequirePackage[user,nomargin]{fixme}} % \end{macrocode} % \changes{}{2004/01/22}{relying on fixme package} % \changes{}{2004/08/25}{only loading fixme if not already loaded} % % \begin{macro}{\FXUser} % Defining a user command for \package{fixme}. % \begin{macrocode} \newlength{\@fboxwidth} \newcommand{\FXUser}[2]{% \@fboxwidth=\linewidth \advance\@fboxwidth-2\fboxsep \advance\@fboxwidth-2\fboxrule \par\noindent\fbox{\parbox{\@fboxwidth}{\textbf{#1:} #2}}} % \changes{}{2004/01/22}{added computation of width to avoid overfull boxes.} % \end{macrocode} % \end{macro} ^^A \FXUser % % \begin{macro}{\note} % \mcmd{\note}\marg{stuff} makes a framed box with \meta{stuff}. % \begin{macrocode} \let\note\fxnote % \end{macrocode} % \changes{}{2004/01/22}{changed to be an alias for \package{fixme}'s note} % \end{macro} ^^A \note % \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 % \end{macrocode} % First we have to undefine the \cmd{\appendix}, \cmd{\maketitle}, and % \cmd{\newblock} % which has been defined above. % \begin{macrocode} \makeatletter \let\appendix\@undefined \let\maketitle\@undefined \let\newblock\@undefined \makeatother % \end{macrocode} % Then we can start a real document preamble. % \begin{macrocode} \documentclass{pmn-ldoc} \newcommand{\docdate}{2003/11/02} \usepackage[latin1]{inputenc} % \OnlyDescription % \DisableCrossrefs \begin{document} \DocInput{pmn-note.sty} \end{document} % % \end{macrocode} % \Finale \sloppy \PrintChanges