summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/pdfescape.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/pdfescape.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/pdfescape.dtx138
1 files changed, 113 insertions, 25 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdfescape.dtx b/Master/texmf-dist/source/latex/oberdiek/pdfescape.dtx
index 04900d029b8..7dcc0a39a3b 100644
--- a/Master/texmf-dist/source/latex/oberdiek/pdfescape.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/pdfescape.dtx
@@ -1,11 +1,12 @@
% \iffalse meta-comment
-%
+%
% File: pdfescape.dtx
-% Version: 2011/04/04 v1.12
-%
+% Version: 2011/11/25 v1.13
+% Info: Implements pdfTeX's escape features
+%
% Copyright (C) 2007, 2010, 2011 by
% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
-%
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any later
@@ -15,25 +16,25 @@
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of
% LaTeX version 2005/12/01 or later.
-%
+%
% This work has the LPPL maintenance status "maintained".
-%
+%
% This Current Maintainer of this work is Heiko Oberdiek.
-%
+%
% The Base Interpreter refers to any `TeX-Format',
% because some files are installed in TDS:tex/generic//.
-%
+%
% This work consists of the main source file pdfescape.dtx
% and the derived files
% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv,
% pdfescape-test1.tex, pdfescape-test2.tex,
% pdfescape-test3.tex, pdfescape-test4.tex,
% pdfescape-test5.tex, pdfescape-test6.tex.
-%
+%
% Distribution:
% CTAN:macros/latex/contrib/oberdiek/pdfescape.dtx
% CTAN:macros/latex/contrib/oberdiek/pdfescape.pdf
-%
+%
% Unpacking:
% (a) If pdfescape.ins is present:
% tex pdfescape.ins
@@ -42,7 +43,7 @@
% (c) If you insist on using LaTeX
% latex \let\install=y\input{pdfescape.dtx}
% (quote the arguments according to the demands of your shell)
-%
+%
% Documentation:
% (a) If pdfescape.drv is present:
% latex pdfescape.drv
@@ -52,14 +53,14 @@
% if available. Here you can specify further options, e.g.
% use A4 as paper format:
% \PassOptionsToClass{a4paper}{article}
-%
+%
% Programm calls to get the documentation (example):
% pdflatex pdfescape.dtx
% makeindex -s gind.ist pdfescape.idx
% pdflatex pdfescape.dtx
% makeindex -s gind.ist pdfescape.idx
% pdflatex pdfescape.dtx
-%
+%
% Installation:
% TDS:tex/generic/oberdiek/pdfescape.sty
% TDS:doc/latex/oberdiek/pdfescape.pdf
@@ -86,7 +87,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: pdfescape 2011/04/04 v1.12 Provides string conversions (HO)}
+\Msg{* Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -98,7 +99,7 @@
This is a generated file.
Project: pdfescape
-Version: 2011/04/04 v1.12
+Version: 2011/11/25 v1.13
Copyright (C) 2007, 2010, 2011 by
Heiko Oberdiek <heiko.oberdiek at googlemail.com>
@@ -142,6 +143,10 @@ and the derived files
\file{pdfescape-test4.tex}{\from{pdfescape.dtx}{test4}}%
\file{pdfescape-test5.tex}{\from{pdfescape.dtx}{test5}}%
\file{pdfescape-test6.tex}{\from{pdfescape.dtx}{test6}}%
+ \nopreamble
+ \nopostamble
+ \usedir{source/latex/oberdiek/catalogue}%
+ \file{pdfescape.xml}{\from{pdfescape.dtx}{catalogue}}%
}
\catcode32=13\relax% active space
@@ -168,16 +173,16 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{pdfescape.drv}%
- [2011/04/04 v1.12 Provides string conversions (HO)]%
+ [2011/11/25 v1.13 Implements pdfTeX's escape features (HO)]%
\documentclass{ltxdoc}
-\usepackage{holtxdoc}[2011/02/04]
+\usepackage{holtxdoc}[2011/11/22]
\begin{document}
\DocInput{pdfescape.dtx}%
\end{document}
%</driver>
% \fi
%
-% \CheckSum{2451}
+% \CheckSum{2516}
%
% \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
@@ -198,7 +203,7 @@ and the derived files
% \GetFileInfo{pdfescape.drv}
%
% \title{The \xpackage{pdfescape} package}
-% \date{2011/04/04 v1.12}
+% \date{2011/11/25 v1.13}
% \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}}
%
% \maketitle
@@ -349,7 +354,7 @@ and the derived files
\fi
\expandafter\x\csname ver@pdfescape.sty\endcsname
\ProvidesPackage{pdfescape}%
- [2011/04/04 v1.12 Provides string conversions (HO)]%
+ [2011/11/25 v1.13 Implements pdfTeX's escape features (HO)]%
% \end{macrocode}
%
% \subsection{Catcodes}
@@ -389,6 +394,8 @@ and the derived files
}
\TMP@EnsureCode\catcode{0}{12}% ^^@
\TMP@EnsureCode\catcode{34}{12}% "
+\TMP@EnsureCode\catcode{36}{3}% $
+\TMP@EnsureCode\catcode{38}{4}% &
\TMP@EnsureCode\catcode{39}{12}% '
\TMP@EnsureCode\catcode{42}{12}% *
\TMP@EnsureCode\catcode{45}{12}% -
@@ -798,7 +805,7 @@ and the derived files
% \begin{macrocode}
\def\PE@OctII#1#2{%
\ifcase\PE@TestOctDigit#2%
- \def\PE@next{\PE@OctAll{#1#2}}%
+ \def\PE@next{\PE@OctIII#1#2}%
\else
\def\PE@next{\PE@OctAll{#1}#2}%
\fi
@@ -806,6 +813,35 @@ and the derived files
}
% \end{macrocode}
% \end{macro}
+% \begin{macrocode}
+\ltx@IfUndefined{numexpr}{%
+ \catcode`\$=9 %
+ \catcode`\&=14 %
+}{%
+ \catcode`\$=14 %
+ \catcode`\&=9 %
+}
+% \end{macrocode}
+% \begin{macro}{\PE@OctIII}
+% \begin{macrocode}
+\def\PE@OctIII#1#2#3{%
+ \ifnum#1<4 %
+ \def\PE@next{\PE@OctAll{#1#2#3}}%
+ \else
+$ \count\ltx@cclv#1 %
+$ \advance\count\ltx@cclv -4 %
+ \edef\PE@next{%
+ \noexpand\PE@OctAll{%
+$ \the\count\ltx@cclv
+& \the\numexpr#1-4\relax
+ #2#3%
+ }%
+ }%
+ \fi
+ \PE@next
+}
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\PE@OctAll}
% \begin{macrocode}
\def\PE@OctAll#1{%
@@ -1390,7 +1426,7 @@ and the derived files
% \begin{macrocode}
%<*test2>
\ProvidesFile{pdfescape-test2.tex}%
- [2011/04/04 v1.12 Test with \string\pdfescape... commands]%
+ [2011/11/25 v1.13 Test with \string\pdfescape... commands]%
%</test2>
% \end{macrocode}
%
@@ -1399,7 +1435,7 @@ and the derived files
% \begin{macrocode}
%<*test3>
\ProvidesFile{pdfescape-test3.tex}%
- [2011/04/04 v1.12 Test without \string\pdfescape..., with e-TeX]%
+ [2011/11/25 v1.13 Test without \string\pdfescape..., with e-TeX]%
%</test3>
% \end{macrocode}
%
@@ -1408,7 +1444,7 @@ and the derived files
% \begin{macrocode}
%<*test4>
\ProvidesFile{pdfescape-test4.tex}%
- [2011/04/04 v1.12 Test without \string\pdfescape... and e-TeX]%
+ [2011/11/25 v1.13 Test without \string\pdfescape... and e-TeX]%
%</test4>
% \end{macrocode}
%
@@ -1417,7 +1453,7 @@ and the derived files
% \begin{macrocode}
%<*test5>
\ProvidesFile{pdfescape-test5.tex}%
- [2011/04/04 v1.12 Test with LuaTeX]%
+ [2011/11/25 v1.13 Test with LuaTeX]%
%</test5>
% \end{macrocode}
%
@@ -1831,6 +1867,15 @@ and the derived files
\test{x\lf}{x\lf}%
\test{x\lf\cr}{x\lf\lf}%
\test{x\\\cr\lf y\cr}{xy\lf}%
+%
+ \test{\\409}{ 9}%
+ \test{\\800}{800}%
+ \test{\\900}{900}%
+ \test{\\578}{/8}%
+ \test{\\477}{?}%
+ \test{\\377}{^^ff}%
+ \test{\\777}{^^ff}%
+ \test{\\7777}{^^ff7}%
\end{qstest}
\stop
% \end{macrocode}
@@ -2172,6 +2217,43 @@ and the derived files
%\end{verbatim}
% \end{quote}
%
+% \section{Catalogue}
+%
+% The following XML file can be used as source for the
+% \href{http://mirror.ctan.org/help/Catalogue/catalogue.html}{\TeX\ Catalogue}.
+% The elements \texttt{caption} and \texttt{description} are imported
+% from the original XML file from the Catalogue.
+% The name of the XML file in the Catalogue is \xfile{pdfescape.xml}.
+% \begin{macrocode}
+%<*catalogue>
+<?xml version='1.0' encoding='us-ascii'?>
+<!DOCTYPE entry SYSTEM 'catalogue.dtd'>
+<entry datestamp='$Date$' modifier='$Author$' id='pdfescape'>
+ <name>pdfescape</name>
+ <caption>Implements pdfTeX's escape features using TeX or e-TeX.</caption>
+ <authorref id='auth:oberdiek'/>
+ <copyright owner='Heiko Oberdiek' year='2007,2010,2011'/>
+ <license type='lppl1.3'/>
+ <version number='1.13'/>
+ <description>
+ This package implements <xref refid='pdftex'>pdfTeX</xref>'s
+ escape features (<tt>\pdfescapehex</tt>, <tt>\pdfunescapehex</tt>,
+ <tt>\pdfescapename</tt>, <tt>\pdfescapestring</tt>) using TeX or
+ e-TeX.
+ <p/>
+ The package is part of the <xref refid='oberdiek'>oberdiek</xref>
+ bundle.
+ </description>
+ <documentation details='Package documentation'
+ href='ctan:/macros/latex/contrib/oberdiek/pdfescape.pdf'/>
+ <ctan file='true' path='/macros/latex/contrib/oberdiek/pdfescape.dtx'/>
+ <miktex location='oberdiek'/>
+ <texlive location='oberdiek'/>
+ <install path='/macros/latex/contrib/oberdiek/oberdiek.tds.zip'/>
+</entry>
+%</catalogue>
+% \end{macrocode}
+%
% \begin{History}
% \begin{Version}{2007/02/21 v1.0}
% \item
@@ -2243,6 +2325,12 @@ and the derived files
% \item
% Test file for \hologo{iniTeX} added.
% \end{Version}
+% \begin{Version}{2011/11/25 v1.13}
+% \item
+% Higher order bit of octal sequences in \cs{EdefUnescapeString}
+% ignored according to the PDF specification
+% (Bug found by Bruno Le Floch).
+% \end{Version}
% \end{History}
%
% \PrintIndex