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: Thu, 03 Sep 2015 22:11:42 +0100 Message-ID: References: <87egifp7jb.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXbnW-0008QG-L8 for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 17:11:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXbnT-0007eG-Db for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 17:11:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:36838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXbnT-0007dw-60 for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 17:11:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZXbnQ-0002Py-KG for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 23:11:48 +0200 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Sep 2015 23:11:48 +0200 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Sep 2015 23:11:48 +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 Hi Eric, Thanks for following that up! Eric S Fraga writes: > On Thursday, 3 Sep 2015 at 13:30, Andreas Leha wrote: >> Hi Alan, >> >> Glad you like the example. >> >> Three things: >> 1. It still works for me ;-) > > Andreas, > > the example doesn't work for me with a quite recent org (updated within > the past week) and with -Q. I see. Another reason for me not to upgrade? My org is quite old. (8.3beta (release_8.3beta-1264-g365c19)) > > By the way, with emacs -Q, I need to "(required 'cl)" for the by-backend > macro although this is probably done by one of the export files? > >> 2. The distorted png might come from the bug in htlatex I mentioned in >> this thread [1]. > > The solution has been pointed out by Haochen Xie in this thread > (":imagemagick yes"). I needed this fix as well to get the png creation > to work. > Good to know! Thanks for the confirmation. I missed that. Note also that it might be necessary to include #+header: :headers '("\\usepackage{tikz}") to the latex block. This I only need when testing with emacs -Q. Not sure why, though. I was under the impression that global #+latex_headers should apply in latex source blocks as well? >> 3. It seems that the by-backend does not work properly for you. I am >> not sure about the reason for that. What org-mode version do you run? > > And it doesn't work for me either. I recently ran into this problem > myself with a document (long book chapter with many tikz figures) that I > wrote about 4 months ago. I had a deadline so couldn't track down what > was wrong but it is all about the by-backend macro. No matter what the > target for export is, the by-backend macro doesn't work. I tried to fix > it but no luck, mostly due to my lack of emacs lisp funess... This macro is from Eric Schulte initially. And I guess I would be out of luck adapting it to new Org mode versions as well. I'd vote for a macro like this to be included in Org mode. I think it is quite useful to have and somehow extends the @@latex: ...@ constructs to babel. That way updates to org breaking this would be less probable. Unfortunately, I don't have the time right now to even upgrade Org mode. So, I cannot offer any testing/bisecting, I am afraid. Best, Andreas