# [pstricks] Difficulties with pst-pdf

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu May 14 22:44:14 CEST 2009

David Arnold schrieb:

> \documentclass[12pt]{article}
>
> %\usepackage{pst-pdf}
> \usepackage{pst-bar}
> \usepackage{pst-plot}
> \usepackage{pst-tree}
>
> \begin{document}
> In the shaded box that follows, enter the inequality symbol $<$ or $>$
> so that the resulting inequality is a true statement.
>
> $-3\quad\psframe[linewidth=2pt,fillstyle=solid,fillcolor=lightgray,framearc=0.2](0,0)(0.5,0.5)\quad > -2$
>
> \end{document}

pst-pdf scans only the pspicture and psmatrix environment.

\documentclass[12pt]{article}

\usepackage{pst-pdf}
\usepackage{pstricks}
\def\psFrame[#1](#2)(#3){\begin{pspicture}(#2)(#3)\psframe[#1](#2)(#3)\end{pspicture}}

\begin{document}
In the shaded box that follows, enter the inequality symbol $<$ or $>$
so that the resulting inequality is a true statement.

$-3\quad\psFrame[linewidth=2pt,fillstyle=solid,fillcolor=lightgray,framearc=0.2](0,0)(0.5,0.5)\quad -2$

\end{document}

Herbert