[pstricks] change of font and helefetica gridfont

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Mar 7 21:17:33 CET 2015


Am 07.03.2015 um 15:06 schrieb Patrice MÉGRET:

> I have a trouble with \psgrid : I need to use a text in Helvetica and I
> thus define the command
> \DeclareTextFontCommand{\helvetica}{\fontencoding{T1}\fontfamily{phv}\selectfont}
>
> But when I use it, the grid labels disappear.
>
> Here is the example:
>
> \documentclass[12pt]{book}
> \usepackage[T1]{fontenc}
> \usepackage{pstricks}
> \DeclareTextFontCommand{\helvetica}{\fontencoding{T1}\fontfamily{phv}\selectfont}
> \begin{document}
> \textsf{texte} texte
> \begin{pspicture}(10,-5)
> \psgrid
> \rput(3,-3){TEXTE}
> \rput(3,-4){\helvetica{TEXTE}}
> \end{pspicture}
> \end{document}



Dear Patrice,

I have no problem with your examples and also not with 
\psset{gridfont=Helvetica}

I am running up-to-date TeXLive 2014

Herbert



More information about the PSTricks mailing list