From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uriel Avalos Subject: Re: Change DOCTYPE declaration? Date: Wed, 17 Nov 2010 15:23:08 -0500 Message-ID: <30439.6222848029$1290025424@news.gmane.org> References: <20101117130409.773797d2amscopub-mail@yahoo.com@dove.localdomain> <20101117183427.GG2450@soloJazz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=37294 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIoX0-0007km-Av for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 15:23:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIoWy-0003w7-4l for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 15:23:01 -0500 Received: from smtp106.prem.mail.sp1.yahoo.com ([98.136.44.61]:23082) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIoWx-0003vt-SJ for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 15:23:00 -0500 In-Reply-To: <20101117183427.GG2450@soloJazz.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Thanks for the reply. After some monkeying around, I found I could do this: (add-hook 'org-export-html-final-hook (lambda () (let ((kill-whole-line t)) (goto-char (point-min)) (next-line) (kill-line 2) (insert "\n") ) ) ) To undo it, I can call this: (setq org-export-html-final-hook nil) However, one question, the above sets the doctype GLOBALLY. Is there a way to do set this automagically per file? (I.e., some kind of file-specific export option) On Wed, 17 Nov 2010 16:34:27 -0200 Juan Pechiar wrote: > Hi, > > The DOCTYPE declaration is hardcoded inside org-html.el > > You may change it by defining a hook and modifying the generated HTML. > Have a look at the following message, where they get rid of the > declaration: > > http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00063.html > > you may add some 'insert' there with your own declaration. > > Regards, > .j. > > On Wed, Nov 17, 2010 at 01:04:09PM -0500, Uriel Avalos wrote: > > How do I change the doctype declaration? > > > > Is there an export option or variable I can set? I tried searching > > for the variable. Perhaps I'm using a version of orgmode that's too > > old? > > > > The only thing I could find was org-export-html-xml-declaration but > > that's not the same thing.