>>> As I recall this was originally implemented and then later removed because >>> it was causing more confusion and problems than it was worth. I hope it >>> hasn't crossed the line of existence more than once. At some point it >>> should be placed behind a user-customizable variable, preferably something >>> like `org-babel-export-code-format' which defaults to something like >>> "%code" but could be augmented to something like "Block Name: *%name*\n >>> %code". It is not immediately clear if such a variable should have >>> different values for different export backends or (likely preferable) >>> should expand into Org-mode text *before* export. >> >> I think you're right about getting this done early in the process. I've been >> thinking only about LaTeX export because that is my immediate goal--not a >> good design perspective. >> I've just pushed up a minor code change which makes customization of the format of exported code blocks possible. I've added a new customization variable named `org-babel-exp-code-template' which can be used to specify the text which replaces code block bodies during export. The default value of this variable specifies the existing export behavior. The attached Org-mode file demonstrates this variable in action.