From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8Ik8OoPvpGYrKgEAe85BDQ:P1 (envelope-from ) for ; Sat, 27 Jul 2024 13:00:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8Ik8OoPvpGYrKgEAe85BDQ (envelope-from ) for ; Sat, 27 Jul 2024 15:00:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XTH7bEFY; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722085251; 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=mPg010W+loY0KeZKAngdvddbfdVNr58YR39QIOd76+o=; b=D7a+w+TJQFqvb4M4NjgxpznmAJKcUniPSMzOG6vvIHdPTLvctTfyTSOJf9XqYNJb/++AP+ cY3n2+Feik6QPIlD/QqVO/zGxhyKY1Qg0jRbynJpA19M7620ZCBgSeE6JGa0EQtE4GjxVN hwE2vvTUWA8PwoinMmkSxNiSaRj8tcvbe5IAb9FAUmrzJwq7kZR+yUkJP29RNPYMdgGPRC ag9RVsGzGfnsq0ROb6nLOmsrHv0lDJAb5LuuSxNKJDOVz0BlsDj11Kv9WYY5HI/xajFRKr HZJtMKuKjP3rIRHD8VXiT3e5et95GwwCTxP/gV6eHKrANgq13DANddRS+cu1hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XTH7bEFY; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722085251; a=rsa-sha256; cv=none; b=ET3+Ug1DSBsHfYFDTpKql999oUuMBogM0VOw4nZhpPWbXUuBGH4QURsOaW+7D/2MQs1C7g aek7Uv2NGDQZjVZMGNxzrRyq0NsfvPnPvIkeUn8T7ikxSxjdl1RLIGdsIQzTrSkStPs/v+ mqmrSB1hVNnqrILTgQ2h9crJJIawy9mNyj/bqeBuV7QCSDVcNGZCKY3V2cPuBzHGdLpwNb am8qAvja0rqgTZA/0nqr63Qe2PT+C8NnPIJnbBUBSiQDynthdSxYhzDNcoB9obz1Pca/Kh KwFcBcMXqsvpytdXEGDegbpKUEIlFBkDPVVyrjMlCC9SSoEve0ES7ZYFbz2OuQ== 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 7CDA16B276 for ; Sat, 27 Jul 2024 15:00:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXh1g-00057a-40; Sat, 27 Jul 2024 08:59:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXh1e-00056m-9j for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 08:59:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXh1c-0006Tp-5K for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 08:59:54 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BD492240028 for ; Sat, 27 Jul 2024 14:59:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722085188; bh=+zR3U33noRfVv/FY6FWV07JbW6zl7uV319GRnpS/L94=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=XTH7bEFYfFBjZ7k3l8I4Adu783sEoMEpu/Q69RN8sNa1AaRXgUp1WTcWzKr0l1qQX X1817XOWxo1CAoiE301pHSO2zXPXFyE1B53lIeo/r/acSh4CAlYNsnD/J4HfFaFMwD yOzvJDrZ/5CslU2EQUgE6yYIJvjvsuCzMS1zmtLL9NTFVZ5DrkCjVvkFaTgyO5i/Y0 c30/27wWWr8Hxl6GgjUHQxmuPOLvLk6bYwj8tpTp7ByBPzu9Q8kOytGLHL+EYmu+Y1 vKjdCf/Qaq9AgOEAg9pPfgjyrFpQ3XddX+aXimYcjzYm50dtsMnGxFRHmWpt2uKaH/ 8r0VgP2v7Gs4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WWPpr02qYz6twH; Sat, 27 Jul 2024 14:59:47 +0200 (CEST) From: Ihor Radchenko To: Orm Finnendahl Cc: emacs-orgmode@gnu.org Subject: Re: multipage html output In-Reply-To: References: <87wmlp38gr.fsf@localhost> <874j8gz9qh.fsf@localhost> <87bk2o2o2m.fsf@localhost> <87sew011c6.fsf@localhost> <87frrzdrbz.fsf@localhost> Date: Sat, 27 Jul 2024 13:01:12 +0000 Message-ID: <87ttgbat0n.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.64 X-Migadu-Queue-Id: 7CDA16B276 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.64 X-TUID: 2KQOpeo5S2Kx Orm Finnendahl writes: >> 1. You can use :filter-parse-tree in ox-html backend to replace the >> original (org-data ...) AST with a list of ((org-page ...) >> (org-page ...) ...) pseudo-elements and populate INFO channel >> with auxiliary information you now compute in >> `org-html-process-multipage' > > :filter-parse-tree kicks in before > `org-export--collect-tree-properties' adds the headline-numbering, > which needs to be present before the multipage code can do its work. Your concern raises a more important question on headline numbering across individual pages. It may or may not be desirable to have fall-through numbering of headings. I can see how some variants of multipage export may choose to number headings either using continuous numbering across the pages or to restart the numbering for each page individually. Moreover, things like :headline-offset or citations may or may not need to be computed across the pages. :headline-offset should probably be limited to a single page, for example. For citations, multiple options may be considered (think about numbered references that may either be global across the pages or local, per-page). To address the above concerns, we will probably need to introduce global :multipage setting alongside with multiple others (like settings controlling headline numbering). Further, we will need to make sure that the splitter runs last, after normal split functions, so that nothing can interfere with it. But for now, let's do minimal required change that does not introduce too many new things and simply modify `org-export--annotate-info' as the following (setq tree (org-export-filter-apply-functions (plist-get info :filter-parse-tree) tree info)) (setq info (org-export--collect-tree-properties tree info)) (when (plist-get info :multipage) (setq tree (org-export-filter-apply-functions (plist-get info :multipage-split) tree info))) (when (plist-get info :with-cite-processors) (org-cite-process-citations info) (org-cite-process-bibliography info)) :multipage-split and :multipage are new global export options. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at