> 2025/06/11 23:48、Jean-Marc Lasgouttes <lasgout...@lyx.org>のメール:
> 
> Koji, what could be a good idea too is to disable the menu entry when the 
> \intertext cannot be inserted.
> 
> Normally what is done is to implement in (in this case) InsetMathHull a 
> method insetAllowed(InsetCode), that says whether (in this case) intertext is 
> accepted.
> 
> It would be better than adding yet another mechanism, IMO. Instead of a 
> warning, getStatus allows you to provide an error message.

Many thanks, JMarc! I’m glad to know such an extendable scheme has already 
existed. I think I can apply it soon.

> There are issues, though:
> - why do you use 'math-size' as a lfun to introduce \intertext? It feels 
> weird. It would make sense to use math-insert instead.

Indeed, that’s my mistake.

> - you will have to add a case in getStatus where insetAllowed is used to 
> detect whether instertion is possible. This is not used yet in mathed, though.

Thanks again. I’ll find out how to do it.

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

Reply via email to