ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Use figures without file extension
@ 2012-05-26  2:08 Aditya Mahajan
  2012-05-26  9:28 ` Hans Hagen
  2012-05-26 13:39 ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Aditya Mahajan @ 2012-05-26  2:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-05-27 13:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-26  2:08 Use figures without file extension Aditya Mahajan
2012-05-26  9:28 ` Hans Hagen
2012-05-26 13:39 ` Hans Hagen
2012-05-26 14:04   ` Aditya Mahajan
2012-05-26 14:23     ` Hans Hagen
2012-05-26 14:26       ` luigi scarso
2012-05-27  1:43         ` Rogers, Michael K
2012-05-27  2:49           ` Aditya Mahajan
2012-05-27 13:09             ` Rogers, Michael K

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).