From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Best practices for dual HTML/LaTeX export for scientific papers Date: Thu, 2 Apr 2015 15:01:59 -0700 Message-ID: References: <0D61CF76-2D92-4A9C-A90E-2F175BDDA91B@block-party.net> <871tk25ygq.fsf@gmx.us> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdnBh-0005TM-28 for emacs-orgmode@gnu.org; Thu, 02 Apr 2015 18:02:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdnBd-00012i-2O for emacs-orgmode@gnu.org; Thu, 02 Apr 2015 18:02:08 -0400 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:1603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdnBc-00012X-Pi for emacs-orgmode@gnu.org; Thu, 02 Apr 2015 18:02:05 -0400 In-Reply-To: <871tk25ygq.fsf@gmx.us> 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: Rasmus Cc: emacs-orgmode@gnu.org On Thu, 2 Apr 2015, Rasmus wrote: > Hi, > > David Dynerman writes: > [snip] > >> 2) Figures containing multiple side-by-side figures with subcaptions >> (e.g. in LaTeX I would use minipage + subcaption) > > For LaTeX you can find solution on this list. I would not know how to do > it in "plain" HTML. That would be the first step to a solution. > You can get part way just by using a table. #+NAME: as-org #+BEGIN_SRC org #+ATTR_LATEX: :environment figure | [[file:./testa.png]] | [[file:./testb.png]] | #+END_SRC #+BEGIN_SRC emacs-lisp :var y=as-org() :wrap latex (org-export-string-as y 'latex t) #+END_SRC #+BEGIN_SRC emacs-lisp :var y=as-org() :wrap html (org-export-string-as y 'html t) #+END_SRC With ob-org.el loaded, the two elisp blocks will produce tables of images in the latex and html backends. Some further work is needed to adjust the `width=...' of the latex result and to put captions in the right places in both latex and html. Using the babel blocks makes it easy to see what might be needed. In the end, I expect a filter would be used rather than babel blocks. HTH, Chuck