From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kPb7IoADpWYu5AAA62LTzQ:P1 (envelope-from ) for ; Sat, 27 Jul 2024 14:26:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kPb7IoADpWYu5AAA62LTzQ (envelope-from ) for ; Sat, 27 Jul 2024 16:26:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722090368; 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; bh=x218F2m3bBwHbN4733HAR8gebdz5k+euN9k7OjtfCVk=; b=WQko4iayaXTmNFc3M+RNhGOU8O1J+F10gibchMu4/ef5DGp3vgZtfHdPVzYxAlttmwEiBF xhT/vKw+LcCUEqM4ycSHkrDOoWXWstyEscYKeWGqT3c2qPXUw7xUwt/3NUY9DWhfdmfWJI taYOiD0y+8rh1DtKIwZmj6a808oDGqMjOdrHTTjJvEqJfWTbaP8IiUBw/cG0GXEuSbo8QW 7T4WAOFt5yAH4tMc2KvPF0DXHv6VU9uAGosAD0MaK8n/wCF40VHYJgDhzqRxxGEq9Rqbuj y7ok6j9inEBq1kMkBjG+IqiKhCinrdjZj5rz/3Kwr68k4eDSw+ziWQalRg/8RA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722090368; a=rsa-sha256; cv=none; b=SP1l5mezxSeLG1t/a0E6wQi+wdqzU+fdpE7t3zthud3ycLFEvtO40qpzYjRstkoFGH8DLp 4kxT/qutmodTbOEQP/hPUbGNHPlESIxH+9AZrtedX/tb5Q7TaA/6EoNxxtVJaT56X+wh4e sYQxzVgG0cyEwJH71MKmVO/mq8zdiNZLrykhzh/qKsNNTdr6Oa+P7bV8CSpkR5LHbZnLix aINUhOKu22T2dahDn3NeGWqIrNUls2MvTPsTpZzNtguTk2M0yxtHVivek7pld9kbyoiR+/ UcYdtn7ufI+6Eqmyk5P8vUKKRMCSttRL7rvoTiiDVfpMbIcqvxF0dHLTFHnAqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none); 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" 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 24A426ACA6 for ; Sat, 27 Jul 2024 16:26:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXiMG-0003r6-J9; Sat, 27 Jul 2024 10:25:16 -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 1sXiMF-0003qv-0n for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 10:25:15 -0400 Received: from www.selma.hfmdk-frankfurt.de ([46.4.92.145] helo=mail.selma.hfmdk-frankfurt.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXiMC-0001BH-KF for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 10:25:14 -0400 Received: by mail.selma.hfmdk-frankfurt.de (Postfix, from userid 113) id DC333F6175D; Sat, 27 Jul 2024 16:25:07 +0200 (CEST) Received: from selma.hfmdk-frankfurt.de (ip-037-201-128-004.um10.pools.vodafone-ip.de [37.201.128.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by mail.selma.hfmdk-frankfurt.de (Postfix) with ESMTPSA id AE0C6F6175D; Sat, 27 Jul 2024 16:25:05 +0200 (CEST) Received: by selma.hfmdk-frankfurt.de (Postfix, from userid 1000) id 5C83A3960565; Sat, 27 Jul 2024 16:25:05 +0200 (CEST) Date: Sat, 27 Jul 2024 16:25:05 +0200 From: Orm Finnendahl To: Ihor Radchenko Cc: Org mailing list Subject: Re: multipage html output Message-ID: Mail-Followup-To: Ihor Radchenko , Org mailing list References: <874j8gz9qh.fsf@localhost> <87bk2o2o2m.fsf@localhost> <87sew011c6.fsf@localhost> <87frrzdrbz.fsf@localhost> <87ttgbat0n.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87ttgbat0n.fsf@localhost> X-Disclaimer: Why are you listening to me? X-Operating-System: GNU/Linux Organization: Hochschule =?utf-8?B?ZsO8?= =?utf-8?Q?r?= Musik und Darstellende Kunst Frankfurt, Frankfurt, Germany Received-SPF: pass client-ip=46.4.92.145; envelope-from=orm.finnendahl@selma.hfmdk-frankfurt.de; helo=mail.selma.hfmdk-frankfurt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 24A426ACA6 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.82 X-Spam-Score: -5.82 X-TUID: ucWIMu8OySf/ Hi Ihor, that's spot on what I wanted to suggest, thanks! -- Orm Am Samstag, den 27. Juli 2024 um 13:01:12 Uhr (+0000) schrieb Ihor Radchenko: > 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 >