emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Macro does not expand when exporting


From: Stephan Schmitt
Subject: Re: [Orgmode] Macro does not expand when exporting
Date: Wed, 12 Aug 2009 12:37:23 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090626)

Thanks!

One of these too-obvious-bugs...

Greetings


Carsten Dominik wrote:
> There is a colon missing after #+macro
> 
> HTH
> 
> - Carsten
> 
> On Aug 12, 2009, at 12:19 PM, Stephan Schmitt wrote:
> 
>> 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
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

-- 

--------------------------------------------

Stephan Schmitt

Neural Information Processing Group
Fac. IV - Electrical Engineering
        & Computer Science
Berlin University of Technology

Office: +49 30 - 314 24 158
Mobile: +49 179 - 593 84 48
Email:
  echo 'drmabuse at cs x tu-berlin x de' \
  | sed -e 's/ x /\./g' -e 's/ at /@/'

--------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]