From 46c64ac9b3bb3dab8bf4a1dc6039983171c73186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 29 Mar 2010 06:03:16 +0200 Subject: First attempt at using compat. --- luatexbase-loader.dtx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'luatexbase-loader.dtx') diff --git a/luatexbase-loader.dtx b/luatexbase-loader.dtx index 8584aa9..057b2bf 100644 --- a/luatexbase-loader.dtx +++ b/luatexbase-loader.dtx @@ -242,12 +242,23 @@ See source file '\inFileName' for details. % % \subsubsection{Main content} % +% First load \pk{luatexbase-compat}. +% +% \begin{macrocode} +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input luatexbase-compat.sty +\else + \RequirePackage{luatexbase-compat} +\fi +% \end{macrocode} +% % Load the supporting Lua module. This one doesn't follow the usual naming % conventions, since it won't be loaded with the usual functions for % obvious bootstraping reasons. % % \begin{macrocode} -\directlua{% +\luatexbase@directlua{% local file = "luatexbase.loader.lua" local path = assert(kpse.find_file(file, 'tex'), "File '"..file.."' no found") -- cgit v1.2.3