emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with org-export-latex-todo-keyword-markup [7.4]
@ 2011-02-16  9:36 phaebz
  2011-02-16 11:32 ` Bastien
  2011-02-16 15:22 ` Michael Bach
  0 siblings, 2 replies; 5+ messages in thread
From: phaebz @ 2011-02-16  9:36 UTC (permalink / raw)
  To: emacs-orgmode

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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem with org-export-latex-todo-keyword-markup [7.4]
  2011-02-16  9:36 problem with org-export-latex-todo-keyword-markup [7.4] phaebz
@ 2011-02-16 11:32 ` Bastien
  2011-02-17  7:54   ` Michael Bach
  2011-02-16 15:22 ` Michael Bach
  1 sibling, 1 reply; 5+ messages in thread
From: Bastien @ 2011-02-16 11:32 UTC (permalink / raw)
  To: phaebz; +Cc: emacs-orgmode

Hi Phaebz,

phaebz <phaebz@googlemail.com> writes:

> 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}"))

Use "NEW" "TODO" "DONE" instead of "new" "todo" "done", the search 
for this is case-sensitive.

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem with org-export-latex-todo-keyword-markup [7.4]
  2011-02-16  9:36 problem with org-export-latex-todo-keyword-markup [7.4] phaebz
  2011-02-16 11:32 ` Bastien
@ 2011-02-16 15:22 ` Michael Bach
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Bach @ 2011-02-16 15:22 UTC (permalink / raw)
  To: phaebz; +Cc: emacs-orgmode

On 02/16/2011 11:36 AM, phaebz wrote:
> 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?

Actually, I am thinking of setting up a virtual mailing-list just for me, so that I can send my email there, since there seems to be a correlation between me sending my problems to this list and finding the solution on my own.

For completeness, obviously the keys have all to be upper case, i.e. (("NEW" . "\\new{%s}") ("DONE" . "\\done{%s}") ("TODO" . "\\todo{%s}")).

I will try to avoid these mails in the future.

Michael Bach

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem with org-export-latex-todo-keyword-markup [7.4]
  2011-02-16 11:32 ` Bastien
@ 2011-02-17  7:54   ` Michael Bach
  2011-02-17 10:25     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Bach @ 2011-02-17  7:54 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

On 02/16/2011 01:32 PM, Bastien wrote:
> Hi Phaebz,
>
> phaebz <phaebz@googlemail.com> writes:
>
>> 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}"))
> Use "NEW" "TODO" "DONE" instead of "new" "todo" "done", the search 
> for this is case-sensitive.
>
> HTH,
>

Thanks for the notice Bastien, I just read your message today, delivery was not really working it seems. See also my own reply to this...

cheers,
Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem with org-export-latex-todo-keyword-markup [7.4]
  2011-02-17  7:54   ` Michael Bach
@ 2011-02-17 10:25     ` Bastien
  0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2011-02-17 10:25 UTC (permalink / raw)
  To: Michael Bach; +Cc: emacs-orgmode

Hi Michael,

Michael Bach <phaebz@googlemail.com> writes:

> Thanks for the notice Bastien, I just read your message today, delivery was
> not really working it seems. 

Yes, some of my emails have been delayed.

> See also my own reply to this...

Seen - thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-17 10:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16  9:36 problem with org-export-latex-todo-keyword-markup [7.4] phaebz
2011-02-16 11:32 ` Bastien
2011-02-17  7:54   ` Michael Bach
2011-02-17 10:25     ` Bastien
2011-02-16 15:22 ` Michael Bach

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).