From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 uEZwBFMl62GBggAAgWs5BA (envelope-from ) for ; Fri, 21 Jan 2022 22:27:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EEjdOFIl62FC7wAAG6o9tA (envelope-from ) for ; Fri, 21 Jan 2022 22:27:46 +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 793FA47FFC for ; Fri, 21 Jan 2022 22:27:46 +0100 (CET) Received: from localhost ([::1]:35124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nB1Rh-0003MG-M9 for larch@yhetil.org; Fri, 21 Jan 2022 16:27:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nB0ui-0007kq-NO for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 15:53:40 -0500 Received: from [2607:f8b0:4864:20::529] (port=44839 helo=mail-pg1-x529.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nB0uh-0007SM-3M for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 15:53:40 -0500 Received: by mail-pg1-x529.google.com with SMTP id h23so9075249pgk.11 for ; Fri, 21 Jan 2022 12:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=BB6Nba8Hd3V++Nw+7rdys/TwFxXewoI07GdeIv8b4k4=; b=jtf10I+vk3QCjs3SH10pRSEAfE3OAIMGJ62ZTtru69nHqU1HkJt8sN0epK18rRk77V scznJgynBmHzt4WURXkcCuHhfkbgOhz61bPUi/gC5wggVZe3ZQP6XFAzyTWlDntWIs/B Gi11kXW9wuB4SzWmqpUsN2hdm0NroT4bxeOZhRWvyEvDV7rjZ5jCmLqRKCWhmdFGR1cM TKxXjzKaIyHXjZMkRKru/yUtTSG8/IQm541NE2bpwokLStKRfqL5yxV4nosPrm/wMxGX pMC8Bf67Q0cHDFwaEmSEDVxzO48J7eymMZoodUTr2R7oMg5rp9+Pn/DtshLblFrf8p36 coyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=BB6Nba8Hd3V++Nw+7rdys/TwFxXewoI07GdeIv8b4k4=; b=rpBhkKuGb2Iea7R5rXzW+GwIbjWHtidym7zBZjwgN2ma5D3c4CKgzpGZZRVPgiZlE7 iHKiaK7ebinDJjsdsGnLWDTuokr+6JkGc5Mv5Goup9Gzsgve0odbY4HgCisQZ8OET/gw ganXxNN5HgkM3eZI1HkjRktKn8O1qBMzMgch+iMqHZb61P2bM+ZTZyga7TEv3obhdVY5 Pg4M9aWLO0FdUrnmecvbu2D0SMfLFAXUwxBpMgNilSP3mRYZGl0tuYlSaiUZlsGvxDnR v2/TRpTURAlNNmhIgLMW7Yl3HUPAvWu8/BIlCvdTqoWy/z6rr1gHUdiZTAA4smc/gxpN 2J0w== X-Gm-Message-State: AOAM531mMsR210vRLAhaxQfDmUghmajBXx1kbnw34xMQ+isI4i6/Vvjl PX+k7E5pyL0F932bGx82VRoAmSeQ+CY= X-Google-Smtp-Source: ABdhPJwBudbPJsREVj0wAqAd9kEQiNQxsDF6W3BHdYOQou+A1ahB0BSs3NFVjR3prObG4dYyhjnxVg== X-Received: by 2002:a62:5e43:0:b0:4c7:375e:bcd0 with SMTP id s64-20020a625e43000000b004c7375ebcd0mr5034371pfb.7.1642798416071; Fri, 21 Jan 2022 12:53:36 -0800 (PST) Received: from dingbat (2001-44b8-31f2-bb00-07a0-e967-8677-2c39.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:7a0:e967:8677:2c39]) by smtp.gmail.com with ESMTPSA id l2sm7963339pfu.61.2022.01.21.12.53.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 12:53:35 -0800 (PST) References: User-agent: mu4e 1.7.6; emacs 28.0.91 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Exporting Org file to Html with collapsable headings Date: Sat, 22 Jan 2022 07:18:31 +1100 In-reply-to: Message-ID: <87y238u7xv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::529 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1642800466; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=BB6Nba8Hd3V++Nw+7rdys/TwFxXewoI07GdeIv8b4k4=; b=D5kcv3s1jOGefiYwWgsm1wX9KWxHht/TSYPCQ+QwZFnV7dkE49PZyxXt4DZTo0JwbHjEJI Y7lgH6SLxMK438WiJpm/H+s/zND8rHYucd5RIENW2sI61sFXDtsgJhLW0OjJMilhObihJf pcMdYHLeSGOlbzA8AfYpY5ejbSNxwBOt7x33IH0M1/1KZJv3wzqLtpIk6aHVnqZll8nNm8 oKpfIc9uhtUQ/5KtmLm+4lwUcao8cOSbyCSEhdi7nosELJsF1198Bg37mAMyIoVj0dKkAY gpZXa1ConILvI6Qb1hhQzhzet1Bcs2prUjdnoIlkYQyM96hd84rSLBaZQY8nDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642800466; a=rsa-sha256; cv=none; b=WkATZZtIAbxi8hc8AgHcx4a/0ILUkm3p0yPJl5TPZ1SeprvtknSIq0Mu+Vbhy56JPi19hK bvgmjeyThbklHyhVlrpaIC6mwXk8MMy7YB8cuP16M8CuC0PkvjVuV4KSTQP4DR1gxasIlM w+gk1zJAJzYuInEpy5INEpscAy4M0i4qfARSoTs/czQcF4LdVMvHMkep+dg/JoT7kf6VDO 8V7IY69BQeimEgzzZBUBLFYYLC9I/ps+nVE4gDRuk4rXKp8kkfunsrkCPJuEF33qHDzpg8 l81Uf69AaKp6RQv7b9ZH2m5SYv7grjMFlP6lHlRkHOJcyVoatvEAA5POoloLHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jtf10I+v; dmarc=pass (policy=none) header.from=gmail.com; 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.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jtf10I+v; dmarc=pass (policy=none) header.from=gmail.com; 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: 793FA47FFC X-Spam-Score: -4.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: utnpmvWVY5YR ZIPING CHEN writes: > Hi, > > 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? > > Thanks a lot. > > Ziping The effect you are after can be achieved using either JS and CSS or with just CSS. Most of the CSS frameworks out there will support this functionality. For example bootstrap - CSS and JS bulma - CSS only Tailwind - CSS only I'm pretty sure all of the above support the ability to create a minimised version which only includes the features you want. This can help minimise unwanted interaction between different CSS style definitions and reduce overall size. Personally, I prefer bulma or tailwind over bootstrap as it avoids also having to deal with javascript and having to bundle js code with your final output.