From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Schmitt Subject: Macro does not expand when exporting Date: Wed, 12 Aug 2009 12:19:42 +0200 Message-ID: <4A82973E.3020504@cs.tu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbAww-0004z8-Jg for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 06:20:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbAwr-0004v0-Um for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 06:20:54 -0400 Received: from [199.232.76.173] (port=44351 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbAwr-0004uv-Lv for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 06:20:49 -0400 Received: from mail.cs.tu-berlin.de ([130.149.17.13]:48669) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MbAwr-0003Ok-B0 for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 06:20:49 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost-12225.cs.tu-berlin.de (Postfix) with ESMTP id 307B0348CD for ; Wed, 12 Aug 2009 12:20:46 +0200 (MEST) Received: from mailhost.cs.tu-berlin.de ([127.0.0.1]) by localhost (mail.cs.tu-berlin.de [127.0.0.1]) (amavisd-new, port 12224) with ESMTP id k1HcjkkCiQ2D 25631-04 for ; Wed, 12 Aug 2009 12:20:44 +0200 (MEST) 16211 Received: from [130.149.24.75] (algieba.ni.cs.tu-berlin.de [130.149.24.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drmabuse) by mailhost.cs.tu-berlin.de (Postfix) with ESMTPSA for ; Wed, 12 Aug 2009 12:20:44 +0200 (MEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, using this minimal setup: --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path "/usr/local/emacs/org-mode/lisp") (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (require 'org-install) --8<---------------cut here---------------end--------------->8--- and this org file: --8<---------------cut here---------------start------------->8--- #+macro hello Greet the $1: Hello $1 * Macro does not expand when exporting The macro definition above should turn {{{hello(world)}}} into =Greet the world: Hello world= --8<---------------cut here---------------end--------------->8--- I get this LaTeX code (using C-c C-e l): --8<---------------cut here---------------start------------->8--- % Created 2009-08-12 Wed 11:53 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{hyperref} \title{export-with-macro} \author{} \date{12 August 2009} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Macro does not expand when exporting} \label{sec-1} The macro definition above should turn \{{\{hello(world)\}}\} into \texttt{Greet the world: Hello world} \end{document} --8<---------------cut here---------------end--------------->8--- Obviously the macro is not expanded as described in the manual. Am I missing something or is this a bug? Versions: GNU Emacs 22.3.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) Org-mode version 6.29trans (commit 5834ad01b617430c0207627ad425758bcf9b921a) Greetings, Stephan