[pstricks] pspicture shift

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed May 13 22:32:06 CEST 2009


Herbert Voss schrieb:
> David Arnold schrieb:
>> I don't understand why shift=-1 does not seem to have an affect on  
>> this code when I compile with ps4pdf.
> 
> ps4pdf creates a graphix which is later insert by
> pdflatex, but it knows nothing about the shift,
> it knows only the graphic. Use \raisebox instead:
> 
> 
> \documentclass[12pt]{article}
> 

sorry, that was the wrong one. Here it comes:


\documentclass[12pt]{article}

\usepackage{pst-pdf}
\usepackage{pstricks-add}

\begin{document}

\begin{itemize}

\item \raisebox{-0.125in}{%
  \psset{unit=0.125in}
	\begin{pspicture}(-8,-2)(8,0.5)
	\psaxes[arrowscale=1.5,arrows=<->,yAxis=false,labels=none](0,0)(-8,0)
(8,0)
	\uput[270](-7,0){$-7$}
	\uput[270](0,0){$0$}
	\uput[270](7,0){$7$}
	\psdots*[linecolor=red,dotsize=3pt 3](-2,0)(-3,0)(-4,0)(-5,0)
	\end{pspicture}}
\item Hello.
\end{itemize}

\end{document}




More information about the PSTricks mailing list