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 6GHpHDZO7GFFGQAAgWs5BA (envelope-from ) for ; Sat, 22 Jan 2022 19:34:30 +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 iLywGTZO7GHSQAEAauVa8A (envelope-from ) for ; Sat, 22 Jan 2022 19:34:30 +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 DE45E3C394 for ; Sat, 22 Jan 2022 19:34:29 +0100 (CET) Received: from localhost ([::1]:58734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBLDY-0004vU-PD for larch@yhetil.org; Sat, 22 Jan 2022 13:34:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBL0F-0003hY-8R for emacs-orgmode@gnu.org; Sat, 22 Jan 2022 13:20:43 -0500 Received: from [2607:f8b0:4864:20::f2d] (port=42890 helo=mail-qv1-xf2d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBL0A-00075E-IX for emacs-orgmode@gnu.org; Sat, 22 Jan 2022 13:20:40 -0500 Received: by mail-qv1-xf2d.google.com with SMTP id k9so14883217qvv.9 for ; Sat, 22 Jan 2022 10:20:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=v9LW8kLl9/7EoVJiU3OdeUYmUAjDgmt9DdurVtnpDZw=; b=jira6jsHTNYITzFc2kR9RGl45zLjVHbjfhZnD7HX5So3tAwNztAsCRNlVKd5BZYJk9 cAIa8LsqefxEhXJVdZgqKziKd0ZiacYBQEb+l7t5H/qUdTD2z9lV01z09NgZ8T+r6/P1 a/4ne6gVkS35FOW33+kV4soUCK1+o/GqWNgCjowYOtJ8RivchzZRzL7ElT58EiGuJ5Op QsCAs9EGbCbQxG8YnkKNODnBTSWngKykjxsHE4LVzv8CNSgnLXFyYke7Jz+mT8zvvHIU g+gP8CAmXVUeI1h8ywesaibwKjF7Jk3Cc3AQlLMaAKsk2Zkjz3U8a+FihUDJDgesNCiv SPpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=v9LW8kLl9/7EoVJiU3OdeUYmUAjDgmt9DdurVtnpDZw=; b=aR9GYqBvn2f/HCPSg9uFnMbTXib9aifmw5+QRGwuNqnBN6v/KrOUOi7KWtJqwlp248 nHTEHd+i947bisLSgHDcIAI+aqzF2yPkPCy3DJ7HJFdf/95WgESypOEbvVTzUo4G15Be BUZ9/kgbeUehuQPI9lYcfNnXWL8QUGhZg/47I/2WYwilTETSp86VFAmt2QltZPGQ9yEv 3ypRIwWh4MHd3AuENeB9OgxBQity6miqnHccoDnytsIKf8YmdGG5npHqewd1bpmVbRF6 yklqA0nV42tuluuqedFBwShSwfprn3f9Itkb1TmHBExbC0U8EK2AibV3VwyvlqUkmKEO 6q/A== X-Gm-Message-State: AOAM533VPp6ZxP/FpoEgSUfC/mwvOxSv9/FVI90ez/S6fAawUUCfCwXW k/tT7zL5KhoWJxDBZvXy7sk= X-Google-Smtp-Source: ABdhPJwSNl7q5vefaHRrXX+hwLsg/f5/N9gxc+Xsj+5vKl8B3vrk/xRrGg232svtMrqGoyDL6zNZHg== X-Received: by 2002:ad4:5c67:: with SMTP id i7mr8761848qvh.18.1642875636444; Sat, 22 Jan 2022 10:20:36 -0800 (PST) Received: from smtpclient.apple (ool-2f113bf4.dyn.optonline.net. [47.17.59.244]) by smtp.gmail.com with ESMTPSA id u37sm5025890qtc.76.2022.01.22.10.20.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Jan 2022 10:20:36 -0800 (PST) From: xincheng99@gmail.com X-Google-Original-From: ziping@mac.com Content-Type: multipart/alternative; boundary="Apple-Mail=_DC5A31BA-3A47-4718-9180-8573269B8531" Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: Exporting Org file to Html with collapsable headings Date: Sat, 22 Jan 2022 13:20:35 -0500 References: <875yqduvju.fsf@posteo.net> To: Max Nikulin , emacs-orgmode@gnu.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3693.40.0.1.81) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f2d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=xincheng99@gmail.com; helo=mail-qv1-xf2d.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=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-Mailman-Approved-At: Sat, 22 Jan 2022 13:30:10 -0500 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=1642876470; 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=v9LW8kLl9/7EoVJiU3OdeUYmUAjDgmt9DdurVtnpDZw=; b=OJpCJvUPysro/3NPFtzjHDxc07qsuiBcsZfMct3fzI0bUiX9qm9FvO4G+GNijMz4WSgi3R xoOfwZq02CUj7G1+TTPx+gJC8wkLloPC2k+wEvhIJJy6iqM0Ks38ukwSByUSkJCDdVIrHx MSN6tGwhoyj3usRc1A1oM2Tz4OZQaXCA1nb7oKmMmtlqwL6pefTYUGEqQ9vCLQRYQ1tSCz q5qQgwRXrW1RoUe5jfdsW43Chjt2sMQ66opYl3YJDit1zl3j+U1wjVoULnHG427ryZ7Ju5 psPSrx21NAfzOg2XqXu3s59Qs+RUGqwWc7PIfazy4oMQRWJtI0/Sv0OhdnFU8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642876470; a=rsa-sha256; cv=none; b=RNx0F6HllqVg73aPQPK5Zq3gjXAjYltqzzVTRgHzkOjafLKe5YYiDdosMmP7gWhA0xeXwx OyfO6DW9rY/uxiPLNeIls7xG8ggOaIa/ZU7lcKDX9OwGaDx8vzBEXaLvNPb5qJxx4uEWvE MJeWQ//iAMgFi6NlT7Zrvso0aHxQxFvjdv+QfZLbuVe5VRqRcXAc5gzQFVDfiBGKHEoOF2 4uXBSkPua68HnnW8VBhSyENXEGqH8+z6OGGpJOKBTebzpdePVaGktVUK0C7zp1kEL8bX10 InyclvrJ3AZGc2nmVEk0Lwk2GaCryjhyrhTZwWtKSZ98ziAiEgzGY9rxDLQFCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jira6jsH; 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: -9.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jira6jsH; 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: DE45E3C394 X-Spam-Score: -9.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4xf2AybQdn0z --Apple-Mail=_DC5A31BA-3A47-4718-9180-8573269B8531 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks a lot. This is very close to what I am looking for, and saves a = lot of my time. I am grateful to all the help I received from this = mailing list. It is a lot of fun subscribing to this list. Regards Ziping > On Jan 21, 2022, at 11:46 AM, Max Nikulin = > = wrote: >=20 > On 21/01/2022 19:23, Juan Manuel Mac=C3=ADas wrote: >> ZIPING CHEN writes: >>> I may have many things like this in the middle of the file. >>> ************************** a new heading. >>>=20 >>> I wish to turn all layers of >>> headings in org file into collapsable headline to html. >>>=20 >>> 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.=20 >=20 > Have a look at info "(org) JavaScript support" = https://orgmode.org/manual/JavaScript-support.html = (I have not tried = that folding view). >=20 > HTML has
headerbody
elements = that works without JS, but it will require custom exporter. >=20 > You should ensure that deep headings can not be recognized as org = inline tasks. Check ox-html, it may has limit on number of levels that = are exported as headings with switching to lists for deeper structures. >=20 >=20 --Apple-Mail=_DC5A31BA-3A47-4718-9180-8573269B8531 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Thanks a lot. This is very close to what I am looking for, = and saves a lot of my time. I am grateful to all the help I received = from this mailing list.

It is a lot of fun subscribing to this list.

Regards

Ziping

On Jan 21, 2022, at 11:46 AM, Max Nikulin <manikulin_at_gmail_com_fcq2724cv3y0tc_re5x9491@icloud.com&g= t; wrote:

On 21/01/2022 19:23, Juan Manuel Mac=C3=ADas = wrote:
ZIPING CHEN = writes:
I may have = many things like this in the middle of the file.
************************** a new heading.

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.

Have a look at info "(org) JavaScript support" https://orgmode.org/manual/JavaScript-support.html (I = have not tried that folding view).

HTML has = <details><summary>header</summary>body</details> = elements that works without JS, but it will require custom exporter.

You should ensure that deep headings can not = be recognized as org inline tasks. Check ox-html, it may has limit on = number of levels that are exported as headings with switching to lists = for deeper structures.



= --Apple-Mail=_DC5A31BA-3A47-4718-9180-8573269B8531--