summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/papermas
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-10 16:39:46 +0000
committerKarl Berry <karl@freefriends.org>2010-07-10 16:39:46 +0000
commiteeae784fdecdd4ccedb0777815d18be0bae05eab (patch)
tree97a37f016d387c3453cca76983432a50c6486a17 /Master/texmf-dist/tex/latex/papermas
parentb97a72ab6d7c6317a517a3472c04d8c0e0b4a5fd (diff)
papermas update (1jul10)
git-svn-id: svn://tug.org/texlive/trunk@19351 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/papermas')
-rw-r--r--Master/texmf-dist/tex/latex/papermas/papermas.sty15
1 files changed, 9 insertions, 6 deletions
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}%