From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oKnkMLS06mH6qQAAgWs5BA (envelope-from ) for ; Fri, 21 Jan 2022 14:27:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ELI9LbS06mHUPgEAauVa8A (envelope-from ) for ; Fri, 21 Jan 2022 14:27:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DD0F3B6C3 for ; Fri, 21 Jan 2022 14:27:16 +0100 (CET) Received: from localhost ([::1]:47648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAtwh-0006Pe-57 for larch@yhetil.org; Fri, 21 Jan 2022 08:27:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAsxI-0002Zl-Vy for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 07:23:50 -0500 Received: from mout02.posteo.de ([185.67.36.66]:45359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAsxB-0001NV-HQ for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 07:23:43 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 9B61E240103 for ; Fri, 21 Jan 2022 13:23:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642767817; bh=BIHA+7RQ8/2iANzlmJYn/6XsKZw9hn7LnVudSzrqFm4=; h=From:To:Cc:Subject:Date:From; b=gIOPgKVhG+//xKoE7k15XiziiY8XlLbTpNG0/e8K+yd1d8XdCWweZn3H099jcLRjc 7gasKl0xw/LGwTo2VOmyjlbD2orJV3r056KhmkQRKXFn5Dfzg+0O6CQeb4QwLG55f5 n5mj8EfyxpIeSdYo/JVWque76hE0FctCy6WIyKT9h+l0ZK/Mut/LcMea9x/ZmMM6ss wFxs9REY+HALJvzKgGgovTrDpTgjFpLujVOcVx+20sLjhScpmXFvBcDuSBaPZx/Qfl inbbppwH2bapcUVi9TxsdIlTpP7+075Bo2hpbNkLE+brZMxHeGISShW+1alTsyyxl0 rm/vxhkZCx+mQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JgJSm5Zf5z6tpp; Fri, 21 Jan 2022 13:23:36 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: ZIPING CHEN Subject: Re: Exporting Org file to Html with collapsable headings References: Date: Fri, 21 Jan 2022 12:23:33 +0000 In-Reply-To: (ZIPING CHEN's message of "Thu, 20 Jan 2022 09:33:33 -0500") Message-ID: <875yqduvju.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642771636; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=42OwLpHzX6sVLwFSBgwFtdTlLL4+D1icr2A2zml3Ixw=; b=LA6bZkZ3MusFMrdzq6cVrn0sUQ4agkxFdoUf8UziW93curetvzbdWQR7NWl22q5ECnkyWb xgmIv77TsX1omOIsU6RNmxErIumkMAEnNtkAg7OcqxJJp6J4rXixv+N9/NiKCdbb3CyWja yI+rpJKEUezCapdi51yBuD7tytxaJFySi0zNDbusV921sYpvSSnupODqqCkcHVugbqQysF kpjvNf4MRNnGIEFn6ROA0lwDLanFwSi9xvjYNjO0zYHNbM0IfNWJsFhjQXIBTqW2Xui2Pn 5DG56CiLUYqos0j96WXoz06cs3J2oqL7mF3DOkjspLkMWm2OZGs7o7MLvNymDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642771636; a=rsa-sha256; cv=none; b=KzLhzxY+TWAdqljx1RN1KGtpuvWDJhWB5GlHwkzPRbWgk7rDzK0bs7XnlHDVfcRQVsDibx U4t9OpzGA0+aFSKwxLk+CQd1KnIncf/MApjlDy3DMD5wRWBDZ5UOTgvGwTzwPPBzm7BVSU CQ8HJcTmpJHBgsJ4QBB3obfThBJvGRN8LPavPcNan7GbywyCrUsqRit5x4pWRu9pDa5FOz XWeY10vieoFiTvukuypqXYTQlaYadVPLtpN+tLGv2Wwc0E1AA8wMc/laLr/pcTSvsAOSuI TIRyxGblnmlLW3MV0nPRRvS7/bpHpribiAH9o3aN0awutLo/WeeKcIk/h0TQXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gIOPgKVh; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gIOPgKVh; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5DD0F3B6C3 X-Spam-Score: -4.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1yXdbNhm3yed ZIPING CHEN writes: > I am working on a large org file with exceptional number of > subheadings. For example, I may have org headings inside headings up > to 20 or 30 layers deep. > > I may have many things like this in the middle of the file. > ************************** a new heading. > > When I export the file to html, I like to export in such a way that > the org headings become collapsable headline in html (toggle switch). > I spend some time search the web, and find a theme called bigblow > which does something close to what I want, but not exactly. It provide > limited layer of toggle switch only. I wish to turn all layers of > headings in org file into collapsable headline to html. > > Does anybody know a way I can accomplish this? I think that you need to add javascript and enclose the collapsible content in a div. If you google for 'html collapsible sections' there is quite a bit of information on how to achieve this from the html side. Here, for example: https://levelup.gitconnected.com/collapsible-sections-with-or-without-javascript-3fd871955a9d On the other hand, although not exactly related to what you are looking for, you may be interested in taking a look at 'organize'. I have not tried it, and as far as i know, it has its limitations: https://github.com/200ok-ch/organice Best regards, Juan Manuel