[pstricks] psclip and xelatex
mathias legrand
legrand.mathias at gmail.com
Fri Sep 24 00:22:57 CEST 2010
Hi all,
I'm slowly investigating XeLatex and pstricks (Miktex 2.8) and what I am
to say has already been mentioned on the web but I cannot solve the
problem : the \psclip command does not work properly with Xelatex.
What is the results for you with what follows? Thank you. I downloaded
the xdvipdfmx.cfg file from CTAN and put it where I compile the document
(not in the tex tree) and my system is (I hope) up-to-date.
The file compiles well without the \psclip command.
\listfiles
\documentclass[11pt]{book}
\usepackage{mathrsfs}
\usepackage[no-math]{fontspec}
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage[frenchb]{babel}
\defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text,
Numbers=OldStyle}
\setmainfont{Minion Pro}
\setsansfont[BoldFont={Myriad Pro Semibold}, BoldItalicFont={Myriad Pro
Semibold Italic}]{Myriad Pro}
\setmonofont[Scale=MatchLowercase]{Myriad Pro}
\usepackage{pst-plot}
\usepackage{pstricks-add}
\definecolor{ocre}{RGB}{243,102,25}
\begin{document}
\chapter{One}
\section{One}
\begin{figure}[h]
\def\yMax{1.3}
\def\xMax{3.83}
\begin{pspicture}(-\xMax,-\yMax)(\xMax,\yMax)
\psclip{\psframe[fillstyle=solid,fillcolor=gray!10,linestyle=none](-\xMax,-\yMax)(\xMax,\yMax)}
\psline[linecolor=gray!50](-\xMax,0)(\xMax,0)
\psline[linecolor=gray!50](0,-\yMax)(0,\yMax)
\psplot[linewidth=1.25pt,algebraic=true,linecolor=ocre,plotpoints=100]{-\xMax}{\xMax}{2*x^2-1/2}
\endpsclip
\end{pspicture}
\end{figure}
\end{document}
More information about the PSTricks
mailing list