emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Manish <mailtomanish.sharma@gmail.com>
To: Manish <mailtomanish.sharma@gmail.com>, Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: HTML export of inline tasks
Date: Wed, 9 May 2012 22:15:52 +0530	[thread overview]
Message-ID: <CAHuUovWbPd5p+_ChOA9rggsfYM42Ly0bw7DrMYfnwUn0i6QYkg@mail.gmail.com> (raw)
In-Reply-To: <87lil1g5se.fsf@ucl.ac.uk>

On Wed, May 9, 2012 at 1:11 PM, Eric S Fraga wrote:
> Manish writes:
>
>> Dear List,
>>
>> How can I export SCHEDULED, DEADLINE and tags for inlinetasks?  I have
>> org-inlinetask.el loaded and am using older HTML exporter (the one not
>> based on org-elements.el).  I looked at variable
>> org-inlinetasl-export-template but still unsure how should I set it to
>> exposed scheduling information in HTML.  I am using the default css.
>>
>> GNU Emacs 24.1.50.1 on Windows 7
>> Org-mode from Git as of May 7 2012 with head on commit
>> b797c88d700a5e636c0f9fdb108d1846ce6e1f08
>>
>> Thanks!
>> --
>> Manish
>
> Sorry, I missed that you had already looked at that variable.  I set it
> as follows, which might help you figure this out:
>
>
> (setq org-inlinetask-export-templates
>       '((html "<ul><li>%s%s<p>%s</p></li></ul>"
>          '((unless
>       	    (eq todo "")
>        		  (format "<span class=\"%s %s\">%s%s </span>" class todo todo priority))
>         heading content))))
>
> This assumes the default CSS so that the appropriate TODO styles have
> been defined.
>
> I must admit that I seldom export to HTML (esp. now with the ODT
> exporter) so I cannot remember if this was a good template or not.
>
> Hope this helps.
>

Thanks for looking, Eric.  I think that setting is pretty much the
default.  Following note from the source file and a look at
org-inlinetask-export-handler makes me believe that these were never
supposed to be treated as proper todos (I don't speak elisp so I could
be mistaken though).

,----
| ;; Export commands do not treat these nodes as part of the sectioning
| ;; structure, but as a special inline text that is either removed, or
| ;; formatted in some special way.  This in handled by
| ;; `org-inlinetask-export' and `org-inlinetask-export-templates'
| ;; variables.
`----

Out of curiosity I tried ODT export and that produces weird results for
inlinetasks. Does it work for you?

Cheers!
Manish

  reply	other threads:[~2012-05-09 16:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-09  5:52 HTML export of inline tasks Manish
2012-05-09  7:37 ` Eric S Fraga
2012-05-09  7:41 ` Eric S Fraga
2012-05-09 16:45   ` Manish [this message]
2012-05-10  1:04     ` Eric S Fraga
2012-05-23 11:51     ` Jambunathan K
  -- strict thread matches above, loose matches on Subject: below --
2009-11-23 12:27 html " Karl Maihofer
2010-01-01  9:59 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHuUovWbPd5p+_ChOA9rggsfYM42Ly0bw7DrMYfnwUn0i6QYkg@mail.gmail.com \
    --to=mailtomanish.sharma@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).