From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Where have org-latex-classes gone? And Ignore heading title but export contents
Date: Fri, 11 Nov 2016 15:33:04 -0500 [thread overview]
Message-ID: <878tspzri7.fsf@gmail.com> (raw)
In-Reply-To: CAEC7V6cLnMOdGPVqTrtBgX_7rMkUDVs=kfkbn7L9xKGGsfXOzQ@mail.gmail.com
"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
prev parent reply other threads:[~2016-11-11 20:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878tspzri7.fsf@gmail.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.