# “beeline” files not being found

Using the solution presented by @PhilippGesang per line text gradient for some reason my texlive is not finding the files, although I've texhashed myself half to death. My environment is ubuntu 14.04, texlive 2015, and I compile at the command line, eg: lualatex beeTest.tex

I've been wracking my brains trying to figure out this one. The error message I get is as follows:

(./beegradients.tex
! Undefined control sequence.
l.1 \RequireLuaModule
?


Checking to see if the files are there:

myuser@ThinkPad:~$kpsewhich beegradients.tex /usr/local/texlive/2015/texmf-dist/tex/generic/beegradients/beegradients.tex myuser@ThinkPad:~$ kpsewhich beegradients.lua


And my test document, from the post that I referred to earlier:

\documentclass {scrartcl}
\setmainfont {Antykwa Poltawskiego}

\begin {document}
\input knuth
\end {document}


Error log from when I try and run it with TeXstudio:

line 1: Undefined control sequence \RequireLuaModule
line 1: Missing \begin{document}. \RequireLuaModule {b
line 9: Undefined control sequence \startbeegradients
line 9: Too many }'s \startbeegradients
: No file texstudio_b31384.aux.


I tried this by placing the beegradients.tex file and the beegradients.lua file in the same directory as the test document, and it still threw the same error Undefined control sequence \RequireLuaModule

Much gratitude to anyone who has a clue as to what is wrong.

Thanks all.

• You don't get a "file not found" error, but an undefined command. The code should be used in a context document, for lualatex you will have to adept it. – Ulrike Fischer Aug 1 '16 at 21:48
• You ought not be installing the files into that directory. This isn't the problem, but it is still true. Whether you are using Ubuntu's packages or upstream's, that location is very unlikely to be correct unless you've got a very misleading custom configuration going. – cfr Aug 1 '16 at 21:56
• @UlrikeFischer the .tex file in the question is just a copy of the LaTeX example file from github, as far as I can tell. – cfr Aug 1 '16 at 21:58
• I have it working on one machine, but not on another, which is frustrating. @cfr should I properly have these files in ~/texmf/tex? – A Feldman Aug 1 '16 at 22:10
• @cfr you are right, I got confused by the context code in Philipps answer. The latex example worked in TL14 but needs to be adapted to TL16. – Ulrike Fischer Aug 1 '16 at 22:12

add \usepackage{luatexbase} which is the package that defines \RequireLuaModule

\documentclass {scrartcl}
\setmainfont {Antykwa Poltawskiego}
\usepackage{luatexbase}
\makeatletter
\let\lltxb@ifnextchar\@ifnextchar
\makeatother

\begin {document}
\input knuth
\end {document}


also for luatex after 0.85 you need to change line 38 of the lua file from

local pdf_literal_t       = 8


to

local pdf_literal_t       = 16


as the node (sub)ids have changed.

• What provides \lltxb@ifnextchar? That's the next error. – cfr Aug 1 '16 at 22:13
• That's not enough, I then get an error for \lltxb@ifnextchar. – Ulrike Fischer Aug 1 '16 at 22:13
• That took care of the first error, but remains line 12: Undefined control sequence \startbeegradients line 12: Use of \startbeegradientsindeed doesn't match its definition \startbeegradients line 12: Too many }'s \startbeegradients – A Feldman Aug 1 '16 at 22:21
• Unfortunately the line 12 errors remain after I changed the lua file. My lua: This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) restricted \write18 enabled. – A Feldman Aug 1 '16 at 22:37
• So I changed it back because it looks like I have an older luatex. – A Feldman Aug 1 '16 at 22:42