[pstricks] Tick labels and math mode

Alan Ristow ristow at ece.gatech.edu
Sun Aug 1 00:35:54 CEST 2004


On Sat, 31 Jul 2004 21:00:59 +0200, Martin Buchmann
<Martin_Buchmann at gmx.net> wrote:

>Alan,
>
>i agree that the labels should be typesetted as math and are not with 
>the default pst-plot. But i'm wondering why. For sure, my knowledge 
>is way too limited to understand all of the code inside pst-plot.tex. 
>But i find a line
>'\def\pshlabel#1{$#1$}' in the code, should be line number 601 in the 
>source. As far as i undertstand, this should typeset the numerical 
>argument of the multido loop as math. Maybe someone can explain me 
>what is really happening 8-)

Interesting -- I had completely missed that, but you're right. And that,
of course, explains why I seemed to remember pst-plot typesetting the
axes labels in math mode before. Upon further investigation, it turns
out that pstricks-add redefines \pshlabel and \psvlabel. So if you use
pst-plot without pstricks-add, the tick labels should be set in math
mode. With pstricks-add, however, that obviously does not happen.
Herbert is in the best position to decide whether or not my changes are
the best solution, but at the very least they work for me, for my
purposes, for now.

>Besides of that i'm not able to compile your example:

The two most likely reasons for this are (a) you forgot to wrap my
definitions in \makeatletter and \makeatother, or (b) I'm using v2.08 of
pstricks-add (the beta available from http://www.pstricks.de) and you do
not appear to be. In the latter case, it is entirely possible that some
of the commands called by my code do not exist, depending on what
Herbert has done in the newer versions. I'm not sure what the latest
official release version is.

Sorry, I should have thought to mention in my original post that I was
using a pstricks-add beta....

>I think, i'm using the most recent versions of pstricks related packages...

I've actually got newer versions in many cases, including article.cls,
xcolor.sty, and pstricks.tex (though, curiously, not pstricks.sty).

Regards,

Alan




More information about the PSTricks mailing list