All,
I've been working on a document for weeks and it's been compiling fine.
I have a pdf copy from yesterday afternoon at 4p local time, the last
time it compiled successfully. I was doing a search/replace on some
/crlf to add space between text and an image. The search/replace with
Gnome's gedit included \n in both search and replace string. Suddenly
context will no longer successfully compile the document! What's very,
very odd, is that the context document is an output file from pandoc of
a markdown document that has had no issues until now. If I go back now
to the original markdown doc and regenerate the context document the
issue persists with or without subsequent edit!! Damned peculiar. Here's
the workflow:
pandoc -s -f markdown -t context -o
gedit to add:
\defineexternalfigure[screenshot][frame=on]
and then add [screenshot] to all of the \externalfigure directives. Then
find the /crlf that appear immediate before *all* of the \externalfigure
directives and double them (unless someone who reads this can tell me
how to easily modify the padding of an image when it's placed to
increase the spacing between the image and the text above it).
I've been doing this for many days. Until late yesterday afternoon. Now
context spits out this:
<quote>
structure > sectioning > subsubsubsection @ level 6 : 0.0.0.1.3.1
-> One URL for All Projects
! LuaTeX error /usr/share/texmf/tex/context/base/l-file.lua:219: bad
argument #1 to 'find' (string expected, got nil)
stack traceback:
[C]: in function 'find'
/usr/share/texmf/tex/context/base/l-file.lua:219: in function
'collapsepath'
/usr/share/texmf/tex/context/base/grph-inc.lua:373: in function
'forbiddenname'
/usr/share/texmf/tex/context/base/grph-inc.lua:387: in function
(tail call): ?
/usr/share/texmf/tex/context/base/grph-inc.lua:735: in function
'identifier'
/usr/share/texmf/tex/context/base/grph-inc.lua:753: in function
'identify'
<main ctx instance>:1: in main chunk.
system > tex > error on line 330 in file
v10TrainingGeneralClassEndUser.contex.tex: LuaTeX error ...
320 How You Get Access
321 \stopitemize
322
323 \subsubsubsection[one-url-for-all-projects]{One URL for All
Projects}
324
325 A {\em project} in WiscWebCMS is the equivalent of a web site.
You may
326 have access to multiple projects. For all projects you login at
327
\useURL[url2][https://wiscwebcms.wisc.edu][][https://wiscwebcms.wisc.edu]\from[url2].
328 With WiscWeb CMS you are logging into a web application to edit your
329 site.\crlf
330 >> {\externalfigure[images/group54/26378/CMSLogin.jpg]}
331
332 \subsubsubsection[selecting-your-project]{Selecting Your Project}
333
</quote>
That happens at the very first \externalfigure in the document. The
specific error is:
! LuaTeX error /usr/share/texmf/tex/context/base/l-file.lua:219: bad
argument #1 to 'find' (string expected, got nil)
Wah? I can successfully use display from the commandline in the same dir
as the context file on that path shown in the quoted output and it opens
the image. So, it's not the image file or the path--they are both fine.
Any ideas anyone?
--
"There is only love, and then oblivion. Love is all we have
to set against hatred." (paraphrased) Ian McEwan
Guy Stalnaker, I^2@DOIT, 1210 West Dayton Street, Room 3209 CSS, Madison
WI 53719-1220, jstalnak@wisc.edu, work 608.263.8035, cell 608.235.4718,
fax 608.265.6681,