summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/inputenx.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/inputenx.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/inputenx.sty35
1 files changed, 32 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/inputenx.sty b/Master/texmf-dist/tex/latex/oberdiek/inputenx.sty
index 8bb492be242..5e7e9bfc583 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/inputenx.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/inputenx.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2006-2010 by
+%% Copyright (C) 2006-2011 by
%% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
%%
%% This work may be distributed and/or modified under the
@@ -29,7 +29,7 @@
%% and the derived files
%% inputenx.sty, inputenx.pdf, inputenx.ins, inputenx.drv, ix-alias.def,
%% ix-math.def, ix-name.def, ix-slot.def, ix-uc.def,
-%% ix-utf8enc.dfu, x-ascii.def, x-atarist.def,
+%% ix-utf8enc.dfu, x-ascii.def, x-verbatim.def, x-atarist.def,
%% x-iso-8859-1.def, x-iso-8859-2.def, x-iso-8859-3.def,
%% x-iso-8859-4.def, x-iso-8859-5.def, x-iso-8859-8.def,
%% x-iso-8859-9.def, x-iso-8859-10.def, x-iso-8859-13.def,
@@ -43,9 +43,34 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{inputenx}%
- [2010/01/11 v1.6 Enhanced input encoding handling (HO)]%
+ [2011/04/10 v1.8 Enhanced input encoding handling (HO)]%
\providecommand*{\CurrentInputEncodingName}{}
\providecommand*{\CurrentInputEncodingOption}{}
+\def\IEX@SetFileCatcodes{%
+ \catcode`\\=0 %
+ \catcode`\{=1 %
+ \catcode`\}=2 %
+ \catcode`\#=6 %
+ \catcode`\^=7 %
+ \catcode`\@=11 %
+ \catcode`\~=\active
+ \catcode`\%=14 %
+ \catcode`\`=12 %
+}
+\def\IEX@SaveFileCatcodes{%
+ \edef\IEX@RestoreFileCatcodes{%
+ \catcode`\noexpand\\=\the\catcode`\\\relax
+ \catcode`\noexpand\{=\the\catcode`\{\relax
+ \catcode`\noexpand\}=\the\catcode`\}\relax
+ \catcode`\noexpand\#=\the\catcode`\#\relax
+ \catcode`\noexpand\^=\the\catcode`\^\relax
+ \catcode`\noexpand\@=\the\catcode`\@\relax
+ \catcode`\noexpand\~=\the\catcode`\~\relax
+ \catcode`\noexpand\%=\the\catcode`\%\relax
+ \catcode`\noexpand\`=\the\catcode`\`\relax
+ \catcode`\noexpand\<=\the\catcode`\<\relax
+ }%
+}
\def\IEX@LookupEncoding#1{%
\edef\CurrentInputEncodingName{#1}%
\@onelevel@sanitize\CurrentInputEncodingName
@@ -86,6 +111,7 @@
}
\def\IEX@DoLookup{%
\begingroup
+ \IEX@SetFileCatcodes
\advance\endlinechar\@M
\IfFileExists{ix-alias.cfg}{%
\input{ix-alias.cfg}%
@@ -160,7 +186,10 @@
\IEX@LookupEncoding\InputEncodingNew
\ifx\CurrentInputEncodingOption\@empty
\else
+ \IEX@SaveFileCatcodes
+ \IEX@SetFileCatcodes
\inputencoding{\CurrentInputEncodingOption}%
+ \IEX@RestoreFileCatcodes
\fi
\IEX@AfterHook
}