Currently, ConTeXt only recognizes the type of figure from the file
extension. If a filename does not have an extension, \externalfigure
fails.
For example:
$ cp `luatools hacker.jpg` something
Then,
\starttext
\externalfigure[something]
\stoptext
fails. However, if I set
\externalfigure[something][method=jpg]
the figure loads correctly. But what is surprising is that if I set
\externalfigure[something][method=pdf]
then also the figure loads correctly! This means that context has the code to
recognize the figure type (even without the extension), but that fails when
method is not set.
Setting a global
\setupexternalfigures[method=pdf]
does not work because method is reset to empty by \resetfiguresettings.
Any ideas on how to load an external figure without a file extension and not
specifying the figure type by hand?
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________