From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Vollmar Subject: HTML export with one key Date: Sat, 13 Jun 2009 16:31:57 +0200 Message-ID: <655DB7F7-CCCD-48F3-B2C4-6D8D736934FF@nf.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFUH9-00068S-DW for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 10:32:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFUH3-00067r-Sh for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 10:32:06 -0400 Received: from [199.232.76.173] (port=37506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFUH3-00067o-NS for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 10:32:01 -0400 Received: from mail.nf.mpg.de ([134.95.44.50]:41595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFUH3-0007gZ-Bc for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 10:32:01 -0400 Received: from [192.168.178.21] (pD9E609EF.dip.t-dialin.net [217.230.9.239]) by mail.nf.mpg.de (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0KL600J50LVIM300@mail.nf.mpg.de> for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 16:35:42 +0200 (MEST) 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 Hello, I am excited about using org-mode for generating HTML code, in fact, =20 for one project I do that so frequently that I wanted to have a simple =20= shortcut instead of having to press: C-x C-s C-c C-e b I have tried (I know very little Lisp, sorry): (defun my-org-export () "save, then export current org file to html, open in browser" (save-buffer) (interactive) (org-export-as-html-and-open t)) (global-set-key [(f2)] 'my-org-export) ... which does most of the job as intended. However, using this =20 function yields HTML output which renders second- and third-level =20 headlines into itemized lists whereas I want to have the default =20 behaviour (1.1, 1.2, 1.2.3, etc). Many thanks for any tips on how to improve this! Warm regards, Stefan --=20 Dr. Stefan Vollmar, Dipl.-Phys. Max-Planck-Institut f=FCr neurologische Forschung Gleuelerstr. 50, 50931 K=F6ln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: vollmar@nf.mpg.de http://www.nf.mpg.de