Problem with pstricks and xdvi

Denis Girou Denis.Girou at idris.fr
Wed Aug 5 22:18:38 CEST 1998


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

    Dung.Ta.Quang> Yesterday i successfully installed xdvi patch 21.16 (latest version) on
    Dung.Ta.Quang> my system (linux slackware 3.5, teTeX 0.4, pstricks Jul 98 (CTAN)). I then
    Dung.Ta.Quang> tried out some examples in the docs and everything seem to work fine except
    Dung.Ta.Quang> \nput. Hier is the latex file:
    Dung.Ta.Quang> \documentclass[a4paper,12pt]{letter}
    Dung.Ta.Quang> \usepackage{pst-node}
    Dung.Ta.Quang> \begin{document}
    Dung.Ta.Quang> \begin{pspicture}(0,0)(5,5)
    Dung.Ta.Quang>   \cnode*(1,1){2pt}{v1}
    Dung.Ta.Quang>   \nput[labelsep=.1]{180}{v1}{$v_1$}
    Dung.Ta.Quang>   \cnode*(2,4){2pt}{v2}
    Dung.Ta.Quang>   \nput[labelsep=.1]{90}{v2}{$v_2$}
    Dung.Ta.Quang>   \ncline{v1}{v2}
    Dung.Ta.Quang> \end{pspicture}
    Dung.Ta.Quang> \end{document}

    Dung.Ta.Quang> the problem is, that both labels were placed at (0,0) instead closely to
    Dung.Ta.Quang> (1,1) resp. (2,4). What is now to do?

  I don't reproduce your problem, so it is very probably related to xdvi that
I never use (nor the old nor the so-called "new" version). I know that the
"new" version is supposed to call ghostscript for "specials" but I don't know
the limitations.

  In any case, first convert your dvi file to PostScript using dvips, which
must be available on your installation, and visualize the resulting file with
gv (or ghostview or gs if you have not it - even if gv is probably today the
best PostScript viewver under Unix). You'll very probably see that your
example run correctly for you too.

D.G.

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list