[texhax] pstricks and pdflatex

Alex aaguadot at gmail.com
Sat Oct 22 02:37:22 CEST 2011


Hello,

Thank you for maintaining the web-site, it has been and continues to be very
useful to me whenever I have to learn something new about TeX.

I am writing because I have a problem with PSTricks that I do not seem to be
a ble to solve, even after several hours of trying to follow the
instructions on your web-site. I simply want to learn how to compile using
PDFLaTeX a file containing PSTricks objects (such as psmatrix). I have tried
to follow carefully the instructions in your web-site (
http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput) that describe how to
use the package auto-pst-pdf (including enabling write18 appropriately), but
to no avail. The file compiles without errors, but the psmatrix does not
appear in the final pdf file.

Please, help me out. I use the latest version of PDFLaTeX in MiKTeX. I have
included the code below.

Thank you,
Alex Aguado

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%This is a file that serves as a test of pdflatex with pstricks objects
\documentclass{amsart}
%\usepackage{graphicx}
%\usepackage[pdftex]{graphicx}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{auto-pst-pdf}
%%Shortcut to the \mathbb command
\newcommand{\mbb}[1]{\ensuremath{\mathbb{#1}}}

\begin{document}
Hello $\mbb{Z}$.

\begin{postscript}
\[
\begin{psmatrix}[rowsep=0.5cm]
H^{q}\left(N_{X}^{M},_{X}^{M}-X;\mbb{Z}\right)
&H^{q}\left(M,M-X;\mbb{Z}\right) &H^{q}(M;\mbb{Z})\\
H^{p}\left(N_{Y}^{M},N_{Y}^{M}-Y;\mbb{Z}\right)
&H^{p}\left(M,M-Y;\mbb{Z}\right) &H^{p}(M;\mbb{Z}))\\
H^{p+q}\left(N_{z}^{M},N_{z}^{M}-\{z\};\mbb{Z}\right)
&H^{p+q}\left(M,M-\{z\};\mbb{Z}\right) &H^{p+q}(M;\mbb{Z})
\end{psmatrix}
\everypsbox{\scriptstyle}
\psset{doubleline=false,linewidth=0.45pt,nodesep=3pt, arrows=->}
\ncline{1,1}{1,2}
\ncline{1,2}{1,3}
\ncline{2,1}{2,2}
\ncline{2,2}{2,3}
\ncline{3,1}{3,2}
\ncline{3,2}{3,3}
\]
\end{postscript}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111021/61e525be/attachment.html>


More information about the texhax mailing list