From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [org-beamer] \alert Date: Fri, 29 Jan 2010 16:36:47 +0100 Message-ID: <87vdek53e8.fsf@mundaneum.com> References: <871vhffhf8.fsf@gmx.ch> <87pr4y1me5.wl%ucecesf@ucl.ac.uk> <877hr4zz0s.fsf@mundaneum.com> <87k4v4omyk.wl%ucecesf@ucl.ac.uk> <91C8F5F5-83A0-4041-B941-5DA51B3CD3C4@gmail.com> <87hbq5z1tg.wl%ucecesf@ucl.ac.uk> <19298.50653.520318.554207@nitrogen.burtket> <87aavxrtff.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, Tim, Carsten and all, Eric S Fraga wrote: > At Fri, 29 Jan 2010 06:26:21 -0500, Tim Burt wrote: >> Eric S Fraga writes: >>> For any LaTeX expert out there, is there an easy way to determine wheth= er >>> a particular macro has been defined? If so, we wouldn't even need to ch= eck >>> for beamer, simply for \alert. >>=20 >> Use the=20 >> \ifx\undefined ... \else ... \fi=20 >> construct to determine if a command already exists, and then to take act= ion >> in the appropriate case. Test the example below both as-is and with the >> first ~\newcommand*{\thisalert}~ commented out to see the different >> results. Thanks to all. This is great stuff... > The following org-mode line does the job for me: > > #+latex_header: \ifx\alert\undefined\let\alert\textbf\fi > > If \alert is not defined, I have =3Dalert=3D behave as =3Dtextbf=3D. Could this somehow made part of Org-mode, so that one does not need to repe= at this one-liner in every file that could be exported to pure LaTeX and/or Beamer? 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