From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8EfoNL09NWPOdgAAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 08:39:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iM2dNL09NWORbgEAauVa8A (envelope-from ) for ; Thu, 29 Sep 2022 08:39:57 +0200 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 CBBBF35CB for ; Thu, 29 Sep 2022 08:39:56 +0200 (CEST) Received: from localhost ([::1]:48518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odnD9-000782-Kb for larch@yhetil.org; Thu, 29 Sep 2022 02:39:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odn2M-00049v-Li for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 02:28:46 -0400 Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:32937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odn2K-0005hB-9d for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 02:28:46 -0400 Received: from cmgw11.mail.unifiedlayer.com (unknown [10.0.90.126]) by progateway5.mail.pro1.eigbox.com (Postfix) with ESMTP id 6A8B7100406FC for ; Thu, 29 Sep 2022 06:28:19 +0000 (UTC) Received: from box2035.bluehost.com ([74.220.219.237]) by cmsmtp with ESMTP id dn1voG2EkvlAadn1voIZf6; Thu, 29 Sep 2022 06:28:19 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=S+wcfKgP c=1 sm=1 tr=0 ts=63353b03 a=VozZY++RX3oc2UgfNhVfaA==:117 a=VozZY++RX3oc2UgfNhVfaA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=MKtGQD3n3ToA:10:nop_fastflux_from_domain_1 a=1oJP67jkp3AA:10:nop_fastflux_mid_domain_1 a=xOM3xZuef0cA:10:nop_rcvd_month_year a=DPR-AOO6AYYA:10:endurance_base64_authed_username_1 a=A2tt7buDTgEA:10:from_fastflux_domain1 a=uChsZFC9AAAA:8 a=o9zw6IYYAAAA:8 a=OBf8Qy-wDz0yaygc-WEA:9 a=QEXdDO2ut3YA:10:nop_charset_2 a=-FEs8UIgK8oA:10:nop_fastflux_domain_1 a=ULtXvzFHYWHLyBAuiDia:22 a=BtxB1_lq3pBo68oZtZ_9:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tsdye.online; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-reply-to:Date:Subject:Cc:To:From:References:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ohP5GPjl/nxISYKpHWKfvp8310AiJQSAXjVT4Qfhsyg=; b=Tq5U/qYI1zNLoKqSPT15VabIud wUuJIxf6hU9/5edfRG91Fmk0N1hrEKoP6Tp+GTZOA+hudciXnlVTtgM5xB+56wevCQamEFuUkkaYD 5LP422MchyBCChsAcgArG2B30XonH+VjP1OUjz52wV8aedIHDAoxkqeXJobsoerKsOD+5oDMAsxMu wDh6kOTY8DoYt1NS8MXuuwxR6ldyiNfqRSVJAPIugKNCBorQGG2pVBvhchoMDxJwHWHrBEJCutnij u0U/AYgv1OtS4vBZwOvfbVTv7mGk3AI/ywMMKrFwqEokJTwe6446f+EJ+6d15POP+5Tdj2EgmbfJ+ bv6Jpaiw==; Received: from cpe-50-113-33-148.hawaii.res.rr.com ([50.113.33.148]:43504 helo=poto-foou.tsdye.online) by box2035.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1odn1u-004D6Q-Pw; Thu, 29 Sep 2022 00:28:18 -0600 References: <87h70tyyiz.fsf@posteo.net> <87bkr1ngpm.fsf@localhost> <87pmfg3gp2.fsf@posteo.net> <87v8p8fatt.fsf@localhost> <87leq49bu0.fsf_-_@posteo.net> <87v8p698ki.fsf@localhost> <87sfkaague.fsf@posteo.net> User-agent: mu4e 1.6.10; emacs 27.1 From: "Thomas S. Dye" To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: Explicit page breaks Date: Wed, 28 Sep 2022 20:21:56 -1000 In-reply-to: <87sfkaague.fsf@posteo.net> Message-ID: <87k05melts.fsf@tsdye.online> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box2035.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tsdye.online X-BWhitelist: no X-Source-IP: 50.113.33.148 X-Source-L: No X-Exim-ID: 1odn1u-004D6Q-Pw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-50-113-33-148.hawaii.res.rr.com (poto-foou.tsdye.online) [50.113.33.148]:43504 X-Source-Auth: tsd@tsdye.online X-Email-Count: 3 X-Source-Cap: dHNkeWVvbmw7dHNkeWVvbmw7Ym94MjAzNS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: pass client-ip=69.89.30.42; envelope-from=tsd@tsdye.online; helo=gproxy3-pub.mail.unifiedlayer.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, FROM_SUSPICIOUS_NTLD=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01 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" 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=1664433597; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ohP5GPjl/nxISYKpHWKfvp8310AiJQSAXjVT4Qfhsyg=; b=A98CuuihixAZ2FnL7DwiweygMCZFgI2FDl+eT/1jcEW96hbSI2dS/lB/Y0q4WWDHe4hJ3j a6o8ryb3ZMgNigbdB5zfeU64oWkC44fSSLUQh5VaCCChsSUIsJX86tAOTDa78ixoHWlNQL IrR1jD9GR06NG+JF55+4LM9oigZSo8FFIvjVKyRVx/YmlVToIEVswSk6YzOwXV/Uz0i/mO NmWQPPWLIT7/IKgeeEOS0/4SlxXPcMC1ku3cE6p8XA0teh+P3o1fe0/NI+Avq926xN3BKW wivCVG3/c8muMTDd43Noqsp26gGyoPW8kheYtFMcTnWHrNxcgXEGL/zuBJsyaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664433597; a=rsa-sha256; cv=none; b=j2E+rDVKTLwx72EcjQNgqEid536ZeX6mt4piEuykXOsOhM5qFNX34u7WMkP06nMLdaSOER hw3r6dNXg4np1ICgnRBhJmL8jqlzaYUGDorDOTCP0IQJOBSa+PAFYwHJLphSRKfvKUwHS2 l1GIPaPs+lG9xvmdVkGBoCdU7yZ8/qeaLozygeMVHNOKPeFBAdJgT4ML8BTT7CAXOmOvCH WIfRwy+sxnTMuQvSdFix8jTOr1AHH6XTctJQmBLgGzA4o+PqOXMG4SPqxU1YAUSmzRUAqd cUzrdpwWDZtf1VuGZZE6X5/76O4mAyH7oQg1OPpFInxR8r5JfQ94tKV58TVsWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b="Tq5U/qYI"; dmarc=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" X-Migadu-Spam-Score: 1.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b="Tq5U/qYI"; dmarc=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" X-Migadu-Queue-Id: CBBBF35CB X-Spam-Score: 1.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: QH2h/HZmhZ9Y Aloha all, Juan Manuel Mac=C3=ADas writes: > Ihor Radchenko writes: > >> Do note that page breaks may or may not lay between paragraphs=20 >> or Org >> elements. By its nature, page break is an object (in Org=20 >> terminology). > > Indeed, page break can be placed anywhere. But inserting it=20 > before > paragraphs, at least in Org, is the least compromised by the > idiosyncrasies of each format: odt or LaTeX. And the most > format-agnostic. And on the other hand, in LaTeX and odt it's=20 > also the > safest place to put them, unless you want to add some=20 > fine-tuning in > either case. > This doesn't reach to paragraphs, but tags do a good job of=20 inserting \clearpage and \newpage before a section heading in=20 LaTeX export.=20=20 ****** Rasmus filter headline tags This function was improved by Rasmus Pank Roulund based on one I=20 had cobbled together from pieces posted on the Org mode mailing list. #+name: rpr-filter-headline-tags #+begin_src emacs-lisp :results silent (defun tsd-filter-headline-tags (contents backend info) "Ignore headlines with tag `ignoreheading' and/or start LaTeX section with `newpage' or `clearpage' command." (cond ((and (org-export-derived-backend-p backend 'latex) (string-match "\\`.*newpage.*\n" (downcase contents)) ;; if you want to get rid of labels use the string ;; "\\`.*ignoreheading.*\n.*\n" (string-match "\\`.*ignoreheading.*\n" (downcase=20 contents))) (replace-match "\\\\newpage\n" nil nil contents)) ((and (org-export-derived-backend-p backend 'latex) (string-match "\\`.*clearpage.*\n" (downcase contents)) (string-match "\\`.*ignoreheading.*\n" (downcase=20 contents))) (replace-match "\\\\clearpage\n" nil nil contents)) ((and (org-export-derived-backend-p backend 'latex 'html 'ascii) (string-match "\\`.*ignoreheading.*\n" (downcase=20 contents))) (replace-match "" nil nil contents)) ((and (org-export-derived-backend-p backend 'latex) (string-match=20 "\\(\\`.*?\\)\\(?:\\\\hfill{}\\)?\\\\textsc{.*?newpage.*?}\\(.*\n\\)" (downcase contents))) (replace-match "\\\\newpage\n\\1\\2" nil nil contents)) ((and (org-export-derived-backend-p backend 'latex) (string-match=20 "\\(\\`.*?\\)\\(?:\\\\hfill{}\\)?\\\\textsc{.*?clearpage.*?}\\(.*\n\= \)"=20 (downcase contents))) (replace-match "\\\\clearpage\n\\1\\2" nil nil contents)))) #+end_src Hope this helps. If not, sorry for the noise. All the best, Tom --=20 Thomas S. Dye https://tsdye.online/tsdye