tcolorbox 和 pstricks 有冲突吗?

tcolorbox 和 pstricks 有冲突吗?

以下代码来自我的一个更大的文档,其中包含使用生成的几个 pstricks 和盒子tcolorbox

\documentclass[fontsize=12pt,letterpaper,openany]{scrbook}
\usepackage{etex}
\reserveinserts{28}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}

\usepackage[theorems]{tcolorbox}

\usepackage{auto-pst-pdf}

\usepackage{pstricks}

\usepackage{pst-all}
\usepackage{pst-bar}
\usepackage{pst-plot}
\usepackage{pst-node}
\usepackage{pst-func}

\usepackage{pstricks-add}

\usepackage{microtype}

\tcbset{noparskip}

\newcounter{mydefinition}[chapter]
\renewcommand{\themydefinition}{\unskip}

\tcbmaketheorem{definition}{Definition}{fonttitle=\bfseries\sffamily,arc=0mm, colback=blue!5!white,colframe=blue!75!black}{mydefinition}{def}

\begin{document}

\begin{definition}{Relative Frequency}{rf}
The \textbf{\textit{relative frequencies}} are the proportions (or percents) of the observations out of the total frequencies possible and is found using the formula
\begin{align*}
\text{relative frequency}=\frac{\text{frequency}}{\text{sum of all frequencies}}
\end{align*} 
A \textbf{\textit{relative frequency distribution}} lists each category of data
together with the relative frequency. 
\end{definition}
\begin{pspicture}(-1,-1)(9,4)
\psset{xunit=.5cm,yunit=.5cm,runit=.5cm}
\psgrid[gridlabels=0pt,subgriddiv=0,gridcolor=lightgray,subgridcolor=lightgray](0,0)(0,0)(19,7)
\psaxes[Dy=2,dy=1,ymathLabel=true,xLabels={,,Brown,,,Yellow,,,Red,,,Orange,,,Blue,,,Green,,},xLabelsRot=45,xmathLabel=false]{->}(0,0)(0,0)(20,8)
\end{pspicture}
\end{document}

在过去,这样的示例可以使用 pdfLaTeX 进行编译,没有任何问题,但在最近的更新之后,现在出现了错误:

Error: /typecheck in --div-- Operand stack: 1 1 0.0 TeXcolorgray 65781.8 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1951 1 3 %oparray_pop 1950 1 3 %oparray_pop 1934 1 3 %oparray_pop 1820 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval-- 5 --nostringval-- %repeat_continue --nostringval-- Dictionary stack: --dict:1186/1684(ro)(G)-- --dict:0/20(G)-- --dict:178/200(L)-- --dict:177/300(L)-- Current allocation mode is local Last OS error: Invalid argument Current file position is 256163 GPL Ghostscript 9.16: Unrecoverable error, exit code 1

我查看了tcolorbox第 258 页的文档,但似乎无法弄清楚如何让这两个包一起工作。当我删除定义框时,它将编译并且不会出现错误。

有人能指出我做错了什么吗?我的 pdfLaTeX 上确实有 -shell-espace 选项,如果有帮助的话。

相关内容