[sage-support] Re: sagetex - result with comma as decimal separator

2014-01-26 Thread YvesD
I just updated my way of replacing the dot with a comma. Just after the "\ begin{document}", I insert this: \begin{sagesilent} # Pour adapter la sortie LaTeX de sage aux conventions francaises. def numprint(x): x = latex(x) x = str(x) x = x.replace('.', ',\!').replace('\\times'

[sage-support] Re: sagetex - result with comma as decimal separator

2012-05-03 Thread Felipo Bacani
Is there a way that *every* printed number (and not only the ones that one uses "replace" ou "locale.format" ) have a comma as a separator for decimals? I ask this because I can't make the ticks of my graphics to print in this format. Thanks. BTW, there's a ticket on this: http://trac.sagemath

[sage-support] Re: sagetex - result with comma as decimal separator

2010-03-24 Thread Oscar
I agree. Ideally, sagetex would work with the numprint package and the different language packages for babel,so that users of sagetex and those packages wouldn't need to do anything different. Or, as I think you imply, an option within sagetex. Oscar On Mar 23, 7:34 pm, Dan Drake wrote: > On Tue

Re: [sage-support] Re: sagetex - result with comma as decimal separator

2010-03-24 Thread Mike Hansen
If the locale is properly set, we can get this information from sage: locale.localeconv()['decimal_point'] '.' --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options,

[sage-support] Re: sagetex - result with comma as decimal separator

2010-03-24 Thread iDan
On 24 mar, 07:00, "ma...@mendelu.cz" wrote: > And note the difference between $12,13212$ and $12{,}13212$  - the > first one has incorrect spacing in TeX! Hi Robert, You are right, but there is no difference between $12{,}345$, $ \numprint{12,345}$ and $\DecimalMathComma 12,345$ If you don't have

[sage-support] Re: sagetex - result with comma as decimal separator

2010-03-24 Thread iDan
On 23 mar, 20:34, Dan Drake wrote: > > \begin{sagesilent} >   def numprint(x): >     return x.str().replace('.', ',') > \end{sagesilent} > > and then use \sage{numprint(x)}, which is a bit nicer. Hi, Thanks for your suggestion. But, - this function change the number of significant figures - \s

[sage-support] Re: sagetex - result with comma as decimal separator

2010-03-24 Thread ma...@mendelu.cz
On 24 bře, 01:34, Dan Drake wrote: > On Tue, 23 Mar 2010 at 07:25AM -0700, iDan wrote: > > Hi, > > In french, we use comma as decimal separator. How can I convert the > > result of the instruction \sage{} (from sagetex package) ? > > Hrm, unfortunately, I don't think this is possible right now.