emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: srandby@gmail.com
Cc: "[Orgmode]" <emacs-orgmode@gnu.org>
Subject: Re: Drawers and HTML Export
Date: Sat, 23 May 2009 07:57:21 +0200	[thread overview]
Message-ID: <1D024EE4-C6B0-45CE-AF6E-C0FB9CCAA7F1@gmail.com> (raw)
In-Reply-To: <4A1743EA.2050702@gmail.com>


On May 23, 2009, at 2:31 AM, srandby@gmail.com wrote:

> Nick Dokos wrote:
>> srandby@gmail.com wrote:
>>> I just discovered that if I put HTML source code into a drawer, it  
>>> is
>>> not exported. The following example illustrates a situation where  
>>> only
>>> the headline is exported.
>>>
>>> #+DRAWERS: DUCK
>>> * Ducks Quack
>>> :DUCK:
>>> #+BEGIN_HTML
>>>  <p>
>>>  The quack <b>ducks</b>.
>>>  </p>
>>> #+END_HTML
>>> :END:
>>>
>>> Is this behavior intended or is it a bug? I would like to put HTML
>>> code in a drawer to keep it out of the way. I am using Org-Mode
>>> 6.26trans in Emacs 22.
>>>
>> I haven't tried it but this should help:
>> ,----
>> | org-export-with-drawers is a variable defined in `org-exp.el'.
>> | Its value is nil
>> | | Documentation:
>> | Non-nil means, export with drawers like the property drawer.
>> | When t, all drawers are exported.  This may also be a list of
>> | drawer names to export.
>> | | You can customize this variable.
>> `----
>> Does it?
>
> Setting org-export-with-drawers to t allows the draws to be  
> exported, but it also exports the drawer delimiters (the :DUCK: and  
> the :END: in my example) which I don't want to be exported. I've  
> been looking at the various export variables, but I can't find  
> anything that will stop the drawer delimiters from being exported. I  
> think I'll stick with my current set up which doesn't use drawers.

Indeed, there is no way currently to use drawers as you intend.

- Carsten

  reply	other threads:[~2009-05-23  5:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22 22:06 Drawers and HTML Export srandby
2009-05-22 22:25 ` Nick Dokos
2009-05-23  0:31   ` srandby
2009-05-23  5:57     ` Carsten Dominik [this message]
2009-05-25 14:36       ` Wes Hardaker

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=1D024EE4-C6B0-45CE-AF6E-C0FB9CCAA7F1@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=srandby@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).