Hi Richard and Nick,

Nick Dokos wrote:
> Richard Stanton <stan...@haas.berkeley.edu> wrote:
>
>> I've just started using orgmode to create Beamer presentations, and have a
>> question.
>> 
>> In the worg documentation
>> (http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html), it gives
>> an example of how enclosing text in "@" signs is supposed to result in
>> highlighted red text. When I try it, I get text surrounded by two "@"
>> signs...
>> 
>> Following suggestions from this list back in 2010, I tried customizing
>> org-export-latex-emphasis-alist but this doesn't seem to help either.
>> 
>> Can anyone tell me how to get this working?
>
> You also need to customize org-emphasis-alist.

and this must be set *before loading Org*...

Full example:

#+begin_src emacs-lisp
      ;; face to be used by `font-lock' for highlighting in Org-mode Emacs
      ;; buffers, and tags to be used to convert emphasis fontifiers for HTML
      ;; export
      (setq org-emphasis-alist ;; remove the strike-through emphasis
            '(("*" bold "<b>" "</b>")
              ("/" italic "<i>" "</i>")
              ("_" underline "<span style=\"text-decoration:underline;\">" 
"</span>")
              ("=" org-code "<code>" "</code>" verbatim)
              ("~" org-verbatim "<code>" "</code>" verbatim)))

      (defface my/org-alert-face
        '((t (:weight bold :foreground "black" :foreground "#FF0000")))
        "Face used to display alert'ed items.")

      (add-to-list 'org-emphasis-alist
                   '("@" my/org-alert-face "<span class=\"alert\">" "</span>"))
#+end_src

Best regards,
  Seb

-- 
Sebastien Vauban


Reply via email to