summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cmap/cmap.sty
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-08 13:13:02 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-08 13:13:02 +0000
commit3f5477b87d3d1d055a99f5e556f3560956bdc5f8 (patch)
treef038b7271064abdc098ca97e1327e0b526d36030 /Master/texmf-dist/tex/latex/cmap/cmap.sty
parentf428234daf35dd48a2fbc1867f1611210dc801a7 (diff)
cmap v1.0h 2008/03/06
git-svn-id: svn://tug.org/texlive/trunk@9363 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cmap/cmap.sty')
-rw-r--r--Master/texmf-dist/tex/latex/cmap/cmap.sty30
1 files changed, 14 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/cmap/cmap.sty b/Master/texmf-dist/tex/latex/cmap/cmap.sty
index 3dd539cdb27..87a0361d20b 100644
--- a/Master/texmf-dist/tex/latex/cmap/cmap.sty
+++ b/Master/texmf-dist/tex/latex/cmap/cmap.sty
@@ -1,4 +1,4 @@
-% Copyright (c) 2003-2007 Vladimir Volovich <vvv@vsu.ru>
+% Copyright (c) 2003-2008 Vladimir Volovich <vvv@vsu.ru>
% cmap package -- download CMap files into PDF
% to make "search" and "copy-and-paste" functions work properly
% You may distribute and/or modify this program under the terms of LPPL
@@ -11,18 +11,7 @@
% Werner Lemberg
% Oleg Katsitadze
-\ProvidesPackage{cmap}[2007/04/25 v1.0g CMap support: searchable PDF]
-
-\@ifundefined{pdffontattr}{%
-% The cmap package can be used only with pdflatex,
-% but not with ordinary latex
- \PackageWarningNoLine{cmap}{pdftex not detected - will not do anything}%
- \endinput
-}\relax
-\ifnum\pdfoutput<1
- \PackageWarningNoLine{cmap}{pdftex in DVI mode - will not do anything}
- \expandafter\endinput
-\fi
+\ProvidesPackage{cmap}[2008/03/06 v1.0h CMap support: searchable PDF]
\DeclareOption{resetfonts}{%
\@for\reserved@a:=%
@@ -36,6 +25,17 @@
}
\ProcessOptions
+\@ifundefined{pdffontattr}{%
+% The cmap package can be used only with pdflatex,
+% but not with ordinary latex
+ \PackageWarningNoLine{cmap}{pdftex not detected - exiting}%
+ \endinput
+}\relax
+\ifnum\pdfoutput<1
+ \PackageWarningNoLine{cmap}{pdftex in DVI mode - exiting}
+ \expandafter\endinput
+\fi
+
\edef\reserved@a{\noexpand\in@{,fontenc.sty,}{\@filelist}}% enc.def
\reserved@a
\ifin@
@@ -71,9 +71,7 @@
\ifdim\fontdimen3\font@name=\z@
\ifdim\fontdimen4\font@name=\z@
\begingroup
- \setbox0=\hbox{\font@name i}%
- \setbox1=\hbox{\font@name W}%
- \ifdim\wd0=\wd1 %
+ \ifdim\fontcharwd\font@name`\i=\fontcharwd\font@name`\w
\edef\reserved@f{\lowercase{\def\noexpand\reserved@f{\cmap@f@encoding tt.cmap}}}%
\reserved@f
\IfFileExists{\reserved@f}{\xdef\cmap@f@encoding{\cmap@f@encoding tt}}\relax