Add \floor operator to wtk_cmmds.sty and bump it to v0.3.
authorW. Trevor King <wking@drexel.edu>
Thu, 12 Apr 2012 01:40:54 +0000 (21:40 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 12 Apr 2012 01:45:10 +0000 (21:45 -0400)
wtk_cmmds.sty

index 07b65c4007e25e0e4ed1909edff14cbd78db401e..3d959e9cefe7a2daa6dae4218d1f0db2187ac1cf 100644 (file)
@@ -1,6 +1,6 @@
 % wtk_cmmds.sty, assorted macros useful to W. Trevor King (mostly for physics)
 %
 % wtk_cmmds.sty, assorted macros useful to W. Trevor King (mostly for physics)
 %
-% Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu>
+% Copyright (C) 2009-2012 W. Trevor King <wking@drexel.edu>
 %
 % 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
 %
 % 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
@@ -17,7 +17,7 @@
 % 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 \NeedsTeXFormat{LaTeX2e}
 % 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{wtk_cmmds}[2010/10/14 0.2 wtk_cmmds]
+\ProvidesPackage{wtk_cmmds}[2012/04/11 0.3 wtk_cmmds]
 
 \RequirePackage{relsize} % for \smaller
 \RequirePackage{amsmath} % for \text{}
 
 \RequirePackage{relsize} % for \smaller
 \RequirePackage{amsmath} % for \text{}
@@ -66,6 +66,9 @@
 % #1th order partial derivative of #3 with respect to #2
 \newcommand{\npderiv}[3]{\ensuremath{\frac{\partial^{#1}{#3}}{\partial{#2}^{#1}}}}
 
 % #1th order partial derivative of #3 with respect to #2
 \newcommand{\npderiv}[3]{\ensuremath{\frac{\partial^{#1}{#3}}{\partial{#2}^{#1}}}}
 
+% floor operator, for example \floor(2.7) = 2.
+\newcommand{\floor}{\operatorname{floor}}
+
 % parenthesis, for example (some stuff] would be \p({some stuff}]
 \newcommand{\p}[3]{\left#1 #2 \right#3}
 
 % parenthesis, for example (some stuff] would be \p({some stuff}]
 \newcommand{\p}[3]{\left#1 #2 \right#3}