From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [org-beamer] \alert Date: Thu, 28 Jan 2010 18:58:38 +0100 Message-ID: <91C8F5F5-83A0-4041-B941-5DA51B3CD3C4@gmail.com> References: <871vhffhf8.fsf@gmx.ch> <87pr4y1me5.wl%ucecesf@ucl.ac.uk> <877hr4zz0s.fsf@mundaneum.com> <87k4v4omyk.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NadWx-0006Dj-6N for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NadWs-0006B9-HE for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:06 -0500 Received: from [199.232.76.173] (port=41593 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NadWs-0006B2-5s for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:02 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:54142) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NadWr-0005yc-Ef for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:01 -0500 Received: by mail-ew0-f224.google.com with SMTP id 24so1354714ewy.26 for ; Thu, 28 Jan 2010 15:12:01 -0800 (PST) In-Reply-To: <87k4v4omyk.wl%ucecesf@ucl.ac.uk> 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e.fraga@ucl.ac.uk Cc: =?ISO-8859-1?Q?S=E9bastien_Vauban?= , emacs-orgmode@gnu.org On Jan 26, 2010, at 5:22 PM, Eric S Fraga wrote: > At Tue, 26 Jan 2010 16:06:27 +0100, > S=E9bastien Vauban wrote: >> Eric S Fraga wrote: >>> At 24 Jan 2010 20:10:03 +0100, >>> Sven Bretfeld wrote: >>>> >>>> Is there any Symbol in org-beamer for \alert{Text}? In =20 >>>> presentations \alert > > [...] > >>> org-export-latex-emphasis-alist (quote >>> (("*" "\\textbf{%s}" nil) >>> ("/" "\\emph{%s}" nil) >>> ("_" "\\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 =20 >> compatible >> anymore with non-beamer LaTeX, the alert macro being unknown. > > Very true. I've never thought about this as my presentations are for > presentation only etc. However, it would definitely be nice to have a > more general solution. > >> Would there be a way to conditionally translate @...@ to alert (if =20= >> beamer) or >> to emph (if not-beamer), so that we can still easily compile a =20 >> document to one >> or the other LaTeX "back-end", without having to customize =20 >> variables in Emacs, >> prior to a compilation to the other "back-end"? > > The alist structure doesn't allow for embedded lisp code, as far as I > can tell. It would obviously be easier if this structure could be > evaluated on the fly. > >> I must admit I do not have clear specifications on how to tell Org =20= >> about such >> a config... > > The only suggestion I can come up with would be to modify this > variable using, for instance, the org-export-later-after-initial-=20 > vars-hook? Is there a LaTeX command that can figure out if it is running a beamer =20= class? If yes, a possible solution would be to redefine \alert in LaTeX when =20= not doing BEAMER. - Carsten