emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* add entries to *emphasis-alist
@ 2012-08-17 12:26 Philipp Kroos
  2012-08-17 19:01 ` Sebastien Vauban
  0 siblings, 1 reply; 7+ messages in thread
From: Philipp Kroos @ 2012-08-17 12:26 UTC (permalink / raw)
  To: emacs-orgmode


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 
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@' 
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]

* Testsection
** with some important @noise@

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

end of thread, other threads:[~2012-08-19 15:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-17 12:26 add entries to *emphasis-alist Philipp Kroos
2012-08-17 19:01 ` Sebastien Vauban
2012-08-17 19:50   ` Nick Dokos
2012-08-19 11:01     ` Philipp Kroos
2012-08-19 11:38       ` Nicolas Goaziou
2012-08-19 12:53         ` Philipp Kroos
2012-08-19 15:25           ` Bastien

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


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).