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 0PkLL6vwx2IUSAAAbAwnHQ (envelope-from ) for ; Fri, 08 Jul 2022 10:54:03 +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 gJsPL6vwx2LwbwEA9RJhRA (envelope-from ) for ; Fri, 08 Jul 2022 10:54:03 +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 2BA4E16DD3 for ; Fri, 8 Jul 2022 10:54:03 +0200 (CEST) Received: from localhost ([::1]:55326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9jkQ-0005AG-7e for larch@yhetil.org; Fri, 08 Jul 2022 04:54:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9jii-00059u-JF for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 04:52:16 -0400 Received: from smtp152.vfemail.net ([146.59.185.152]:37011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9jig-0003OC-KM for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 04:52:16 -0400 Received: (qmail 10585 invoked from network); 8 Jul 2022 08:52:12 +0000 Received: from localhost (HELO freequeue.vfemail.net) () by smtpout.vfemail.net with ESMTPS (ECDHE-RSA-AES256-GCM-SHA384 encrypted); 8 Jul 2022 08:52:12 +0000 Received: (qmail 69305 invoked from network); 8 Jul 2022 08:51:37 -0000 Received: from localhost (HELO nl101-2.vfemail.net) (bmE=@127.0.0.1) by freequeue.vfemail.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Jul 2022 08:51:37 -0000 Received: (qmail 69020 invoked from network); 8 Jul 2022 08:51:20 -0000 Received: by simscan 1.4.0 ppid: 69016, pid: 69018, t: 0.0086s scanners:none Received: from unknown (HELO www.vfemail.net) (ZWRnYXJAb3Blbm1haWwuY2M=@192.168.1.192) by nl101.vfemail.net with ESMTPA; 8 Jul 2022 08:51:20 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 08 Jul 2022 08:51:54 +0000 From: edgar@openmail.cc To: Org Mode List Subject: Re: Ignore, skip, omit headline when exporting to LaTeX In-Reply-To: <87r12w2o0y.fsf@localhost> References: <20220707200001.Horde.GlDjC8rChDMguFW-x0ZUKIp@www.vfemail.net> <87r12w2o0y.fsf@localhost> Message-ID: <1ca28172122e6d28266921a441dff63c@openmail.cc> X-Sender: edgar@openmail.cc User-Agent: Roundcube Webmail/1.3.17 X-Remote-Browser: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0 X-Originating-IP: [2405:8100:8000:5ca1::35a:d6e7] Received-SPF: pass client-ip=146.59.185.152; envelope-from=edgar@openmail.cc; helo=smtp152.vfemail.net 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657270443; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=aS1cTzD210h2rWYncNikPs0DsFFVhZPaYSscMGmJYGY=; b=GDXXOV9ffQihTvFfde/jUvyrX/JHaBja9TleyvS4nloAhucM46NFE8C5eXwx+0ZwOx5+nB dYPgjyPkGjOVK0O6UK4zdWf14Gx3TCXEbjzHrwZ2na7ar/aRD7OT4vgj+8uHMrT82Ttqq4 WGfKVx8dj3t8ExaG3/5yPBzpMvMHWkhwszimYTSJh1t9ZRab6bCjRaENc9GwQFhMLyGNYd gOtc8NPfxDb1VeLoIejL0VGFM/PNoM7hHYwA99qBqkWSmZ5nK5utM5DLHVu3CM79AUsM2N WAJws1OvTjzN8Ds3XoYOs9MbT6c0KPsByQEN2IFn+eftOMZuAb6BWOcKdZ0N6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657270443; a=rsa-sha256; cv=none; b=VK9+vqmd0uwFRoxyuquPoL+GQ/mvzLnC375aMaialQnt5rQ8niB2qu5yTA7z0lZ7OshGqK BYTa2DVFoxhcVK0lqZBru5u0Eswh+mHYPyWWOiC/Lw2QzLhSUWV5vdVYTmFmKrKQ7eiSiA 5rp+IwH/5FiMACNG0F2LsW1+vD7y+uKOS8Eph0gGHuYmWvejKuuPkFZVGh9JnSRMIr5hEy PBUe8Jswwc2fveB8fPocQTj/tQOszMQdlKcD4O4pNvT9NApk9aBSvK61QaFOrqkduqj0t1 qCNaz2/pmoVxLikS+2Pok/BBXc2g8xjhONL3KDCrH19vEtxcfNAkrKko8J4mZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.74 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 2BA4E16DD3 X-Spam-Score: -2.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3HEm3oyFnXRS On 2022-07-08 05:04, Ihor Radchenko wrote: > edgar@openmail.cc writes: > > > This is on topic and can be useful for others So, there should > be no issue with > posting this here Thanks! > Note that this modified version of the function is derived from > org-export-ignore-headlines from ox-extra.el [1] Thank you for the link. > However, a part of the original function code is omitted. > AFAIU, this version also discards the headline contents, in addition to > the headline itself (unlike what org-export-ignore-headlines does). Sorry, I just had the version from 2014! :P As mentioned in the comment of the new function, I just added a conditional and replaced "ignore" with "ignoreltx". As a suggestion, it could be possible to replace "ignore" with a variable and use another variable such that the headline is omitted when other export types (latex, html, etc.) are used. In any case: Thanks for almost 20 years! > [1] https://git.sr.ht/~bzg/org-contrib > > Best, > Ihor To you too! ------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!