[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-23 Thread Eric Gourgoulhon
Le jeudi 23 décembre 2021 à 03:16:13 UTC+1, John H Palmieri a écrit : > Sure, that sounds like a good idea. > > In the above example, I used LatexExpr as a place holder for _bold_command, but maybe there is a better way (at least, LatexExpr has the advantage to not require any new injection in

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-22 Thread John H Palmieri
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

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-22 Thread Matthias Koeppe
On Tuesday, December 21, 2021 at 3:26:58 PM UTC-8 John H Palmieri wrote: > 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{...}. > If we are keeping \Bold

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-22 Thread Eric Gourgoulhon
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

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-21 Thread John H Palmieri
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{...}. Are you suggesting replacing \Bold in the latex() method for the object, or keeping it but doing the

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-21 Thread Matthias Koeppe
On Tuesday, December 21, 2021 at 2:49:11 AM UTC-8 Eric Gourgoulhon wrote: > Unless there might be a reason for it, why not replacing lines like > return r"\Bold{Q}" > by > return r"\mathbf{Q}" > in the relevant _latex_ methods ? > +1 -- You received this message because you are subscribed

Re: [sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-21 Thread Dima Pasechnik
I would vote for updating our LaTeX methods to use more standard macros. On Tue, 21 Dec 2021, 10:49 Eric Gourgoulhon, wrote: > Hi, > > Le lundi 20 décembre 2021 à 12:06:05 UTC+1, AlbertHilb a écrit : > >> Problem solved! Thank you very much! >> > > That being said, it seems to me that these

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-21 Thread Eric Gourgoulhon
Hi, Le lundi 20 décembre 2021 à 12:06:05 UTC+1, AlbertHilb a écrit : > Problem solved! Thank you very much! > That being said, it seems to me that these \newcommand{Bold} in each LaTeX output (!) are an unnecessary pollution of the Jupyter notebooks in %display latex mode. Unless there

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-20 Thread AlbertHilb
Problem solved! Thank you very much! Il giorno domenica 19 dicembre 2021 alle 21:55:55 UTC+1 dmo...@deductivepress.ca ha scritto: > Yes, this is the intended behaviour. If you don't like it, then, as a > workaround, you could try to clear the variable called >

[sage-devel] Re: \Bold command definition in every LaTeX output

2021-12-19 Thread dmo...@deductivepress.ca
Yes, this is the intended behaviour. If you don't like it, then, as a workaround, you could try to clear the variable called "sage_configurable_latex_macros". YMMV, but this works for me in a fresh sage session: sage: from sage.misc.latex_macros import sage_configurable_latex_macros