From eeae784fdecdd4ccedb0777815d18be0bae05eab Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 10 Jul 2010 16:39:46 +0000 Subject: papermas update (1jul10) git-svn-id: svn://tug.org/texlive/trunk@19351 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/papermas/papermas.sty | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/papermas/papermas.sty b/Master/texmf-dist/tex/latex/papermas/papermas.sty index 391052311fc..2d7b0f514a9 100644 --- a/Master/texmf-dist/tex/latex/papermas/papermas.sty +++ b/Master/texmf-dist/tex/latex/papermas/papermas.sty @@ -37,13 +37,13 @@ %% papermas-example.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{papermas}[2010/06/03 v1.0b +\ProvidesPackage{papermas}[2010/06/24 v1.0c Computes paper mass of a printout (HMM)]% %% Allows to compute the number of sheets of paper %% needed to print a document as well as the %% mass of that printed version of the document, -%% usefull e. g. when sending it by mail to determine the postage. +%% useful e. g. when sending it by mail to determine the postage. %% Warning/Disclaimer: Mass of (printer's) ink has to be added %% (and that of envelope, address sticker, stamps,...)! %% So, this is only an estimation without guarantee - @@ -52,7 +52,7 @@ %% "base to the power of exponent" inside TeX. \RequirePackage{kvoptions}[2010/02/22]% v3.7 -\RequirePackage{pagesLTS}[2010/06/03]% v1.1b +\RequirePackage{pagesLTS}[2010/06/24]% v1.1c %% papermas may work with earlier versions of those packages, %% but this was not tested. Please consider updating your packages %% to the most recent version (if they are not already the most @@ -65,6 +65,9 @@ % default: 80 (g/(m^2)) \DeclareStringOption[2]{pagespersheet}[2]% number of pages per sheet, % for duplex printing this is 2. +\DeclareStringOption[.]{decimalsep}[.]% decimal separator, + % e. g. "." or ",": decimalsep={,} - brackets are needed!!! + % decimalsep={,\,} does not work for screen, aux, log output! \ProcessKeyvalOptions* @@ -146,7 +149,7 @@ \PackageError{papermas}{% The number of pages per sheet must be positive.}{% You cannot print less than one TeX page per sheet of paper.\MessageBreak% - The value found was \papermas@pagespersheet .\ \MessageBreak% + The value found was \papermas@pagespersheet .\MessageBreak% } \else \newcounter{papermas@sheets} @@ -161,7 +164,7 @@ \addtocounter{papermas@sheets}{1}% \fi \multiply \value{papermasmasss} \value{papermas@sheets} - % default: 8000 + % default: 8000 (no default for this) \papermas@powerof{2}{\value{papermasA}} \divide \value{papermasmasss} by \value{papermas@result} % default: 16000 / 2^(\value{papermasA}) @@ -190,7 +193,7 @@ \setcounter{papermas@tmpp}{0}% m:290 n:20 o:3 p:0 q:7 \fi \fi - \edef\papermastmpr{\arabic{papermas@tmpo}.\arabic{papermas@tmpp}}% + \edef\papermastmpr{\arabic{papermas@tmpo}\papermas@decimalsep\arabic{papermas@tmpp}}% \edef\papermastmpformat{\papermas@format}% \edef\papermastmpmasss{\papermas@masss}% \edef\papermastmppagespersheet{\papermas@pagespersheet}% -- cgit v1.2.3