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 8BsNN7pJpWYNlwAAqHPOHw:P1 (envelope-from ) for ; Sat, 27 Jul 2024 19:25:47 +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 8BsNN7pJpWYNlwAAqHPOHw (envelope-from ) for ; Sat, 27 Jul 2024 21:25:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722108346; 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; bh=st+N2upO/lL4Bnj80VQkpS5fsvLf84YBgqDAtIWB6W4=; b=k1WEA4AjdEtJcVFtnmqFqVtG+q/iuh1WIqYjGtxCJGKSJXawVTa46M8/ff3e+LqIXXwgKQ EklfeZ0NyRzn/EjIlUPRPLXzyGgKFjsg6M+9cQjmtJ5TQ3StgSH9XR/gTmMMi4Ikedsjq2 bNRvaaRPq5Wy1CtfohngYLvU4r0T9Ri0s6o68LqVAgdVDPoq8m3hOGoH2nfDC9eZV1YCJi Ya91jn3vL99fqgDEO+M1dbBKBPqVWMxBxALDCBj2u7v1+ryn6sdla+z8vQuN1AaZ4Nd/yl 4hjkU/ZuiSNQGF38ms5h1+uCFI3STwzXrs8ir3GaJb8L2efvSgDdoZc1Pz2OXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722108346; a=rsa-sha256; cv=none; b=f+RrYmcr7QT+FRMAqhpzogI0TU/4FMB/JsXhEC5IkSRy96rruI/kvOQSQgyY3gYk6SH15O b0bdqv4ALpiclWGBosqUZzu8bA74L2r0d4sT4Iz9RzSHOq9043rCgoWD4cyJOYjHGDXCpM Lvs388STsRXNn7Jv4tLFxEaicX9t77WmA7z6RUXWX7JB+9Aym4hkkibfDbOczpylhrVr6A tXfLOOwQVSdWZI+E8uX7CpNA8NoksryEjeHkQFjmr0KYFUnxn7yuoLdrHlozyDgQEdPKsR zbn22EOGQoXFN4Cc/tqi+5slrgUvwvqrecnHZUcSaPfZG3Dx3AadMPSc79rIJA== 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 9C3E23ED2F for ; Sat, 27 Jul 2024 21:25:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXn2J-0001pQ-SO; Sat, 27 Jul 2024 15:24:59 -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 1sXn2H-0001pF-Iq for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 15:24:57 -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 1sXn2F-0006il-Om for emacs-orgmode@gnu.org; Sat, 27 Jul 2024 15:24:57 -0400 Received: by mail.selma.hfmdk-frankfurt.de (Postfix, from userid 113) id DC178F623C7; Sat, 27 Jul 2024 21:24:52 +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 C3A3AF6175D for ; Sat, 27 Jul 2024 21:24:50 +0200 (CEST) Received: by selma.hfmdk-frankfurt.de (Postfix, from userid 1000) id 58CBB3960565; Sat, 27 Jul 2024 21:24:50 +0200 (CEST) Date: Sat, 27 Jul 2024 21:24:50 +0200 From: Orm Finnendahl To: Org mailing list Subject: Re: multipage html output Message-ID: Mail-Followup-To: Org mailing list References: <874j8gz9qh.fsf@localhost> <87bk2o2o2m.fsf@localhost> <87sew011c6.fsf@localhost> <87frrzdrbz.fsf@localhost> <87plr14wka.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87plr14wka.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9C3E23ED2F X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.82 X-Spam-Score: -5.82 X-TUID: 9V1SKzmg9Kjs Hi, html multipage output is fully working now in the org-export compliant way sketched by Ihor. There is a small issue with org-export-as from ox.el: On my machine applying the :filter-final-output functions to the final output strings delete their :output-file Text Property. Below is a commented somewhat ugly fix just to show what was necessary to make it work. Maybe you have a better idea about how to change it. (let* ((output (or (org-export-data (plist-get info :parse-tree) info) ""))) (setq output (ensure-list output)) ;; we need to capture the :output-file properties as they ;; might get erased in the following filter stages. (let ((output-files (mapcar (lambda (o) (get-text-property 0 :output-file o)) output))) ;; Call citation export finalizer. (when (plist-get info :with-cite-processors) (setq output (mapcar (lambda (o) (org-cite-finalize-export o info)) output))) (let ((filters (plist-get info :filter-final-output))) ;; Call final-output filter and return result. (setq output (mapcar (lambda (o) (org-export-filter-apply-functions filters o info)) output))) ;; Apply org-export-info property and add back the ;; :output-file property. (setq output (cl-mapcar (lambda (o file) (org-add-props o nil :output-file file 'org-export-info info)) output output-files)) (if (length= output 1) (car output) output))) I will now review the code and test thoroughly before issuing merge requests and adding documentation but it looks good :-) -- Orm