From a59306f2e7f54f5c64124fc4120d8511ea56eaeb Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Sun, 14 Oct 2018 11:51:11 +0200
Subject: .lua files: set a common preamble

---
 ekdosis.dtx | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 0942b7b..4c49668 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -16,7 +16,7 @@ License:| Released under the GNU General Public License v3 or later
 Short description:
 Some text about the package: probably the same as the abstract.
 %</readme>
-%<*lua>
+%<*luapre>
 --[[
 This file is part of the `ekdosis' package
 
@@ -41,7 +41,7 @@ along with this program.  If not, see
 <http://www.gnu.org/licenses/>.
 --]]
 
-%</lua>
+%</luapre>
 %<*internal>
 \fi
 \def\nameofplainTeX{plain}
@@ -107,7 +107,9 @@ Running "make install" installs the files in the local TeX tree.
 }
 \usedir{tex/lualatex/ekdosis}
 \generate{
-  \file{ekdosis.lua}{\from{\jobname.dtx}{lua}}
+  \file{ekdosis.lua}{
+    \from{\jobname.dtx}{luapre}
+    \from{\jobname.dtx}{lua}}
 }
 \ifx\fmtname\nameofplainTeX
   \expandafter\endbatchfile
@@ -291,11 +293,10 @@ Running "make install" installs the files in the local TeX tree.
 % \fi
 % \StopEventually{}
 % \Finale
-%
-% \iffalse
+% \iffalse `'
 %<*lua>
 % \fi
-% \begin{minted}[linenos,fontsize=\relsize{-0.5}]{lua}
+% \begin{minted}[linenos,fontsize=\relsize{-0.5}]{lua}     
 function closestream()
       os.remove(tex.jobname..".ekd")
       os.rename(tex.jobname.."_tmp.ekd", tex.jobname..".ekd")
-- 
cgit v1.2.3

