ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Odd /externalfigure behavior
@ 2012-12-12 17:45 Guy Stalnaker
  2012-12-12 18:12 ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Guy Stalnaker @ 2012-12-12 17:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

-- 

"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,
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-12-21 21:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-12 17:45 Odd /externalfigure behavior Guy Stalnaker
2012-12-12 18:12 ` Wolfgang Schuster
2012-12-12 18:27   ` Guy Stalnaker
2012-12-12 18:44     ` Wolfgang Schuster
2012-12-12 19:26       ` Hans Hagen
2012-12-13 23:22       ` Guy Stalnaker
2012-12-15 22:44         ` Guy Stalnaker
2012-12-16  9:22           ` Wolfgang Schuster
2012-12-16 14:17             ` Hans Hagen
2012-12-19 20:38               ` Guy Stalnaker
2012-12-19 20:57                 ` luigi scarso
2012-12-21 21:51                 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).