[pstricks] The 11-malediction
Alain Matthes
alain.matthes at free.fr
Sat Nov 26 11:29:06 CET 2005
Le 25 nov. 05 à 16:42, Herbert Voss a écrit :
> Denis Vergès wrote:
>
>> 11000 on the y-axis don't appear
>> A 11-malediction ?
>
> I have no idea, what the french part of babel does, but
>
> \documentclass[french]{report}
> \usepackage{pstricks,pst-plot,babel}
> \def\psvlabel#1{\nombre{$#1$}}
>
> \begin{document}
>
> worked for me. But it prints 110 00 ???
> package numprint may be an alternative here.
>
> Herbert
>
The correct syntax is : $\nombre{10000}$ result " 10 000" and not
\nombre{$10000$} result "100 00" !
The math mode is not necessary \nombre{10000} is valid : 10 000.
but if i try your solution or with def\psvlabel#1{$\nombre{#1}$}
i've this error :
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.18 \psaxes[Ox=1,Dy=1000](0,0)(0,-100)(6,11990)
?
! Extra \else.
\@nombre ...ifx \@empty #2\@integerpart {#1}\else
\@integerpart {#1}
\@decima...
l.18 \psaxes[Ox=1,Dy=1000](0,0)(0,-100)(6,11990)
with renewcommand{\psvlabel}[1]{\nombre{#1}} or with renewcommand
{\psvlabel}[1]{$\nombre{#1}$} the error is
! Extra \else.
\pst@@@vlabel .....\@nil \psk at ylabelFactor }\else
\psvlabel
{\psk at ylogBase \...
l.18 \psaxes[Ox=1,Dy=1000](0,0)(0,-100)(6,11990)
?
! Undefined control sequence.
\@stripDecimals #1.#2.#3\@nil ->\def \dummy
{#1}\ifx \dummy \@empty
\the \@z...
l.18 \psaxes[Ox=1,Dy=1000](0,0)(0,-100)(6,11990)
?
! Use of \if doesn't match its definition.
\@@nombre ...uite {\@secondoftwo #1\@empty ,}\if +
\nb at first \def
\nb at sign {+...
l.18 \psaxes[Ox=1,Dy=1000](0,0)(0,-100)(6,11990)
I try also numprint but with no error and a pdf file but with a bad
result :
Package numprint Warning: Invalid characters `$' in mandatory
argument of
(numprint) \numprint. Allowed are
(numprint) `0123456789.,eEdD+-\pm ' on input line 13.
Alain Matthes
the file :
\listfiles
\documentclass{article}
\usepackage{pstricks-add}
\usepackage[frenchb]{babel}
\begin{document}
\nombre{10000}
\nombre{$10000$}
$\nombre{10000}$
\psset{xunit=1.5cm,yunit=0.0006cm}
\begin{pspicture}(-1,-100)(8,12000)
\renewcommand{\psvlabel}[1]{\nombre{$#1$}}
%renewcommand{\psvlabel}[1]{\nombre{#1}}
%renewcommand{\psvlabel}[1]{$\nombre{#1}$}
\psaxes[Ox=1,Dy=1000](0,0)(0,-100)(6,11990)
\multido{\n=0+1000}{12}{\psline(-0.2,\n)(6,\n)}
\psdots[dotstyle=triangle,dotscale=2](1,975)(2,1443)(3,2049)(4,2930)
(5,4220)(6,5850)
\psdots[dotstyle=square,dotscale=2](1,4012)(2,4813)(3,5872)(4,7281)
(5,8664)(6,10432)
\psframe(6.2,5000)(8.1,7000)
\psdots[dotstyle=triangle,dotscale=2](6.4,5500)
\psdots[dotstyle=square,dotscale=2](6.4,6500)
\rput(7.3,5500){Fournisseur B}
\rput(7.3,6500){Fournisseur A}
\end{pspicture}
\end{document}
List of my packages
*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks-add.sty 2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks.sty 2005/10/07 v0.25 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2005/10/30 v1.12a `PSTricks' (tvz)
xcolor.sty 2004/07/04 v2.00 LaTeX color extensions (UK)
color.cfg 2005/02/03 v1.3 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.tex 2005/11/24 v2.71b `PSTricks-add' (hv)
pst-xkey.tex 2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2005/08/12 v2.5d package option processing (HA)
xkeyval.tex 2005/08/12 v2.5d key=value parser (HA)
babel.sty 2004/11/20 v3.8d The Babel package
frenchb.ldf
frenchb.cfg
t1lmr.fd 2005/08/29 v1.2 Font defs for Latin Modern
(/usr/local/teTeX/share/texmf.tetex/tex/generic/multido/multido.tex
v1.41, 2004/05/18 <tvz>))
More information about the PSTricks
mailing list