auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Preview of non-math macros


From: Christian Stork
Subject: Re: [AUCTeX] Preview of non-math macros
Date: Wed, 1 Nov 2006 20:29:01 +0100
User-agent: Mutt/1.5.11

On Wed, Nov 01, 2006 at 06:45:50PM +0100, David Kastrup wrote:
> Christian Stork <address@hidden> writes:

> > On Wed, Nov 01, 2006 at 05:28:12PM +0100, David Kastrup wrote:
> > ...
> >> > Just an idea:  Many of my macros have an enclosing \ensuremath{..}.  I
> >> > often use these macros then in my text outside of $..$.  It seems like a
> >> > great feature if preview-latex could offer an option to automatically
> >> > register these macros for preview.

> >> You can try \PreviewMacro[!]\ensuremath and see where this takes you.

> > Only satisfactory for the argumentless macros.  But thanks anyway.

> > Generating them automatically seems like the best solution and might
> > even be feasible...

> For macros with arguments that happen to call \ensuremath?

No, less general, for the once of the form

\newcommand{\xyz}[N]{\ensuremath{....}}

> Not really.  How should \ensuremath figure out just where its caller
> chose to have an argument and where not?

"Just" compile it as $\xyz...$.

-- 
Chris Stork   <>  Support eff.org!  <>   http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint:  B08B 602C C806 C492 D069  021E 41F3 8C8D 50F9 CA2F




reply via email to

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