From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Where have org-latex-classes gone? And Ignore heading title but export contents Date: Fri, 11 Nov 2016 15:33:04 -0500 Message-ID: <878tspzri7.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5IWe-0007PA-6O for emacs-orgmode@gnu.org; Fri, 11 Nov 2016 15:34:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c5IWb-0000qT-2u for emacs-orgmode@gnu.org; Fri, 11 Nov 2016 15:34:16 -0500 Received: from [195.159.176.226] (port=49602 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c5IWa-0000pW-SJ for emacs-orgmode@gnu.org; Fri, 11 Nov 2016 15:34:12 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c5IVt-0005uj-Gl for emacs-orgmode@gnu.org; Fri, 11 Nov 2016 21:33:29 +0100 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" To: emacs-orgmode@gnu.org "Eduardo V." writes: > I'm getting an error trying to add my class to org-mode > > (add-to-list 'org-latex-classes ieeetran-class) > Symbol's value as variable is void: org-latex-classes > > What is the org-mode 9 way of adding classes? > It's still org-latex-classes afaik - you are trying to add the class before ox-latex is loaded perhaps? > Also, on org-mode 8 i added this hook to remove headlines and it worked perfectly, now it complains > about 'tree' being a void variable too > > (defun org-remove-headlines (backend) >   "Remove headlines with :no_title: tag." >   (org-map-entries (lambda () (let ((beg (point))) >                                 (outline-next-visible-heading 1) >                                 (backward-char) >                                 (delete-region beg (point)))) >                    "no_export" tree) >   (org-map-entries (lambda () (delete-region (point-at-bol) (point-at-eol))) >                    "no_title")) > > (add-hook 'org-export-before-processing-hook #'org-remove-headlines) > Untested, but afaik, it should be a symbol, so it needs a quote: 'tree Not sure why it would work in org 8 - afaict, it should fail in exactly the same way, unless tree was bound globally. -- Nick