emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Where have org-latex-classes gone? And Ignore heading title but export contents
@ 2016-11-11 19:07 Eduardo V.
  2016-11-11 20:33 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Eduardo V. @ 2016-11-11 19:07 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

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?

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)

[-- Attachment #2: Type: text/html, Size: 1179 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Where have org-latex-classes gone? And Ignore heading title but export contents
  2016-11-11 19:07 Where have org-latex-classes gone? And Ignore heading title but export contents Eduardo V.
@ 2016-11-11 20:33 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2016-11-11 20:33 UTC (permalink / raw)
  To: emacs-orgmode

"Eduardo V." <lalohao@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-11 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-11 19:07 Where have org-latex-classes gone? And Ignore heading title but export contents Eduardo V.
2016-11-11 20:33 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).