diff options
author | Karl Berry <karl@freefriends.org> | 2009-04-12 23:15:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-04-12 23:15:36 +0000 |
commit | 1a87640a25a3cf2bf77b1cb9c69e3c90f2b3811b (patch) | |
tree | 5a6eb1ac516775c93f354fba92bddca5de94c078 /Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx | |
parent | b4c2a162bb8aa0937f3c029e5e103055f55ae3ae (diff) |
oberdiek update (12apr09)
git-svn-id: svn://tug.org/texlive/trunk@12705 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx | 54 |
1 files changed, 43 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx b/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx index d781fee7640..f8e25775291 100644 --- a/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/pdftexcmds.dtx @@ -69,7 +69,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: pdftexcmds 2007/12/12 v0.3 LuaTeX support for pdfTeX utility functions (HO)} +\Msg{* Package: pdftexcmds 2009/04/10 v0.4 LuaTeX support for pdfTeX utility functions (HO)} \Msg{************************************************************************} \keepsilent @@ -147,7 +147,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{pdftexcmds.drv}% - [2007/12/12 v0.3 LuaTeX support for pdfTeX utility functions (HO)]% + [2009/04/10 v0.4 LuaTeX support for pdfTeX utility functions (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] \usepackage{paralist} @@ -157,7 +157,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{552} +% \CheckSum{570} % % \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 @@ -178,7 +178,7 @@ and the derived files % \GetFileInfo{pdftexcmds.drv} % % \title{The \xpackage{pdftexcmds} package} -% \date{2007/12/12 v0.3} +% \date{2009/04/10 v0.4} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -405,6 +405,9 @@ and the derived files \else \def\x#1#2[#3]{\endgroup #2[{#3}]% + \ifx#1\@undefined + \xdef#1{#3}% + \fi \ifx#1\relax \xdef#1{#3}% \fi @@ -412,7 +415,7 @@ and the derived files \fi \expandafter\x\csname ver@pdftexcmds.sty\endcsname \ProvidesPackage{pdftexcmds}% - [2007/12/12 v0.3 LuaTeX support for pdfTeX utility functions (HO)] + [2009/04/10 v0.4 LuaTeX support for pdfTeX utility functions (HO)] % \end{macrocode} % % \subsection{Catcodes} @@ -459,6 +462,7 @@ and the derived files \TMP@EnsureCode{62}{12}% > \TMP@EnsureCode{94}{7}% ^ (superscript) \TMP@EnsureCode{95}{12}% _ (other) +\TMP@EnsureCode{96}{12}% ` \TMP@EnsureCode{126}{12}% ~ (other) % \end{macrocode} % @@ -468,16 +472,18 @@ and the derived files \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname RequirePackage\endcsname\relax \input infwarerr.sty\relax + \input ifluatex.sty\relax \else \RequirePackage{infwarerr}[2007/09/09]% + \RequirePackage{ifluatex}[2009/04/10]% \fi % \end{macrocode} % % \subsection{Without \LuaTeX} % % \begin{macrocode} -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname directlua\endcsname\relax +\ifluatex +\else \@PackageInfo{pdftexcmds}{LuaTeX not detected}% \def\pdftexcmds@nopdftex{% \@PackageInfoNoLine{pdftexcmds}{pdfTeX >= 1.30 not detected}% @@ -535,6 +541,16 @@ and the derived files \fi % \end{macrocode} % +% \begin{macro}{\pdftexcmds@directlua} +% \begin{macrocode} +\ifnum\luatexversion<36 % + \def\pdftexcmds@directlua{\directlua0 }% +\else + \let\pdftexcmds@directlua\directlua +\fi +% \end{macrocode} +% \end{macro} +% % \subsection{Load module} % % \begin{macrocode} @@ -542,9 +558,9 @@ and the derived files \expandafter\ifx\csname RequirePackage\endcsname\relax \input luatex-loader.sty\relax \else - \RequirePackage{luatex-loader}[2007/12/12]% + \RequirePackage{luatex-loader}[2009/04/10]% \fi -\directlua0{% +\pdftexcmds@directlua{% require("oberdiek.pdftexcmds")% } % \end{macrocode} @@ -562,6 +578,13 @@ and the derived files % \end{macrocode} % \end{macro} % +% \begin{macrocode} +\ifnum\luatexversion<36 % +\else + \catcode`\0=9 % +\fi +% \end{macrocode} +% % \begin{macro}{\pdf@strcmp} % \begin{macrocode} \long\def\pdf@strcmp#1#2{% @@ -735,11 +758,15 @@ and the derived files % \end{macrocode} % \end{macro} % +% \begin{macrocode} +\catcode`\0=12 % +% \end{macrocode} +% % \begin{macro}{\pdf@pipe} % Check availability of |io.popen| first. % \begin{macrocode} \ifnum0% - \directlua0{% + \pdftexcmds@directlua{% if io.popen then % tex.write("1")% end% @@ -747,7 +774,7 @@ and the derived files =1 % \def\pdf@pipe#1{% \the\expandafter\pdftexcmds@toks - \directlua0{% + \pdftexcmds@directlua{% oberdiek.pdftexcmds.toks="pdftexcmds@toks"% oberdiek.pdftexcmds.pipe("\luaescapestring{#1}")% }% @@ -1346,6 +1373,11 @@ end % \item % Organization of Lua code as module. % \end{Version} +% \begin{Version}{2009/04/10 v0.4} +% \item +% Adaptation for syntax change of \cs{directlua} in +% \LuaTeX\ 0.36. +% \end{Version} % \end{History} % % \PrintIndex |