From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: :ignoreheading: works with LaTeX export, but not HTML Date: Thu, 26 Mar 2015 19:45:23 -0700 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbKH8-0005es-Tx for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 22:45:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbKH5-0002B1-OZ for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 22:45:34 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbKH5-0002Aq-G1 for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 22:45:31 -0400 Received: by pacwz10 with SMTP id wz10so30554472pac.2 for ; Thu, 26 Mar 2015 19:45:29 -0700 (PDT) Received: from [10.0.0.13] (c-50-136-135-172.hsd1.ca.comcast.net. [50.136.135.172]) by mx.google.com with ESMTPSA id pb2sm419226pdb.33.2015.03.26.19.45.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Mar 2015 19:45:27 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I want to put some headers in my org file that don't get exported. If I = put :ignoreheading: after the title, it correctly does not get exported = to LaTeX, but it still appears when I export to HTML (with the text = :ignoreheading: on the same line). Am I missing something? In my setup I = have the lines (defun sa-ignore-headline (contents backend info) "Ignore headlines with tag `ignoreheading'" (when (and (org-export-derived-backend-p backend 'latex 'html 'ascii) (string-match "\\`.*ignoreheading.*\n" (downcase contents))) (replace-match "" nil nil contents))) (defun headline-nonumber (contents backend info) "Make headlines with nonumber." (when (and (org-export-derived-backend-p backend 'latex 'html 'ascii) (string-match "\\`.*nonumber.*\n" (downcase contents))) (let ((output contents)) (setq output (replace-regexp-in-string "section{" "section*{" = contents)) (setq output (replace-regexp-in-string = "\\\\hfill{}\\\\textsc{nonumber}" "" output)) output))) (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline) (add-to-list 'org-export-filter-headline-functions 'headline-nonumber) Thanks for any suggestions. By the way, this is with org-mode release_8.3beta-951-g2f58e3 Richard Stanton=