From: Stephan Schmitt <drmabuse@cs.tu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Macro does not expand when exporting
Date: Wed, 12 Aug 2009 12:19:42 +0200 [thread overview]
Message-ID: <4A82973E.3020504@cs.tu-berlin.de> (raw)
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
next reply other threads:[~2009-08-12 10:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 10:19 Stephan Schmitt [this message]
2009-08-12 10:34 ` Macro does not expand when exporting Carsten Dominik
2009-08-12 10:37 ` Stephan Schmitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A82973E.3020504@cs.tu-berlin.de \
--to=drmabuse@cs.tu-berlin.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.