all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: org + beamer: How to get @Š@ to create \alert?
Date: Wed, 02 May 2012 11:39:33 +0200	[thread overview]
Message-ID: <80lilakjl6.fsf@somewhere.org> (raw)
In-Reply-To: 28711.1335922639@alphaville

Hi Richard and Nick,

Nick Dokos wrote:
> Richard Stanton <stanton-K2lR+8htZd0b0cFwG/AQJIdd74u8MsAO@public.gmane.org> 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	other threads:[~2012-05-02  9:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 16:57 make fails on current version Richard Stanton
2012-04-23 17:24 ` Bastien
2012-05-01 23:24   ` org + beamer: How to get @Š@ to create \alert? Richard Stanton
2012-05-02  1:37     ` Nick Dokos
2012-05-02  9:39       ` Sebastien Vauban [this message]
2012-05-02 14:03         ` Nick Dokos
2012-05-02 11:39       ` Nicolas Goaziou
2012-05-02 19:06         ` Sporadic problems pasting Richard Stanton
2012-05-02 19:28           ` Emacs occasionally hangs using org-mode Richard Stanton
2012-05-02 20:11           ` Sporadic problems pasting Bastien
2012-04-23 17:28 ` make fails on current version Toby Cubitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80lilakjl6.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.