From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Kroos Subject: add entries to *emphasis-alist Date: Fri, 17 Aug 2012 14:26:05 +0200 Message-ID: <20120817122605.GA6624@desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2Lcb-00042S-6o for emacs-orgmode@gnu.org; Fri, 17 Aug 2012 08:25:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2LcZ-00066N-Tt for emacs-orgmode@gnu.org; Fri, 17 Aug 2012 08:25:49 -0400 Received: from mailout05.t-online.de ([194.25.134.82]:52512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2LcZ-00061n-Dp for emacs-orgmode@gnu.org; Fri, 17 Aug 2012 08:25:47 -0400 Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 "" "")))) (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@