emacs-orgmode
[Top][All Lists]

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

 From: Carsten Dominik Subject: Re: [Orgmode] Re: [org-beamer] \alert Date: Mon, 1 Feb 2010 17:18:39 +0100

```
On Jan 29, 2010, at 4:36 PM, Sébastien Vauban wrote:

```
```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 whether a particular macro has been defined? If so, we wouldn't even need to check
```for beamer, simply for \alert.
```
```
Use the
\ifx<command>\undefined ... \else ... \fi
```
construct to determine if a command already exists, and then to take action 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:

If \alert is not defined, I have =alert= behave as =textbf=.
```
```
```
Could this somehow made part of Org-mode, so that one does not need to repeat this one-liner in every file that could be exported to pure LaTeX and/or
```Beamer?
```
```
Yes - this is in there now.  Let's see if someone complains.

- Carsten

```

reply via email to