emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] add entries to *emphasis-alist


From: Philipp Kroos
Subject: [O] add entries to *emphasis-alist
Date: Fri, 17 Aug 2012 14:26:05 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

is it still possible to add items to the emphasis alists?
I'm preparing a presentation with orgmode/beamer and try to get a markup 
for alert using '@'.
According to some (old..) thread 
(http://lists.gnu.org/archive/html/emacs-orgmode/2010-01/msg00592.html)
I added an entry to org-emhasis-alist and
org-export-latex-emphasis-alist, see below.
Unfortunately, this is not working, '@noise@' is exported to '@noise@' 
literally.
I had a quick look at the source in org-latex.el and if I understand it 
correctly, the fontification is done in org-export-latex-fontify 
according to matches with org-emph-re, defined in org.el. But 
org-emph-re doesn't match with '@'- consequently, the markup is ignored.  

So do I have to redefine org-emph-re as well or is there any other trick?
I'm using the current org from git.

Thanks all!


;; this is how I add the entries to the lists
  (setq org-emphasis-alist
        (append org-emphasis-alist
                '(("@" org-warning "<b>" "</b>"))))
  (setq org-export-latex-emphasis-alist
        (append org-export-latex-emphasis-alist
                '(("@" "\\alert{%s}" nil))))

;; this is a minimal example
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_FRAME_LEVEL: 1

* Testsection
** with some important @noise@



reply via email to

[Prev in Thread] Current Thread [Next in Thread]