is it a bug?

James Montaldi <[email protected]> Wed, 26 Jun 2013 12:47:57 +0100
Newsgroups gmane.comp.tex.xdvi.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============4087103688235886020==
Content-Type: multipart/alternative;
	boundary="------------050101040600020409090201"

This is a multi-part message in MIME format.
--------------050101040600020409090201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Dear core

I use emacs/auctex for latex with xdvik as viewer (using inverse search 
a lot).  I also use pstricks in my latex files. And xdvik shows the 
images from pstricks fine.

However, there is one problem.  If I load one of the secondary packages, 
such as pst-node or pst-plot, then xdvik doesn't put text in the correct 
place.  All other graphics elements seem to placed fine, it is just the 
text.

Here is a minimal example

    |\documentclass{article}
    \usepackage{pstricks}
    \usepackage{pst-plot}

    \begin{document}|
    |
    \begin{pspicture}(0,0)(2,2)
    \psline(0,0)(2,2)
    \cput(1,1){Hello}
    \end{pspicture}

    \end{document}|

The circle from \cput comes out ok, but the text "Hello" is placed at 
the bottom of the figure.  If I don't load the (unused) pst-plot package 
then the text is placed at the correct point (centre of the figure).

I know xdvik is not primarily for viewing graphics, and indeed this is 
not a big problem in the scheme of things, but it would be nice if it 
worked as intended. I do of course convert everything to pdf eventually, 
via dvips and ps2pdf.

Is this something that could be looked into?

Thanks

And thanks for maintaining and improving the great software.

Best regards
James Montaldi

ps I use both linux ubuntu 13.04 and macos 10.6



-- 
----------------------------------------------
Dr James Montaldi           Tel: 0161 306 3667
School of Mathematics       Fax: 0161 275 5819
University of Manchester
Manchester M13 9PL
UK
http://www.maths.manchester.ac.uk/jm/
----------------------------------------------


--------------050101040600020409090201
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear core<br>
    <br>
    I use emacs/auctex for latex with xdvik as viewer (using inverse
    search a lot).&nbsp; I also use pstricks in my latex files. And xdvik
    shows the images from pstricks fine.<br>
    <br>
    However, there is one problem.&nbsp; If I load one of the secondary
    packages, such as pst-node or pst-plot, then xdvik doesn't put text
    in the correct place.&nbsp; All other graphics elements seem to placed
    fine, it is just the text.<br>
    <br>
    Here is a minimal example<br>
    <dl class="codebox">
      <dd><code><span style="color: #E02020; ">\</span><span
            style="color: #800000;">documentclass</span><span
            style="color: #E02020; ">{</span><span style="color:
            #2020C0; font-weight: normal;">article<span style="color:
              #E02020; ">}</span><br>
            <span style="color: #E02020; ">\</span><span style="color:
              #800000;">usepackage</span><span style="color: #E02020; ">{</span>pstricks<span
              style="color: #E02020; ">}</span><br>
            <span style="color: #E02020; ">\</span><span style="color:
              #800000;">usepackage</span><span style="color: #E02020; ">{</span>pst-plot<span
              style="color: #E02020; ">}</span><br>
            <br>
            <span style="color: #C00000; font-weight: normal;">\begin</span><span
              style="color: #E02020; ">{</span><span style="color:
              #0000D0; font-weight: normal;">document</span><span
              style="color: #E02020; ">}</span></span></code></dd>
      <dd><code><span style="color: #2020C0; font-weight: normal;"><span
              style="color: #E02020; "></span><br>
            <span style="color: #C00000; font-weight: normal;">\begin</span><span
              style="color: #E02020; ">{</span><span style="color:
              #0000D0; font-weight: normal;">pspicture</span><span
              style="color: #E02020; ">}</span>(0,0)(2,2)<br>
            <span style="color: #800000; font-weight: normal;">\psline</span>(0,0)(2,2)<br>
            <span style="color: #800000; font-weight: normal;">\cput</span>(1,1)<span
              style="color: #E02020; ">{</span>Hello<span style="color:
              #E02020; ">}</span><br>
            <span style="color: #C00000; font-weight: normal;">\end</span><span
              style="color: #E02020; ">{</span><span style="color:
              #0000D0; font-weight: normal;">pspicture</span><span
              style="color: #E02020; ">}</span><br>
            <br>
            <span style="color: #C00000; font-weight: normal;">\end</span><span
              style="color: #E02020; ">{</span><span style="color:
              #0000D0; font-weight: normal;">document</span></span><span
            style="color: #E02020; ">}</span></code></dd>
    </dl>
    The circle from \cput comes out ok, but the text "Hello" is placed
    at the bottom of the figure.&nbsp; If I don't load the (unused) pst-plot
    package then the text is placed at the correct point (centre of the
    figure).&nbsp; <br>
    <br>
    I know xdvik is not primarily for viewing graphics, and indeed this
    is not a big problem in the scheme of things, but it would be nice
    if it worked as intended. I do of course convert everything to pdf
    eventually, via dvips and ps2pdf.<br>
    <br>
    Is this something that could be looked into?&nbsp; <br>
    <br>
    Thanks<br>
    <br>
    And thanks for maintaining and improving the great software.<br>
    <br>
    Best regards<br>
    James Montaldi<br>
    <br>
    ps I use both linux ubuntu 13.04 and macos 10.6<br>
    <br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
----------------------------------------------
Dr James Montaldi           Tel: 0161 306 3667
School of Mathematics       Fax: 0161 275 5819
University of Manchester
Manchester M13 9PL
UK
<a class="moz-txt-link-freetext" href="http://www.maths.manchester.ac.uk/jm/">http://www.maths.manchester.ac.uk/jm/</a>
----------------------------------------------
</pre>
  </body>
</html>

--------------050101040600020409090201--


--===============4087103688235886020==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
--===============4087103688235886020==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
XDvi-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdvi-core

--===============4087103688235886020==--