[pstricks] problem with *.pdf

Rémi Lambert R.Lambert at student.ulg.ac.be
Tue Sep 3 13:54:54 CEST 2002


> > ! Undefined control sequence
> >      \psset
> >              {linewidth=0.8pt}
>
> can you give a minimal example file?

Yes, of course... Here are the two files : style.sty and test.tex.

Thanks you very much in advance,

Rémi LAMBERT

-------------- next part --------------
\documentclass[10pt,dvips]{article}
\usepackage{style}

\begin{document}
\begin{newenv}
    \Node{o}
\end{newenv}


\end{document}
-------------- next part --------------
\NeedsTeXFormat{LaTeX2e}[1994/06/01]

\ProvidesPackage{style}[2002/08/31]
\RequirePackage{ifpdf}

\ifpdf
    \RequirePackage[shell]{pdftricks}
    \begin{psinputs}
        \RequirePackage{pstricks}
    \end{psinputs}
\else
    \RequirePackage{pstricks}
    \newenvironment{pdfpic}{}{}
\fi


% Declaration of the 'newenv' environment
\newenvironment{newenv}
    {   \begin{pdfpic}
        \begin{pspicture}(4,1)
    }
    {   \end{pspicture} \end{pdfpic}
    }

% Line width specification
    \psset{linewidth=0.8pt}

% Size of nodes
    \psset{dotsize=5pt 0}

% new command drawing an empty node
\newcommand{\Node}[1]
    {   \psdots[dotstyle=#1](0,0)   }


More information about the PSTricks mailing list