I’m trying to produce a pspicture with marked angles, so I’m using the pstricks extention pst-eucl. Here is a minimal example: (I’m using MikTeX 9.25 together with TeXmaker on Windows 7)
\documentclass[12pt,a4paper]{report}
%\usepackage[latin1]{inputenc}
%\usepackage[francais]{babel}
%\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-tools,pst-plot,pst-eucl}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\begin{center}
\resizebox{0.8\linewidth}{!}{
\begin{pspicture}(-1,-1)(6,6)
\psset{nodesep=-1cm}
\psset{PointName=none, PointSymbol=none}
\pstGeonode[PosAngle=90](0,1){A}(5,2){B}(0,4){C}(5,3){D}(2,5){E}(4,0){F}
\pstLineAB{A}{B}
\pstLineAB{C}{D}
\pstLineAB{E}{F}
\pstInterLL{C}{D}{E}{F}{G}
\pstInterLL{A}{B}{E}{F}{H}
\uput[135](C){\Large $(d_1)$} \uput[135](A){\Large $(d_2)$} \uput[45](E){\Large $(d_3)$}
\pstMarkAngle[fillstyle=solid, fillcolor=gray, MarkAngleRadius=.5]{H}{G}{D}{}
\pstMarkAngle[fillstyle=solid, fillcolor=gray, MarkAngleRadius=.7]{G}{H}{A}{}
\end{pspicture}
}
\end{center}
\end{document}
It seems that there is some kind of conflict between pstricks and XeLaTeX.
When using \pstMarkAngle
this is the message of error I get:
MikTeX GPL Ghostscript 9.25 : Unrecoverable error, exit code 1
It slows down the compilation but doesn’t break it though. At the end, the compiler announces that there were no errors. This is unconvenient because when loading multiple pspictures containing \pstMarkAngle
the compilation takes much more longer.
The problem does not seem to take place when using LaTeX
instead of XeLaTeX
. But changing to LaTeX
for me is not the desired solution.
Does anyone have an idea what is going wrong? I searched for the solution with no success, and any help would be appreciated. Thank you very much.