From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Rainer Subject: macro expansion not working in #+ATTR_LATEX Date: Thu, 5 Sep 2013 21:33:48 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1dd023fa3a604e5a800c2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHfJO-0003NV-6h for emacs-orgmode@gnu.org; Thu, 05 Sep 2013 15:33:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHfJN-0006Eu-1w for emacs-orgmode@gnu.org; Thu, 05 Sep 2013 15:33:50 -0400 Received: from mail-ve0-x234.google.com ([2607:f8b0:400c:c01::234]:42092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHfJM-0006En-Tg for emacs-orgmode@gnu.org; Thu, 05 Sep 2013 15:33:48 -0400 Received: by mail-ve0-f180.google.com with SMTP id jz11so915272veb.11 for ; Thu, 05 Sep 2013 12:33:48 -0700 (PDT) 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 --001a11c1dd023fa3a604e5a800c2 Content-Type: text/plain; charset=ISO-8859-1 hi all! while working nicely for plain text I realized that macros are not expanded if put in #+ATTR_LATEX: e.g. I defined #+MACRO: image_width 16 and wanted to use this macro like #+ATTR_LATEX: :center :placement [H] :width {{{image_width}}}cm however, in the exported tex file I get: \includegraphics[width={{{image_width}}}cm]{test.png} is that intentional that macro expansion works only for plain text? thanks, jo --001a11c1dd023fa3a604e5a800c2 Content-Type: text/html; charset=ISO-8859-1
hi all!

while working nicely for plain text I realized that macros are not expanded if put in #+ATTR_LATEX:

e.g. I defined

#+MACRO: image_width 16

and wanted to use this macro like

#+ATTR_LATEX: :center :placement [H] :width {{{image_width}}}cm

however, in the exported tex file I get:

\includegraphics[width={{{image_width}}}cm]{test.png}

is that intentional that macro expansion works only for plain text?

thanks, jo

--001a11c1dd023fa3a604e5a800c2--