Sure, that sounds like a good idea.

- John

On Wednesday, December 22, 2021 at 3:05:44 AM UTC-8 Eric Gourgoulhon wrote:

> Le mercredi 22 décembre 2021 à 00:26:58 UTC+1, John H Palmieri a écrit :
>
>> I have no objection to this, but the purpose for using \Bold{...} was to 
>> make its behavior easily customizable, since some people might want 
>> \mathbf{...} and some might want \mathbb{...}. 
>>
>
> The customization could be performed at the Python level, instead of the 
> LaTeX one, e.g.  something like:
>
> def _latex_(self):
>     return LatexExpr.bold_command() + r"{Q}"
>
> with bold_command() being a static method of LatexExpr that returns the 
> class attribute _bold_command. The latter would be initialized to 
> r"\mathbf" and could be customized by the end user thanks to some 
> static/class method of LatexExpr, e.g. 
>
> sage: LatexExpr.set_bold_command("mathbb")
>
> Eric.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/faf43380-4bb6-4d2d-8e38-255f1af00671n%40googlegroups.com.

Reply via email to