From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: LaTeX export keyword coloring Date: Fri, 25 Nov 2011 19:52:48 +0100 Message-ID: <4ecfe337.193cdf0a.1de7.ffff8715@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RU0q3-0002v2-6r for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 13:49:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RU0q2-0004UL-6W for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 13:49:31 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:47827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RU0q1-0004UB-VT for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 13:49:30 -0500 Received: by bke17 with SMTP id 17so5425297bke.0 for ; Fri, 25 Nov 2011 10:49:28 -0800 (PST) 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 Hello, I am having trouble controlling what org's LaTeX export does with my keyword markup. I have set org-export-latex-todo-keyword-markup (quote (("NEW" . "\\new{%s}") ("TODO" . "\\todo{%s}") ("DONE" . "\\done{%s}"))) In the org file, I got #+OPTIONS: todo:t #+LATEX_HEADER: \usepackage[usenames, dvipsnames]{color} #+LATEX_HEADER: \def\done#1{{\color{ForestGreen}#1}} I am using the standard latex export class. When I export to a temporary buffer via C-c C-e L, I see this below my inserted #+LATEX_HEADER lines \usepackage[usenames, dvipsnames]{color} \def\done#1{{\color{ForestGreen}#1}} \usepackage{color} \def\todo#1{{\color{red}#1}} \def\done#1{{\color{green}#1}} \providecommand{\alert}[1]{\textbf{#1}} Now I wonder where the last 4 lines (which overrule the coloring) came from and am at a loss. I could not find it in the docs and googled around to no avail. Also, I do not think this is caused by my other org-mode configuration settings. Can someone give me a hint on where to look for a solution? Do I miss something obvious? Thanks in advance, Michael Bach