[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org + beamer: How to get @Š@ to create \alert?
From: |
Sebastien Vauban |
Subject: |
Re: [O] org + beamer: How to get @Š@ to create \alert? |
Date: |
Wed, 02 May 2012 11:39:33 +0200 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (windows-nt) |
Hi Richard and Nick,
Nick Dokos wrote:
> Richard Stanton <address@hidden> 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