emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: inlinetask html export template
Date: Mon, 08 Aug 2011 14:09:07 +0530	[thread overview]
Message-ID: <8162m8b8lw.fsf@gmail.com> (raw)
In-Reply-To: <CAMXnza3+QHd4mJouK5PauYoFR6e=rRP-xfW=3catj0c1fD8oww@mail.gmail.com> (suvayu ali's message of "Mon, 8 Aug 2011 09:35:55 +0200")

suvayu ali <fatkasuvayu+linux@gmail.com> writes:

> Hi,
>
> org exports inlinetasks to HTML as preformatted text, and uses the
> style class inlinetask. I wanted to export inlinetasks as a section
> ("div" ?) but with the same style.
>
> I don't know any HTML, but with some guess work I customised the html
> template like this:
>
>
> (html "<div class=\"inlinetask\"><b>%s%s</b><br />%s</div>"
> 	      '((unless (eq todo "")
> 		  (format "<span class=\"%s %s\">%s%s</span> " class todo todo priority))
> 		heading content))
>

Put your html file in nxml-mode and do a C-c C-n. You will know the
reason. Basically it produces an invalid xhtml.

--8<---------------cut here---------------start------------->8---
<p>
<span style="text-decoration:underline;">Questions</span>:
<div class="inlinetask"><b>Detector effects</b><br />
</p><ol>  ############### PROBLEM HERE
<li>How is the Gaussian used for smearing of proper time resolution
   derived? <a href="http://www.google.com">Google</a> this.
</li>
<li>Why is the proper time error PDF needed? Why is
   smearing of time resolution not enough?
</li>
</ol>
--8<---------------cut here---------------end--------------->8---


> This takes care of replacing the preformatted block with a section but
> the style isn't applied any more. Any ideas how I can achieve that?

-- 

  reply	other threads:[~2011-08-08  8:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-08  7:35 inlinetask html export template suvayu ali
2011-08-08  8:39 ` Jambunathan K [this message]
2011-08-08  8:51   ` suvayu ali
2011-08-08 10:35     ` Jambunathan K
2011-08-08 11:48       ` suvayu ali

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=8162m8b8lw.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /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).