From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Block level specification for tex code html export method Date: Fri, 04 Sep 2015 14:42:51 +0100 Message-ID: References: <87egifp7jb.fsf@ucl.ac.uk> <87h9nbmbe1.fsf@nicolasgoaziou.fr> <87bndimjtg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXrGo-0008Rx-Se for emacs-orgmode@gnu.org; Fri, 04 Sep 2015 09:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXrGl-0005NX-M5 for emacs-orgmode@gnu.org; Fri, 04 Sep 2015 09:43:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:35332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXrGl-0005NG-F5 for emacs-orgmode@gnu.org; Fri, 04 Sep 2015 09:43:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZXrGg-0001si-Eo for emacs-orgmode@gnu.org; Fri, 04 Sep 2015 15:43:02 +0200 Received: from 193.63.222.90 ([193.63.222.90]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Sep 2015 15:43:02 +0200 Received: from andreas.leha by 193.63.222.90 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Sep 2015 15:43:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Andreas Leha writes: > >> Seems to work fine! >> >> Just note, that it works for me only after exporting >> (when tested under emacs -Q). > > `org-export-current-backend' is set when exporting a document, much like > `backend'. > The same protection as in the previous version seems to take effect here: (defmacro by-backend (&rest body) `(case (if (boundp 'org-export-current-backend) org-export-current-backend nil) ,@body)) Are there any issues with this? >> What about including that into org? > > Wrong namespace. It should be prefixed with "org". > Easy to fix. > Also, it might be better to include it directly in :file directive > handling if that is its sole purpose. Could you elaborate why that might be better? Including it as a macro like this has the up-side to be more general.n I think that also other header arguments would benefit from such a (org-)by-backend switch. In former versions (pre-dating the handling of *.tikz 'images' by ox-latex) of the tikz code in this thread, for example, the :results argument needed to be set according to the backend as well Regards, Andreas