From: W. Trevor King Date: Thu, 14 Oct 2010 12:38:32 +0000 (-0400) Subject: Minor cleanups, copyright blurbs, and version bumps. X-Git-Url: http://git.tremily.us/?p=problempack.git;a=commitdiff_plain;h=cfa168f548ed19766c07e9583eb17f3f3402cab3 Minor cleanups, copyright blurbs, and version bumps. --- diff --git a/problempack.sty b/problempack.sty index 4a1f013..d9d374b 100644 --- a/problempack.sty +++ b/problempack.sty @@ -1,7 +1,6 @@ % problempack.sty, a package for generating problem/solution sets. -% Version 0.3 % -% Copyright (C) 2008-2009 W. Trevor King +% Copyright (C) 2008-2010 W. Trevor King % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by @@ -16,13 +15,12 @@ % You should have received a copy of the GNU General Public License along % with this program; if not, write to the Free Software Foundation, Inc., % 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -% -% + % see clsguide.pdf for a LaTeX package tutorial % see xkeyval.pdf for a 72 page spiel on xkeyval \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{problempack}[2008/04/02] +\ProvidesPackage{problempack}[2010/10/14 0.4 problempack] \RequirePackage{comment}% show/hide the solution sections \RequirePackage[pdftex]{hyperref} % pdf niceties & active links @@ -138,51 +136,10 @@ \hypersetup{pdfstartview=FitH} % zooming to fit the page width. \hypersetup{colorlinks} % don't do the ugly boxes around links -% You can safely delete/override of the following code without effecting the -% core problem/solution environment behavior. - +% setup a simple title \renewcommand{\maketitle}{% \begin{center} {\Large \Pr@blemClasstitle} \\ \Pr@blemSubheading \end{center} } - -%% include some useful goodies -\RequirePackage[pdftex]{graphicx} % to include images -%\DeclareGraphicsRule{*}{mps}{*}{} -%\RequirePackage{emp} % embed MetaPost pictures in LaTeX -% you need to add \begin{emp*}\end{emp*} by hand, because emp parser -% doesn't realize \end{EMP} might expand to \end{emp} or \end{empfile}. -%\newenvironment{EMP}[1]% -% {\begin{center}\begin{empfile}[problem#1]\begin{emp}(0,0)}% -% {\end{emp}\end{empfile}\end{center}} - - -%% define a few physics shortcuts -%\newcommand{\U}[1]{\text{ #1}} % units shortcut -%\newcommand{\E}[1]{\ensuremath{\cdot 10 ^{#1}}} % exponent shortcut -%\newcommand{\dg}{\ensuremath{^{\circ}}} % degree symbol ^o -%\newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} % make vectors bold -%\newcommand{\p}[3]{\left#1 #2 \right#3} % parenthesis, e.g. \p({complicated expr}) -% -%\newcommand{\ihat}{\vect{\hat{i}}} -%\newcommand{\jhat}{\vect{\hat{j}}} -%\newcommand{\khat}{\vect{\hat{k}}} -%\newcommand{\rhat}{\vect{\hat{r}}} - - -%% finally, set up some simple formatting. - -% fill the page -\topmargin -0.5in -\headheight 0.0in -\headsep 0.0in -\textheight 10in -\oddsidemargin -0.5in -\textwidth 7.5in -\pagestyle{empty} % no room for page numbers - -% struts for table spacing -%\newcommand{\Tstrut}{\rule{0pt}{2.6ex}} -%\newcommand{\Bstrut}{\rule[-1.2ex]{0pt}{0pt}} diff --git a/wtk_cmmds.sty b/wtk_cmmds.sty index 237bbc9..a89e70f 100644 --- a/wtk_cmmds.sty +++ b/wtk_cmmds.sty @@ -1,11 +1,28 @@ -% Assorted macros useful to W. Trevor King (mostly for physics) +% wtk_cmmds.sty, assorted macros useful to W. Trevor King (mostly for physics) % -% Released to the public domain. +% Copyright (C) 2009-2010 W. Trevor King +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License along +% with this program; if not, write to the Free Software Foundation, Inc., +% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{wtk_cmmds}[2010/10/14 0.2 wtk_cmmds] \RequirePackage{relsize} % for \smaller \RequirePackage{amsmath} % for \text{} -% Author, Copyright junk +% Author, Copyright stuff \newcommand{\copytitle}{ \begin{center} Copyright \copyright\ \today\ by W.\ Trevor King\\ @@ -18,6 +35,7 @@ \newtheorem{cor}[thm]{Corollary} \newtheorem{lem}{Lemma} +% define a few physics shortcuts \newcommand{\U}[1]{\text{ #1}} % units shortcut \newcommand{\E}[1]{\ensuremath{\cdot 10 ^{#1}}} % exponent shortcut \newcommand{\dg}{\ensuremath{^{\circ}}} % degree symbol ^o diff --git a/wtk_format.sty b/wtk_format.sty index 1d07d1a..140f5a9 100644 --- a/wtk_format.sty +++ b/wtk_format.sty @@ -1,10 +1,29 @@ -% general layout for the document (use most of the page). +% wtk_format.sty, a package for using more of a letter-sized page. % -% Released to the public domain. +% Copyright (C) 2009-2010 W. Trevor King +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 2 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License along +% with this program; if not, write to the Free Software Foundation, Inc., +% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{wtk_format}[2010/10/14 0.2 wtk_format] +% fill the page \topmargin -0.5in \headheight 0.0in \headsep 0.0in -\textheight 9.5in % leave a bit of extra room for page numbers +\textheight 10in \oddsidemargin -0.5in \textwidth 7.5in +\pagestyle{empty} % no room for page numbers