Jason Ross <jasonross1...@gmail.com> writes: >> Or you can use "raw" results by default and format everything as you >> wish in your Org Babel module programatically. > > I'm not sure I understand this yet. Would this emit METAPOST code to the > Org buffer? Ideally, I'd like to emit METAPOST code if the backend is > `context`, otherwise, emit a file.
A hackish way would be detecting if you are executing code during export and emitting different results (say, you may look at org-export-current-backend). However, it will do nothing when user specifies :results file Best, Ihor