diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/luacolor.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/luacolor.dtx | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/luacolor.dtx b/Master/texmf-dist/source/latex/oberdiek/luacolor.dtx index b07635dd00d..dfe20b3b479 100644 --- a/Master/texmf-dist/source/latex/oberdiek/luacolor.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/luacolor.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +% Copyright (C) 2007, 2009 by Heiko Oberdiek <oberdiek@uni-freiburg.de> % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -73,7 +73,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: luacolor 2007/12/12 v1.0 Coloring based on LuaTeX's node attributes (HO)} +\Msg{* Package: luacolor 2009/04/10 v1.1 Coloring based on LuaTeX's node attributes (HO)} \Msg{************************************************************************} \keepsilent @@ -84,7 +84,7 @@ This is a generated file. -Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +Copyright (C) 2007, 2009 by Heiko Oberdiek <oberdiek@uni-freiburg.de> This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -156,7 +156,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{luacolor.drv}% - [2007/12/12 v1.0 Coloring based on LuaTeX's node attributes (HO)]% + [2009/04/10 v1.1 Coloring based on LuaTeX's node attributes (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] \usepackage{paralist} @@ -166,7 +166,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{333} +% \CheckSum{343} % % \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 @@ -187,7 +187,7 @@ and the derived files % \GetFileInfo{luacolor.drv} % % \title{The \xpackage{luacolor} package} -% \date{2007/12/12 v1.0} +% \date{2009/04/10 v1.1} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -306,7 +306,7 @@ and the derived files % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{luacolor}% - [2007/12/12 v1.0 Coloring based on LuaTeX's node attributes (HO)] + [2009/04/10 v1.1 Coloring based on LuaTeX's node attributes (HO)] % \end{macrocode} % % \subsection{Check for \LuaTeX} @@ -314,12 +314,12 @@ and the derived files % Without \LuaTeX\ there is no point in using this package. % \begin{macrocode} \RequirePackage{infwarerr}[2007/09/09]% -\RequirePackage{ifluatex}[2007/12/12]% +\RequirePackage{ifluatex}[2009/04/10]% \RequirePackage{color} % \end{macrocode} % \begin{macrocode} \ifluatex - \RequirePackage{luatex}[2007/12/12]% + \RequirePackage{luatex}[2009/04/10]% \else \@PackageError{luacolor}{% This package may only be run using LuaTeX% @@ -328,6 +328,16 @@ and the derived files \fi % \end{macrocode} % +% \begin{macro}{\LuaCol@directlua} +% \begin{macrocode} +\ifnum\luatexversion<36 % + \def\LuaCol@directlua{\directlua0 }% +\else + \let\LuaCol@directlua\directlua +\fi +% \end{macrocode} +% \end{macro} +% % \subsection{Check for disabled colors} % % \begin{macrocode} @@ -343,7 +353,7 @@ and the derived files % \subsection{Find driver} % % \begin{macrocode} -\directlua0{% +\LuaCol@directlua{% require("oberdiek.luacolor")% } \RequirePackage{ifpdf}[2007/09/09] @@ -358,7 +368,7 @@ and the derived files \endgroup }% \edef\reserved@a{% - \directlua0{% + \LuaCol@directlua{% oberdiek.luacolor.dvidetect()% }% }% @@ -383,7 +393,7 @@ and the derived files % \begin{macro}{\LuaCol@Attribute} % \begin{macrocode} \newattribute\LuaCol@Attribute -\directlua0{% +\LuaCol@directlua{% oberdiek.luacolor.setattribute(\number\allocationnumber)% } % \end{macrocode} @@ -393,7 +403,7 @@ and the derived files % \begin{macrocode} \protected\def\set@color{% \setattribute\LuaCol@Attribute{% - \directlua0{% + \LuaCol@directlua{% oberdiek.luacolor.get("\luaescapestring{\current@color}")% }% }% @@ -411,7 +421,7 @@ and the derived files % \begin{macro}{\luacolorProcessBox} % \begin{macrocode} \def\luacolorProcessBox#1{% - \directlua0{% + \LuaCol@directlua{% oberdiek.luacolor.process(\number#1)% }% } @@ -722,7 +732,7 @@ end \pdfoutput=0 % \fi \documentclass{minimal} -\usepackage{luacolor}[2007/12/12] +\usepackage{luacolor}[2009/04/10] \csname @@end\endcsname \end %</test2> @@ -734,7 +744,7 @@ end % \end{macrocode} % \begin{macrocode} \documentclass{minimal} -\usepackage{luacolor}[2007/12/12] +\usepackage{luacolor}[2009/04/10] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} @@ -955,6 +965,10 @@ end % \item % First public version. % \end{Version} +% \begin{Version}{2009/04/10 v1.1} +% \item +% Fixes for changed syntax of \cs{directlua} in \LuaTeX\ 0.36. +% \end{Version} % \end{History} % % \PrintIndex |