Am 12.12.2012 um 18:45 schrieb Guy Stalnaker <jstal...@wisc.edu>: > 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 <file.md> -o <file.context.tex> > gedit <file.context.tex> 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 > </usr/share/texmf/tex/context/base/grph-inc.lua:385> > (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?
Do you get the same error message when you put this short example in the same directory as document? \starttext \externalfigure[images/group54/26378/CMSLogin.jpg] \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________