emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [org-beamer] \alert


From: Sébastien Vauban
Subject: [Orgmode] Re: [org-beamer] \alert
Date: Tue, 26 Jan 2010 16:06:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Eric and Sven,

Eric S Fraga wrote:
> (mistakenly sent this only to the OP... resending to list as well)
>
> At 24 Jan 2010 20:10:03 +0100,
> Sven Bretfeld wrote:
>> 
>> Is there any Symbol in org-beamer for \alert{Text}? In presentations \alert
>> is recommended instead of italics. We could even think of translating text
>> enclosed in slashes / ... / to \alert{} by default in the beamer class.
>
> Essentially, you can add this functionality yourself:
>
> (setq org-emphasis-alist (quote (("*" bold "<b>" "</b>") 
>                                        ("/" italic "<i>" "</i>")
>                                        ("_" underline "<span 
> style=\"text-decoration:underline;\">" "</span>")
>                                        ("=" org-code "<code>" "</code>" 
> verbatim)
>                                        ("~" org-verbatim "<code>" "</code>" 
> verbatim)
>                                        ("+" (:strike-through t) "<del>" 
> "</del>")
>                                        ("@" org-warning "<b>" "</b>")))
>       org-export-latex-emphasis-alist (quote 
>                                              (("*" "\\textbf{%s}" nil)
>                                               ("/" "\\emph{%s}" nil) 
>                                               ("_" "\\underline{%s}" nil)
>                                               ("+" "\\texttt{%s}" nil)
>                                               ("=" "\\verb=%s=" nil)
>                                               ("~" "\\verb~%s~" t)
>                                               ("@" "\\alert{%s}" nil))))
>

That's what I'm using as well, but the problem is that it's not compatible
anymore with non-beamer LaTeX, the alert macro being unknown.

Would there be a way to conditionally translate @...@ to alert (if beamer) or
to emph (if not-beamer), so that we can still easily compile a document to one
or the other LaTeX "back-end", without having to customize variables in Emacs,
prior to a compilation to the other "back-end"?

I must admit I do not have clear specifications on how to tell Org about such
a config...

Best regards,
  Seb

-- 
Sébastien Vauban





reply via email to

[Prev in Thread] Current Thread [Next in Thread]