[pstricks] Re: PSTricks Font question

Herbert Voss Herbert.Voss at gmx.net
Thu Oct 14 08:41:52 CEST 2004


Aaron Jackson wrote:
> I've been playing around with PSTricks and found a little problem (See 
> minimal example below).  When I include a ps picture in my document, the 
> numbers around the grid are Helvetica, but the rest of the text is 
> Times.  Of course I would like my entire document in Times.  What is the 
> proper way to fix this?  Thanks.

\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{mathptmx}
\def\myGrid(#1,#2)(#3,#4){%
   \def\pshlabel##1{\footnotesize $##1$}%
   \def\psvlabel##1{\footnotesize $##1$}%
   \psgrid[gridlabels=0pt,subgriddiv=1,griddots=10]
   \psaxes[Ox=#1,Oy=#2,linestyle=none](#1,#2)(#3,#4)
}
\begin{document}

\begin{pspicture}(-4,-4)(4,4)
   \myGrid(-4,-4)(4,4)
    This is some text in times
\end{pspicture}

\end{document}


Herbert


-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list