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'
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
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
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,
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
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
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.