summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/listingsutf8.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/listingsutf8.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/listingsutf8.dtx58
1 files changed, 42 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/listingsutf8.dtx b/Master/texmf-dist/source/latex/oberdiek/listingsutf8.dtx
index a576c700e48..e4338e54cb1 100644
--- a/Master/texmf-dist/source/latex/oberdiek/listingsutf8.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/listingsutf8.dtx
@@ -74,12 +74,13 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: listingsutf8 2007/10/22 v1.0 Adding support for UTF-8 to listings (HO)}
+\Msg{* Package: listingsutf8 2007/11/11 v1.1 Adding support for UTF-8 to listings (HO)}
\Msg{************************************************************************}
\keepsilent
\askforoverwritefalse
+\let\MetaPrefix\relax
\preamble
This is a generated file.
@@ -106,6 +107,7 @@ and the derived files
listingsutf8-test5.tex.
\endpreamble
+\let\MetaPrefix\DoubleperCent
\generate{%
\file{listingsutf8.ins}{\from{listingsutf8.dtx}{install}}%
@@ -128,6 +130,10 @@ and the derived files
\Msg{*}
\Msg{* listingsutf8.sty}
\Msg{*}
+\Msg{* And install the following script file:}
+\Msg{*}
+\Msg{* }
+\Msg{*}
\Msg{* To produce the documentation run the file `listingsutf8.drv'}
\Msg{* through LaTeX.}
\Msg{*}
@@ -143,16 +149,16 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{listingsutf8.drv}%
- [2007/10/22 v1.0 Adding support for UTF-8 to listings (HO)]%
+ [2007/11/11 v1.1 Adding support for UTF-8 to listings (HO)]%
\documentclass{ltxdoc}
-\usepackage{holtxdoc}[2007/10/21]
+\usepackage{holtxdoc}[2007/11/11]
\begin{document}
\DocInput{listingsutf8.dtx}%
\end{document}
%</driver>
% \fi
%
-% \CheckSum{230}
+% \CheckSum{253}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -173,7 +179,7 @@ and the derived files
% \GetFileInfo{listingsutf8.drv}
%
% \title{The \xpackage{listingsutf8} package}
-% \date{2007/10/22 v1.0}
+% \date{2007/11/11 v1.1}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -243,10 +249,22 @@ and the derived files
% \subsection{Catcodes and identification}
%
% \begin{macrocode}
-\expandafter\edef\csname lstU@AtEnd\endcsname{%
- \catcode64 \the\catcode64\relax
-}
+\begingroup
+ \catcode123 1 % {
+ \catcode125 2 % }
+ \def\x{\endgroup
+ \expandafter\edef\csname lstU@AtEnd\endcsname{%
+ \catcode35 \the\catcode35\relax
+ \catcode64 \the\catcode64\relax
+ \catcode123 \the\catcode123\relax
+ \catcode125 \the\catcode125\relax
+ }%
+ }%
+\x
+\catcode35 6 % #
\catcode64 11 % @
+\catcode123 1 % {
+\catcode125 2 % }
\def\TMP@EnsureCode#1#2{%
\edef\lstU@AtEnd{%
\lstU@AtEnd
@@ -283,7 +301,7 @@ and the derived files
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{listingsutf8}%
- [2007/10/22 v1.0 Adding support for UTF-8 to listings (HO)]
+ [2007/11/11 v1.1 Adding support for UTF-8 to listings (HO)]
% \end{macrocode}
%
% \subsection{Package options}
@@ -313,6 +331,10 @@ and the derived files
% \subsection{Check prerequisites}
%
% \begin{macrocode}
+\RequirePackage{pdftexcmds}[2007/11/11]
+% \end{macrocode}
+%
+% \begin{macrocode}
\def\lstU@temp#1#2{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname #1\endcsname\relax
@@ -325,9 +347,9 @@ and the derived files
\fi
}
\lstU@temp{scantokens}{It is provided by e-TeX}
-\lstU@temp{pdfunescapehex}{It is provided by pdfTeX >= 1.30}
-\lstU@temp{pdffiledump}{It is provided by pdfTeX >= 1.30}
-\lstU@temp{pdffilesize}{It is provided by pdfTeX >= 1.30}
+\lstU@temp{pdf@unescapehex}{It is provided by pdfTeX >= 1.30}
+\lstU@temp{pdf@filedump}{It is provided by pdfTeX >= 1.30}
+\lstU@temp{pdf@filesize}{It is provided by pdfTeX >= 1.30}
% \end{macrocode}
%
% \begin{macrocode}
@@ -376,8 +398,8 @@ and the derived files
\def\lstU@input#1{%
\iflstU@utfviii
\edef\lstU@text{%
- \pdfunescapehex{%
- \pdffiledump length\pdffilesize{#1}{#1}%
+ \pdf@unescapehex{%
+ \pdf@filedump{0}{\pdf@filesize{#1}}{#1}%
}%
}%
\StringEncodingConvert\lstU@text\lstU@text{utf8}\lst@inputenc
@@ -457,7 +479,7 @@ and the derived files
\catcode`\%=14 %
\catcode`\ =10 %
\catcode13=5 %
- \RequirePackage{listingsutf8}[2007/10/22]\relax
+ \RequirePackage{listingsutf8}[2007/11/11]\relax
\RestoreCatcodes
}
\Test
@@ -495,7 +517,7 @@ public class ExampleUTF8 {
}
}
\end{filecontents*}
-\usepackage{listingsutf8}[2007/10/22]
+\usepackage{listingsutf8}[2007/11/11]
\def\Text{%
Umlauts: %
^^c3^^84^^c3^^96^^c3^^9c^^c3^^a4^^c3^^b6^^c3^^bc^^c3^^9f%
@@ -721,6 +743,10 @@ public class ExampleUTF8 {
% \item
% First version.
% \end{Version}
+% \begin{Version}{2007/11/11 v1.1}
+% \item
+% Use of package \xpackage{pdftexcmds}.
+% \end{Version}
% \end{History}
%
% \PrintIndex