all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-export-latex-final-hook not working
@ 2016-06-24  9:01 Giacomo M
  2016-06-24  9:11 ` Rasmus
  2016-06-24  9:11 ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Giacomo M @ 2016-06-24  9:01 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Dear all,

I am using emacs with this configuration file:

#+BEGIN_SRC emacs-lisp
(setq load-path (append (file-expand-wildcards "~/.emacs.d/elpa/*") load-path))
(require 'org)
(require 'org-ref)
(require 'ox-extra)
(ox-extras-activate '(ignore-headlines))
(defun remove-orgmode-latex-labels ()
   "Remove labels generated by org-mode"
   (interactive)
   (let ((case-fold-search nil))
    (goto-char 1)
    (replace-regexp "\\\\label{sec.*}" "")
    )
)
(add-hook 'org-export-latex-final-hook 'remove-orgmode-latex-labels)
#+END_SRC

to load the latest orgmode from melpa and install a hook to remove 
unwanted section labels on latex export.

If you open/create any .org file and export it to latex buffer or file, 
the hook function is not called. if I visit the buffer and call 
remove-orgmode-latex-labels, section labels are removed.

Where is the mistake?

Thanks,

Giacomo

GNU Emacs 24.5.1 (x86_64-w64-mingw32)
Org-mode version 8.3.4 (8.3.4-47-gaf853d-elpa)

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

end of thread, other threads:[~2016-06-24 11:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24  9:01 org-export-latex-final-hook not working Giacomo M
2016-06-24  9:11 ` Rasmus
2016-06-24  9:22   ` Giacomo M
2016-06-24  9:33     ` Nicolas Goaziou
2016-06-24 11:02       ` Giacomo M
2016-06-24  9:11 ` Nicolas Goaziou

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.