From mboxrd@z Thu Jan 1 00:00:00 1970 From: phaebz Subject: problem with org-export-latex-todo-keyword-markup [7.4] Date: Wed, 16 Feb 2011 11:36:26 +0200 Message-ID: <4D5B9A9A.3040306@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=50672 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpdoH-0008FL-Q3 for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 04:36:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpdoH-00035V-0o for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 04:36:33 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:42736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpdoG-00035D-PI for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 04:36:32 -0500 Received: by fxm12 with SMTP id 12so1233575fxm.0 for ; Wed, 16 Feb 2011 01:36:31 -0800 (PST) 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 I defined it as an associative list, as described in the manual: org-export-latex-todo-keyword-markup evaluates to (("new" . "\\new{%s}") ("done" . "\\done{%s}") ("todo" . "\\todo{%s}")) In my LaTeX header are the options: #+LATEX_HEADER: \def\todo#1{{\color{red}#1}} #+LATEX_HEADER: \def\done#1{{\color{green}#1}} #+LATEX_HEADER: \def\new#1{{\color{blue}#1}} Now I noticed that, in the exported pdf, all todo keywords are typeset in the same color, which is always the value of the first element in the a-list. In the above example, all keywords get set to blue, i.e. the LaTeX file contains odd things like \new{TODO}. According to the manual, I expect this behaviour - using the value of the first element - only for todo keywords for which there is no key in the a-list defined. Am I doing something wrong?