From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Embed images in formats best suited for HTML and LaTeX export and inline viewing Date: Wed, 01 Aug 2012 15:24:38 +0200 Message-ID: <87a9yepwx5.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwYuC-0000hW-4D for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 09:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwYuA-0000dv-Ol for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 09:24:04 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:48421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwYuA-0000dp-I6 for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 09:24:02 -0400 Received: by weys10 with SMTP id s10so5789495wey.0 for ; Wed, 01 Aug 2012 06:24:01 -0700 (PDT) In-Reply-To: (Brett Viren's message of "Tue, 31 Jul 2012 09:20:22 -0400") 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: Brett Viren Cc: emacs-orgmode@gnu.org Hi Brett, Brett Viren writes: > #+MACRO: himg #+HTML:
$3 $3
> #+MACRO: limg #+LATEX: \begin{figure}\label{$1}\includegraphics[width=\textwidth]{$2.pdf}\caption{$3}\end{figure} > > I then call each macro explicitly: > > {{{limg(fig:overview,dataflow,Overview of the data flow.)}}} > {{{himg(fig-overview,dataflow,Overview of the data flow.)}}} > > It works but has a few warts: > > 0) It totally subverts org-mode's figure markup. > > 1) So far I think I must use two macro calls thus annoyingly repeating > data. Can macros be nested? No. > Can they have newlines? I don't think so -- did you try? -- Bastien