From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [org-beamer] \alert Date: Tue, 26 Jan 2010 16:06:27 +0100 Message-ID: <877hr4zz0s.fsf@mundaneum.com> References: <871vhffhf8.fsf@gmx.ch> <87pr4y1me5.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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: >>=20 >> Is there any Symbol in org-beamer for \alert{Text}? In presentations \al= ert >> is recommended instead of italics. We could even think of translating te= xt >> enclosed in slashes / ... / to \alert{} by default in the beamer class. > > Essentially, you can add this functionality yourself: > > (setq org-emphasis-alist (quote (("*" bold "" "")=20 > ("/" italic "" "") > ("_" underline ""= "") > ("=3D" org-code "" "" verbatim) > ("~" org-verbatim "" "" verbatim) > ("+" (:strike-through t) "" "") > ("@" org-warning "" ""))) > org-export-latex-emphasis-alist (quote=20 > (("*" "\\textbf{%s}" nil) > ("/" "\\emph{%s}" nil)=20 > ("_" "\\underline{%s}" nil) > ("+" "\\texttt{%s}" nil) > ("=3D" "\\verb=3D%s=3D" 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 Ema= cs, prior to a compilation to the other "back-end"? I must admit I do not have clear specifications on how to tell Org about su= ch a config... Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode