[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Where have org-latex-classes gone? And Ignore heading title but
From: |
Nick Dokos |
Subject: |
Re: [O] Where have org-latex-classes gone? And Ignore heading title but export contents |
Date: |
Fri, 11 Nov 2016 15:33:04 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
"Eduardo V." <address@hidden> 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