From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +EQ9A9e7n2Y5BgEAqHPOHw:P1 (envelope-from ) for ; Tue, 23 Jul 2024 14:19:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +EQ9A9e7n2Y5BgEAqHPOHw (envelope-from ) for ; Tue, 23 Jul 2024 16:19:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=btwiXctL; 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=1721744343; 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=HYY0gBsLsp3k6dr13CuVIc/zqFCrArlznMC3OcnMjqk=; b=or3St4ED8+0fuH0ZocgQxCMLbbjd5gpYO85krRsHh3UZSw5IevIgjdwKUbxGdovXa3W3Kl 3mnEjKTvBkQrTU9QtrF0cFeKWPsf47CSwdjC427gvuQ62UD8koqOFOwoHQAI1Z3WfmlTdW DBgCImlyUgkUM1kwP6mUh77JH00PiPrUNYIi5fpJJgjdQTCxRqOSPQVhJ/ZJ9Gp4zAGsT1 09Db9MUypQsYLVC9XSQLGhTRFjhUQ0/8KAnmM36axqy5FNXi9V5ETI21ZzFl5BBQOcPdPf Yz75lZjPVZdN6t0QgbmbaxrdAi7/eVyjujGGuD0W3uwJC5wAO6c9bHPmJFQkIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=btwiXctL; 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=1721744343; a=rsa-sha256; cv=none; b=fP8qT5DtO07n1Man9bSGihEfFRBKK9YqLSYDs8INDl0W4OrqSDZraz69+sMfDsu/CIPtpa s7Vk7LEKJPWwG3TTi0rTeEztu3nl45inCjDTcjph/czrARfjQVZpFq44u7CZIm6skRWc7M /H6h9QAvPHdSM9tNFoO883FMYnXWbSdzWreFuHL9d7se/fe3kpR+ZyAOPA/D5jNM8uVD/Q AdxVleFpjkYWU+xQR83ZxBGMW27EPRB6sTTGadrjZDmSrlNynDeDyGUv8YwVbP5oGy3pIw y6X8hDWB8uHiWodwf3C9rWvAtzLFN/V/pdvAlU6QuZh/f948gX0bRpnKpbREjQ== 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 9D8AB104E9 for ; Tue, 23 Jul 2024 16:19:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWGLF-0000Va-4v; Tue, 23 Jul 2024 10:18:14 -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 1sWGKh-00070t-IO for emacs-orgmode@gnu.org; Tue, 23 Jul 2024 10:17:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWGKe-0007Rt-F3 for emacs-orgmode@gnu.org; Tue, 23 Jul 2024 10:17:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2E714240103 for ; Tue, 23 Jul 2024 16:17:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721744253; bh=0E+vVYQIZ0HpR1IOFJb02hCsu6eUtJZT4B6N1TD0WnI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=btwiXctLsFztAEqw/j/39wfTVOQcioq2wJF0Eq0QWlNH5WmnSsaTkj8hWccGsy+S3 LQLfWrdt6A+UtnZJG0PNgY/lewTJW3zRa0WtXcVOIhvVWzIn1AYauOr6sM8zjSSFZN ADDkdYu7fdMuphCA6E95WU95w9Xo+pmfssZwP8W/jOujM37gZmZng3/juIuq7cFs9R 8KLUk75KWS9xtTLPXJJWYri03J9UviAsDM9PlexulQuIReE6jpLQ8NnJxfz9Ot6IuH nh3Jutwcf12IawHI9m8ObgnxviQJgdiXPZam2wfxfQ7KcTLZjIT36L6PbV8KAsLFRL DjClIR+rK3PVw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WSzkN5b4dz6twC; Tue, 23 Jul 2024 16:17:32 +0200 (CEST) From: Ihor Radchenko To: Orm Finnendahl Cc: emacs-orgmode@gnu.org Subject: Re: multipage html output In-Reply-To: References: <87o777zxkv.fsf@localhost> <87r0c2781h.fsf@localhost> <87r0c05com.fsf@localhost> <87wmlp38gr.fsf@localhost> <874j8gz9qh.fsf@localhost> Date: Tue, 23 Jul 2024 14:19:00 +0000 Message-ID: <877cdc2nu3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@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: , 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-Migadu-Queue-Id: 9D8AB104E9 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.64 X-Spam-Score: -9.64 X-TUID: kNgYa0QkIVJX Orm Finnendahl writes: > ... I think printing > headline numbers should get handled in the transcoding stage of the > backend and not before. I am confused here. What do you mean by "printing"? > ... Multipage export behind the scenes is > completely dependant on headline numbering, even if headlines aren't > displayed, so the code in ox.el first proceeds, as if headline > numbering is turned on and moves the check for headline numbering to > the transcoding stage. I didn't change the behaviour in the > single-page html situation. Although I think that it might make sense > that headline-numbering in general only gets checked at the > transcoding stage that would affect all backends, so I didn't change > anything. I am again confused. There are three main functions handling headline numbering: 1. `org-export--collect-headline-numbering' 2. `org-export-get-headline-number' 3. `org-export-numbered-headline-p' `org-export--collect-headline-numbering' is evaluated unconditionally, regardless of num:t or num:nil settings. `org-export-get-headline-number' and `org-export-numbered-headline-p' are API functions that get called by the individual backends as needed. If they deem it necessary to ignore :section-numbers setting, they are free to. What is wrong with these three functions? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at