diff options
Diffstat (limited to 'luamcallbacks.dtx')
-rw-r--r-- | luamcallbacks.dtx | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/luamcallbacks.dtx b/luamcallbacks.dtx index 6b06b24..c2d94f9 100644 --- a/luamcallbacks.dtx +++ b/luamcallbacks.dtx @@ -14,11 +14,6 @@ % Documentation: % pdflatex luamcallbacks.dtx % -% The class ltxdoc loads the configuration file ltxdoc.cfg -% if available. Here you can specify further options, e.g. -% use A4 as paper format: -% \PassOptionsToClass{a4paper}{article} -% %<*ignore> \begingroup \def\x{LaTeX2e}% @@ -30,10 +25,6 @@ %</ignore> %<*install> \input docstrip.tex -\Msg{************************************************************************} -\Msg{* Installation} -\Msg{* Package: luamcallbacks 2009/09/18 v0.93 LuaTeX multiple callbacks.} -\Msg{************************************************************************} \keepsilent \askforoverwritefalse @@ -41,28 +32,21 @@ \let\MetaPrefix\relax \preamble -This is a generated file. Copyright (C) 2009 by Elie Roux <elie.roux@telecom-bretagne.eu> This work is under the CC0 license. - -This work consists of the main source file luamcallbacks.dtx -and the derived files - luamcallbacks.lua, test-luamcallbacks.tex, luamcallbacks.pdf. +See source file '\inFileName' for details. \endpreamble \let\MetaPrefix\DoubleperCent \generate{% - \usedir{doc/luatex/luatextra}% + \usedir{doc/luatex/luatexbase}% \file{test-luamcallbacks.tex}{\from{luamcallbacks.dtx}{test}}% } -% The following hacks are to generate a lua file with lua comments starting by -% -- instead of %% - \def\MetaPrefix{-- } \def\luapostamble{% @@ -73,7 +57,7 @@ and the derived files \def\currentpostamble{\luapostamble}% \generate{% - \usedir{tex/luatex/luatextra}% + \usedir{tex/luatex/luatexbase}% \file{luamcallbacks.lua}{\from{luamcallbacks.dtx}{lua}}% } @@ -95,19 +79,15 @@ and the derived files \fi %</ignore> %<*driver> -\NeedsTeXFormat{LaTeX2e} -\ProvidesFile{luamcallbacks.drv} - [2009/09/18 v0.93 LuaTeX multiple callbacks package] \documentclass{ltxdoc} -\EnableCrossrefs -\CodelineIndex +\input{lltxb-dtxstyle} \begin{document} \DocInput{luamcallbacks.dtx}% \end{document} %</driver> % \fi % -% \CheckSum{5} +% \CheckSum{0} % % \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 @@ -139,6 +119,8 @@ and the derived files % \texttt{callback.register}. It also allows to create and call new callbacks. % For an introduction on this package (among others), please refer to the % document \texttt{luatextra-reference.pdf}. +% \par\textbf{Warning.} Currently assumes that \textsf{luatexbase-modutils} +% has been previously loaded. (This is a temporary limitation.) % \end{abstract} % % \section{Documentation} @@ -803,15 +785,16 @@ end % get a non-empty document. % % \begin{macrocode} -\input luatextra.sty - +\input luatexbase-loader.sty +\input luatexbase-modutils.sty +\directlua{require "luamcallbacks"} This is just a test file. % \end{macrocode} % % Then we declare three functions that we will use. % % \begin{macrocode} -\luadirect{ +\directlua{ local function one(head,...) texio.write_nl("I'm number 1") return head, true |