diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-24 22:30:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-24 22:30:07 +0000 |
commit | c52f027c13ec66d348548a8fc0508a69f3e6d86e (patch) | |
tree | 3316d9aad881e7d98f4292081aa96d17d2e87bd9 /Master/texmf-dist/tex/latex/ean13isbn | |
parent | 331851c24408f471980c330a0f7a5676f5a62991 (diff) |
ean13isbn (24jan21)
git-svn-id: svn://tug.org/texlive/trunk@57514 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ean13isbn')
-rw-r--r-- | Master/texmf-dist/tex/latex/ean13isbn/ean13isbn.sty | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/ean13isbn/ean13isbn.sty b/Master/texmf-dist/tex/latex/ean13isbn/ean13isbn.sty index d55517db90d..821ac862dc1 100644 --- a/Master/texmf-dist/tex/latex/ean13isbn/ean13isbn.sty +++ b/Master/texmf-dist/tex/latex/ean13isbn/ean13isbn.sty @@ -1,7 +1,7 @@ -\ProvidesPackage{ean13isbn}[2008/06/20 EAN13 with ISBN] -\PackageInfo{ean13isbn}{$Id: ean13isbn.sty 208 2008-06-19 23:25:37Z zw $\@gobble} +\ProvidesPackage{ean13isbn}[2021/01/24 EAN13 with ISBN] +\PackageInfo{ean13isbn}{$Id: ean13isbn.sty 550 2021-01-23 23:47:58Z zw $\@gobble} -%% Copyright 2008 Z. Wagner, http://icebearsoft.euweb.cz +%% Copyright 2008, 2021 Z. Wagner, http://icebearsoft.euweb.cz % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -77,6 +77,7 @@ \zw@mubytein \newdimen\zw@isbnfsize +\newbox\zw@test@box \def\zw@eansetup@params{\X\zw@xm \font\ocrb ocrb9 scaled \zw@scale @@ -88,7 +89,11 @@ \def\zw@next##1##2##3##4.{\zw@isbnfsize ##1.##2##3##4\zw@isbnfsize} \expandafter\zw@next\zw@scale. \fi - \def\zw@isbnfont{\usefont{OT1}{phv}{mc}{n}\fontsize{\zw@isbnfsize}{\zw@isbnfsize}\selectfont}} + \def\zw@isbnfont{\usefont{OT1}{phv}{c}{n}\fontsize{\zw@isbnfsize}{\zw@isbnfsize}\selectfont} + \setbox\zw@test@box=\hbox{\zw@isbnfont0}% + \ifdim\wd\zw@test@box>.65\ht\zw@test@box + \def\zw@isbnfont{\usefont{OT1}{phv}{mc}{n}\fontsize{\zw@isbnfsize}{\zw@isbnfsize}\selectfont} + \fi} \zw@eansetup@params \def\zw@EANisbn{\def\ISBNnum{\let\ocrbsmall\relax |