From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6Fx3Au87x2JP6QAAbAwnHQ (envelope-from ) for ; Thu, 07 Jul 2022 22:02:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qHRZAu87x2LRUQEA9RJhRA (envelope-from ) for ; Thu, 07 Jul 2022 22:02:55 +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 A995F1E890 for ; Thu, 7 Jul 2022 22:02:54 +0200 (CEST) Received: from localhost ([::1]:33762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Xi7-0008LN-Jn for larch@yhetil.org; Thu, 07 Jul 2022 16:02:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9Xfp-0007Jo-SV for emacs-orgmode@gnu.org; Thu, 07 Jul 2022 16:00:31 -0400 Received: from smtp152.vfemail.net ([146.59.185.152]:57887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9Xfk-00047u-IX for emacs-orgmode@gnu.org; Thu, 07 Jul 2022 16:00:27 -0400 Received: (qmail 3034 invoked from network); 7 Jul 2022 20:00:19 +0000 Received: from localhost (HELO freequeue.vfemail.net) () by smtpout.vfemail.net with ESMTPS (ECDHE-RSA-AES256-GCM-SHA384 encrypted); 7 Jul 2022 20:00:19 +0000 Received: (qmail 93311 invoked from network); 7 Jul 2022 19:59:44 -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; 7 Jul 2022 19:59:44 -0000 Received: (qmail 91870 invoked from network); 7 Jul 2022 19:59:27 -0000 Received: by simscan 1.4.0 ppid: 91862, pid: 91868, t: 0.0208s scanners:none Received: from unknown (HELO localhost) (ZWRnYXJAb3Blbm1haWwuY2M=@192.168.1.192) by nl101.vfemail.net with ESMTPA; 7 Jul 2022 19:59:26 -0000 Date: Thu, 07 Jul 2022 20:00:01 +0000 Message-ID: <20220707200001.Horde.GlDjC8rChDMguFW-x0ZUKIp@www.vfemail.net> From: edgar@openmail.cc To: Org Mode List Subject: Ignore, skip, omit headline when exporting to LaTeX User-Agent: Horde Application Framework 5 X-VFEmail-Originating-IP: 2405:8100:8000:5ca1::2a0:70ee X-VFEmail-AntiSpam: Notify admin@vfemail.net of any spam, and include VFEmail headers Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline 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=1657224174; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=hTQ9tKtQrbMk3kNYyTdnuDrMe2LPVntYg+XWUL91Uuw=; b=GgwTqbMQmmyD34+vpjJO+JbPUG3n5YKiqNuVX+sodCnHRLdnsFz855ks9znXqvsloxsRhB 8y4ye+iWscnCD+G+thx4vUQYaqCZxjkhPEapi9Tkil0NEcYPGENH6DovJPON7Jgy7qWGwK z5fGW6YJLjR/njJuq/+hIfOF6+ushGDsgqdrdKrLU2jmeAbOeFpJkD1GucHJj5WrotpEHF v415ZOT6BnNeKw7iLXPaVp1fg8FWLP/DMsGzHywOImbu2ekD0JuLyo/5vAfPjq7YBRLOjG ep+IKa1G7SmMnYh6a9o8FXcwcKcRa4jC5l8K+/ljRgh6iAPAam+fM/wnqushCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657224174; a=rsa-sha256; cv=none; b=UdUpLNeXhkUoYqxHon8iIAEx+ryTFb6/mmiCVp8SzUg8p45CeFUzBgT/6Y2rpql50bfvWc XNeQlmjgXYLtIAcCq0/SPTDsw1osydsJEbJhQ44hzCBVhqJc9SMjS/w56xcWUYUUh+WC8A J0aLbp1x1ZuddiAVk8u57TRfnn9nyy10qmF4sNauY48qG5wRGNDphhHfkZjJ3ne+ZZg4R+ Z4AP6dS8lR4KerVgxio+frkHCJzc0sw0LlG3JmR4gtAjaEEj3XF8ALAoRLi1B83NarStsF Fq0j+R/OUp77iKyiZanh0K1YCzOi2GOMUwpQ+i4aM0mPM+fOynyYSBHza4I2iw== 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: -1.35 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: A995F1E890 X-Spam-Score: -1.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: tqodRA7SBUWy Firstly, do tell me if I am breaking the nettiquete. I found someone asking online how to ignore a headline when exporting to LaTeX. This e-mail is to avoid creating an account on that forum and to provide a solution. (require 'ox-extra) (defun org-export-ignore-headlines-latex (data backend info) "Hack of `org-export-ignore-headlines' for LaTeX: add a conditional for the latex backend and replace 'ignore' with 'ignoreltx'" (when (org-export-derived-backend-p backend 'latex) (org-element-map data 'headline (lambda (object) (when (member "ignoreltx" (org-element-property :tags object)) (let ((level-top (org-element-property :level object)) level-diff) (mapc (lambda (el) ;; recursively promote all nested headlines (org-element-map el 'headline (lambda (el) (when (equal 'headline (org-element-type el)) (unless level-diff (setq level-diff (- (org-element-property :level el) level-top))) (org-element-put-property el :level (- (org-element-property :level el) level-diff))))) ;; insert back into parse tree (org-element-insert-before el object)) (org-element-contents object))) (org-element-extract-element object))) info nil) data)) (push '(ignore-latex-headlines org-export-ignore-headlines-latex org-export-filter-parse-tree-functions) ox-extras) (ox-extras-activate '(latex-header-blocks ignore-headlines ignore-latex-headlines)) ------------------------------------------------- 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!