emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Re: Using orgmode to take "inline notes" for research


From: Sébastien Vauban
Subject: [O] Re: Using orgmode to take "inline notes" for research
Date: Thu, 07 Apr 2011 11:20:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Jeff,

Jeff Horn wrote:
> No problem. As a note for others searching on this, I'll just go ahead and
> re-iterate that if you don't want a particular inline-task to be printed,
> just add the :noexport: tag to the headline.

Better to say it twice!

> Sebastian, or others: One is able to add properties to inline-style
> headlines correct? John could add an HTML container class property and use a
> stylesheet to play with HTML export, including "indentation", but I don't
> know if there is any equivalent help from the LaTeX exporter.

This is my current config for nice styling:

#+begin_src emacs-lisp
  ;; initial state (TODO keyword) of inline tasks
  (setq org-inlinetask-default-state "TODO")

  ;; templates for inline tasks in various exporters
  (setq org-inlinetask-export-templates
        '((html "<pre class=\"inlinetask\"><b>%s%s</b>%s</pre>"
                '((unless (eq todo "")
                    (format "<span class=\"%s %s\">%s%s</span> "
                            class todo todo priority))
                  heading content))
          (latex "\\todo[inline]{\\textbf{\\textsf{%s %s}}\\linebreak{} %s}"
                 '((unless (eq todo "")
                     (format "\\textsc{%s%s}" todo priority))
                   heading content))
          (ascii "     -- %s%s%s"
                 '((unless (eq todo "")
                     (format "%s%s " todo priority))
                   heading
                   (unless (eq content "")
                     (format "\n         ¦ %s"
                             (mapconcat 'identity
                                        (org-split-string content "\n")
                                        "\n         ¦ ")))))))
#+end_src

Customize to your own taste (and report back!)...

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

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