On Fri, Jun 09, 2023 at 07:46:28PM -0400, Richard Kimberly Heck wrote:
> 
> On 6/9/23 19:39, Richard Kimberly Heck wrote:
> > On 6/9/23 04:24, Scott Kostyshak wrote:
> > > I often find myself of wanting to define a command in a module's
> > > preamble, and I want to define a corresponding LyX math macro to
> > > *display* it nicely in the LyX display; but I don't want the
> > > \global\long\def\mymacro that comes along with it. Is there a way to
> > > tell LyX that I already defined the command and I don't want the
> > > macro to define it?
> > > 
> > > Perhaps a different use case is that I might want to display a
> > > built-in LaTeX definition (or one in a package) differently, but I
> > > don't want to redefine it.
> > 
> > No, I don't think that's possible. I've had occasion to want something
> > similar---e.g., some macro is defined in some package, but LyX does not
> > handle it natively, and I'd like to see decent display. My usual
> > strategy is just to define a 'dummy' macro the way you have there and
> > use that.
> 
> Actually, come to think of it, we have all kinds of 'LyX only' definitions
> in lib/symbols. That can be modified locally. But those do not seem to take
> arguments.

Thanks, Riki.

If I were to implement this "don't define in LaTeX" in LyX, would it be 
reasonable to put it in the context menu of the math macro as a toggle? Or does 
someone have a different interface to suggest?

Scott

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to