On Sat, Jun 10, 2023 at 03:35:03PM +1200, Andrew Parsloe wrote:
> 
> On 9/06/2023 8:24 pm, 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.
> > 
> > I attach a simple example.
> > 
> > Thanks,
> > Scott
> 
> I may be missing the point, but to display macros from other packages or
> defined in the preamble, I work with instant preview on, then insert a
> preview inset around an ERT inset and type the macro name. I've attached the
> shortcut Ctrl+P to preview-insert which means that holding down Ctrl and
> tapping P followed by L (which are diagonally neighbouring keys on qwerty
> keyboards) you can then start typing the macro name immediately. After
> moving the cursor outside both insets, after a pause for thought the macro
> displays as in the pdf.

Thanks, Andrew. That is indeed a good workflow. And actually my issue is only 
in math, so I could just turn on preview for math so I don't need to use the 
preview box. However, I got used to not using preview for math. I'll see how 
important this issue is to me and decide based on that.

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