From 434dd0d9b3688b06009db0f89cb1e9b6ac058cbb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 11 Apr 2012 21:40:54 -0400 Subject: [PATCH] Add \floor operator to wtk_cmmds.sty and bump it to v0.3. --- wtk_cmmds.sty | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wtk_cmmds.sty b/wtk_cmmds.sty index 07b65c4..3d959e9 100644 --- a/wtk_cmmds.sty +++ b/wtk_cmmds.sty @@ -1,6 +1,6 @@ % wtk_cmmds.sty, assorted macros useful to W. Trevor King (mostly for physics) % -% Copyright (C) 2009-2010 W. Trevor King +% Copyright (C) 2009-2012 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 @@ -17,7 +17,7 @@ % 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{} @@ -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}}}} +% 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} -- 2.26.2