From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: collapsing some headings on html export? Date: Fri, 26 Aug 2011 10:58:04 +0200 Message-ID: <87mxewlfc3.wl%n142857@gmail.com> References: <4E56AE6B.1030903@christianmoe.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwsEt-0001eW-TX for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 04:58:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwsEs-0004or-It for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 04:58:11 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:57205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwsEs-0004oi-7n for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 04:58:10 -0400 Received: by wwf10 with SMTP id 10so2585298wwf.30 for ; Fri, 26 Aug 2011 01:58:08 -0700 (PDT) In-Reply-To: <4E56AE6B.1030903@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: Org Mode If you only want to expand/collapse headers in a web page, you may use jQuery to handle each click. I did it with this code: http://www.danielclemente.com/pagina/esquemadorg.js http://www.danielclemente.com/pagina/esquemadorg.css Demo: http://www.danielclemente.com/hacer/emacs.html The code is a bit more difficult than that because you should handle links to collapsed sections in order to expand them as needed. Daniel El Thu, 25 Aug 2011 22:19:55 +0200 Christian Moe va escriure: > > Hi, > > org-info-js may be your best bet, but for a lightweight solution that > works with your sample text without a single line of javascript, try > this (mouse over headings to display contents):