From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 aBUmLwY6PWMFHgEAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 10:02:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yJdhLwY6PWOHBAAA9RJhRA (envelope-from ) for ; Wed, 05 Oct 2022 10:02:14 +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 626D4FCF8 for ; Wed, 5 Oct 2022 10:02:14 +0200 (CEST) Received: from localhost ([::1]:57826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofzM5-0003tF-Ga for larch@yhetil.org; Wed, 05 Oct 2022 04:02:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofzIz-000371-E4 for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 03:59:01 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:44887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofzIx-00012O-FK for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 03:59:01 -0400 Received: by mail-pl1-x62d.google.com with SMTP id x6so9489055pll.11 for ; Wed, 05 Oct 2022 00:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=xXEbJP4yTbRrIRjSyTl3GWkhsVgIfDJ4t4SgnDE2Riw=; b=bIx6z4De2vnWy+xZUf8eP0/pAqbfU42RcZNvAv1QV990KuGIiZt2ZCPwV96oR2k+rI STQDt5TrYEvXt46dnggsnSuPPvPrHDsIoFdt16v85YViMeDhEvMEQc5wcbhjN87VXm1G 3RKjjr/PqPiXXv8AoWKsCHXYhzpi1/25U12jePcBGuWGSbk+kpVOUUL/6rnrM3KOW2NI uGlRrnl7OLpiMbveWVncTtA//2rlh5I5gSWkyWkrLd6+7J4M1WosrxwFQizItQAHfakv S4Ihbupr8J/ooe6Je3Yt82Hy8IioOW4/jRLCm0I/2sGwwNt/UbR8NJGNAzVD5kucmf5V 76Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=xXEbJP4yTbRrIRjSyTl3GWkhsVgIfDJ4t4SgnDE2Riw=; b=gKzQATLYXNl66MywkGVuY+jr3ZO4GFq6oeFulyk+a2PaLYQt/NhATieOEm6gbfEi5/ Z8qtBmTuzlDAaiCS8GFzzqladRSESEB8bUYuqpK85ujpIgC5CtOHpc888RcbVJBY+kSm +r0DDKvieZWVbIjc4ETYvrWh+K9NqwHnigaqqy0u0MQoQa10J7GH7ST+jnQrcXgAMP6s 0lfe3q90iGCClPxKmw4pxkxkJwRzxIIZalh0Pd/wboHas71Pnm3tlr4j4zEzDihhMmpa 1m4hRn603RP+de0SSRhwxEtUZZhq+NQa2vs6A0i7iJwJMmWWODkVHMXTwJ1hUikbnS/d Exmg== X-Gm-Message-State: ACrzQf2+KQjLa2qYW36c1/A87t3x6fogArpqOxTQkJdvEfQMZmkH+WAd tJC8XFFsFX7xZCmWC06gc+Q= X-Google-Smtp-Source: AMsMyM7w61BXksA9EJytSSFSbZJHmFeotl1QNm5fpHeGRAPjr3jquTSuDtl22PQliw+BnHtbPTmyAA== X-Received: by 2002:a17:90a:6883:b0:20a:d58b:d690 with SMTP id a3-20020a17090a688300b0020ad58bd690mr3882044pjd.241.1664956735083; Wed, 05 Oct 2022 00:58:55 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id c8-20020a170903234800b001783f964fe3sm7798434plh.113.2022.10.05.00.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 00:58:54 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: Explicit page breaks In-Reply-To: <87ilkzqqvm.fsf@posteo.net> 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> <87v8p1wf81.fsf@localhost> <87ilkzqqvm.fsf@posteo.net> Date: Wed, 05 Oct 2022 15:59:46 +0800 Message-ID: <87sfk28zv1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" 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=1664956934; 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=xXEbJP4yTbRrIRjSyTl3GWkhsVgIfDJ4t4SgnDE2Riw=; b=PxvDMcFv9V+rip1NcXyfbNB1EQ4qw0HgVjqCs4GT8vcWDTExchcNAOThDbiYkN9D9Sad4n vWhk4WRYr7iLXv2e+oewXwawolnqETC2UH28pWkS1JVIakDYY0v2RHV5MMTPil0U1Jw3KE XWPGKyF1a8ul1gQtZJfDZFx25rcCfWHY93asCiPLJQC2Vpl6WjZIEvRR65TdCXsJ9YiOs/ Ot2XLT++lvmp0dSzBKBL86LFAusW6s6HLOt2Co04hsGOseZZDLXURFb3mwdpxCD3b9TghE MHaamq/b2FFW7c4Vun6yyBRTTg+bUP9D9DDOnbJuqzSozXikEPINsGK7AM73Aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664956934; a=rsa-sha256; cv=none; b=ARUZpzifobSx2t2idKfzzohWjLmOV5ScIaxFN9l5561d/XLMBB7sOLX/f5M3TLU0Yk9y1K KJZ5X5kMzXzfJChjOHJCs+YcRwEtewFBxoTZu09hUN1RwrwY+dEfs9bW2E+SpEVEFBBfux 9ZNpWTqRzw0zj1OlOjD/8uIXmhYRRKLnAAzDkMTlTRHLOzMaHUBBVo7Gi/UNT7ssPt/Sfg I3FHcsBBrKbwrFkUDctczlZ8n2SZSSiDcUWY+IDxnqrk78fEinux9hyJLwU5zSldxnjSMN ZoGsTXKtBOgCPebdgOcj7djT10ajCqcJlBtkmnyTffuC4vi5Qps/KSLASEWOuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bIx6z4De; dmarc=pass (policy=none) header.from=gmail.com; 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=pass header.d=gmail.com header.s=20210112 header.b=bIx6z4De; dmarc=pass (policy=none) header.from=gmail.com; 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: 626D4FCF8 X-Spam-Score: -1.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: lHpprm1kWVrC Juan Manuel Mac=C3=ADas writes: > Ihor Radchenko writes: > >> May we introduce a new standard macro {{{page-break(backend)}}} >> that will expand to an appropriate >> @@backend:> ? > > The macro seems like a good idea. The only (minor) inconvenience that I > see, if I have understood it correctly, is in the case of LaTeX, where > there are several commands that do different things: \pagebreak, > \clearpage, \newpage, etc. > > Since \pagebreak is a more low-level command (introduces a hard break), > it could be left as the default command \clearpage, which starts a new > page and ends the old one. I don't know... > > By the way, in LaTeX there is also the opposite of \pagebreak: > \nopagebreak, with a mandatory level from 1 to 4. I see this type of > commands more useful for defining new LaTeX commands than for inserting > them directly into the document. Hmm... Then I am wondering about the utility of page break macro outside odt export. > And, in any case, I think this page break topic is most useful > especially for odt, which only has a hard break (and also splits the > paragraph in two if added inside the paragraph). For LaTeX, after all, > putting things like @@latex:\pagrebreak[2]@@ doesn't involve much > verbosity. > > Anyway, the opendocument schema is completely arcane to me. I have taken > a look at the Org Manual and it says that this snippet adds a page break > in odt export: > > #+odt: > > But I have tried: > > foo > > #+odt: > > bar > > and the document is not exported with the page break. I don't know if > I'm missing something. But as i said, XML is beyond me :-). I missed this part of the manual. If adding page break is this easy, I am not sure if we really need to bother with macro. The only thing might be adding the PageBreak style into etc/styles/OrgOdtStyles.xml, which you likely missed. (see *Hint* in the manual). Or we may also add {{{odt-page-break}}} macro for odt specifically. --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92