emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Colorized TODO in Latex export?


From: Sebastien Vauban
Subject: Re: [O] Colorized TODO in Latex export?
Date: Fri, 19 Apr 2013 13:28:58 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (windows-nt)

Hi Johan and Suvayu,

Suvayu Ali wrote:
> On Fri, Apr 19, 2013 at 09:46:06AM +0200, Johan Ekh wrote:
>> I export minutes of meetings to latex and I would like to define colors for
>> the TODO keywords, like they are shown in my emacs agenda buffer.
>> 
>> How can I do this?
>
> A combination of filters and the todonotes package in LaTeX might work.
>
> If you find a solution, please let us know.

This used to work, but seems not anymore.

--8<---------------cut here---------------start------------->8---
       (defun org-latex-format-headline (todo todo-type priority text tags)
         "Default format function for an headline."
         (concat (when todo
                   (format 
"\\colorbox{yellow}{\\textbf{\\textsc{\\textsf{%s}}}} " todo))
                 (when priority
                   (format "\\framebox{\\#%c} " priority))
                 text
                 (when tags
                   (format "\\hfill{}\\fbox{\\textsc{%s}}"
                     (mapconcat 'identity tags ":")))))
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

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