[pstricks] pstrick-add: spacing in labels

Patrice Mégret Patrice.Megret at umons.ac.be
Sat Oct 10 10:44:11 CEST 2009


Dear hh,

Thanks for this info: I tried it and it works.

By the way, for printing numbers, I use the package numprint which changes the 'decimal point' according to language and has the correct spacing with '.' and ','.

Best regards,

Patrice



-----Message d'origine-----
De : TeX Satz Brasil [mailto:texdienst at gmail.com] De la part de hh
Envoyé : samedi 10 octobre 2009 00:10
À : Patrice Mégret
Cc : pstricks at tug.org
Objet : Re: [pstricks] pstrick-add: spacing in labels

I do not remember the circumstances but maybe three years ago
I switched to
\usepackage{ncccomma}
and got rid of the comma problems. Never detected any problems.
The program looks if there are numbers after the comma.
Maybe you should give it a try.
hh

From:   Patrice Mégret <Patrice.Megret at umons.ac.be>
To:     "pstricks at tug.org" <pstricks at tug.org>
Date sent:      Fri, 9 Oct 2009 17:42:41 +0200
Subject:        [pstricks] pstrick-add: spacing in labels
Send reply to:  Graphics with PSTricks <pstricks at tug.org>
        <mailto:pstricks-request at tug.org?subject=unsubscribe>
        <mailto:pstricks-request at tug.org?subject=subscribe>

> Dear Herbert,
>
> I have a small question about pstricks-add concerning pst-plot :
>
> As I write some of my lectures in French, I use comma=true in psgraph.
By default, mathLabel is true, meaning that the spacing between the
unit and decimal parts in numbers is wrong.
One easy way to avoid this is to use mathLabel=false, so the numbers
are written in standard mode and the spacing is correct.
> Nevertheless, would it be possible to have the correct spacing even with mathLabel=true
because it is then possible to use xlabelFactor with a comma in
French?
>
> The sample file  below illustrates my concern:
>
> \documentclass[11pt,a4paper]{book}
> \usepackage{pstricks-add}
> \usepackage{xcolor}
> \begin{document}
>
> \psset{llx=-0.9cm,urx=0.5cm,lly=-0.5cm,ury=0.5cm,xAxisLabel=$t/T$,yAxisLabel=$u_R(t)/K_E E_0$,mathLabel=true}
> \begin{psgraph}[labels=all,xsubticks=10,ysubticks=10,xticksize=1 0,yticksize=8 0,subticksize=1,axesstyle=frame,Dy=0.5,comma=true](0,0)(8,1){10cm}{3cm}
> \psline[linecolor=orange,linewidth=1.5pt](0,0.83)(8,0.83)
> \psline[linecolor=blue,linewidth=1.5pt](0,0)(1,0)(1,0.5)(3,0.5)(3,0.7)(5,0.7)(5,0.78)(7,0.78)(7,0.82)(8,0.82)
> \end{psgraph}
>
> \psset{llx=-0.9cm,urx=0.5cm,lly=-0.5cm,ury=0.5cm,xAxisLabel=$t/T$,yAxisLabel=$u_R(t)/K_E E_0$,mathLabel=false}
> \begin{psgraph}[labels=all,xsubticks=10,ysubticks=10,xticksize=1 0,yticksize=8 0,subticksize=1,axesstyle=frame,Dy=0.5,comma=true](0,0)(8,1){10cm}{3cm}
> \psline[linecolor=orange,linewidth=1.5pt](0,0.83)(8,0.83)
> \psline[linecolor=blue,linewidth=1.5pt](0,0)(1,0)(1,0.5)(3,0.5)(3,0.7)(5,0.7)(5,0.78)(7,0.78)(7,0.82)(8,0.82)
> \end{psgraph}
>
> \psset{llx=-0.9cm,urx=0.5cm,lly=-0.5cm,ury=0.5cm,xAxisLabel=$t/T$,yAxisLabel=$u_R(t)/K_E E_0$,mathLabel=true,ylabelFactor=\cdot 10^6}
> \begin{psgraph}[labels=all,xsubticks=10,ysubticks=10,xticksize=1 0,yticksize=8 0,subticksize=1,axesstyle=frame,Dy=0.5,comma=true](0,0)(8,1){10cm}{3cm}
> \psline[linecolor=orange,linewidth=1.5pt](0,0.83)(8,0.83)
> \psline[linecolor=blue,linewidth=1.5pt](0,0)(1,0)(1,0.5)(3,0.5)(3,0.7)(5,0.7)(5,0.78)(7,0.78)(7,0.82)(8,0.82)
> \end{psgraph}
>
> \end{document}
>
>
> Best regards,
>
>  Patrice Mégret
>
>
>
>
> ________________________________
> Important notification: In the context of the creation of the University of Mons, FPMs email address policy is changing from '@fpms.ac.be' to '@umons.ac.be' (or @student.fpms.ac.be to @student.umons.ac.be), please update your contact list accordingly.
>
> Note importante: Dans le cadre de la création de l'Université de Mons, la stratégie d'adresse de courrier électronique de la FPMs change de '@fpms.ac.be' à '@umons.ac.be' (ou @student.fpms.ac.be to @student.umons.ac.be), merci de mettre à jour votre liste d'adresses en conséquence.
>



Important notification: In the context of the creation of the University of Mons, FPMs email address policy is changing from '@fpms.ac.be' to '@umons.ac.be' (or @student.fpms.ac.be to @student.umons.ac.be), please update your contact list accordingly.

Note importante: Dans le cadre de la création de l'Université de Mons, la stratégie d'adresse de courrier électronique de la FPMs change de '@fpms.ac.be' à '@umons.ac.be' (ou @student.fpms.ac.be to @student.umons.ac.be), merci de mettre à jour votre liste d'adresses en conséquence.


More information about the PSTricks mailing list