pspicture 中未定义的控制序列

pspicture 中未定义的控制序列

我尝试包含一个(使用另一个程序*.eps保存)*.tex

\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{ngerman}
\usepackage{pstricks}
\begin{document}
\section{asdf}
\include{t}
\end{document}

其中t.tex是(错误行出现后缩短)

\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(605.33331299,340){
\newrgbcolor{curcolor}{1 1 1}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]{
\newpath
\moveto(302.61332577,0.0380208)
\lineto(0,0.0380208)
\lineto(0,339.9599915)
\lineto(605.1893182,339.9599915)
\lineto(605.1893182,0.0380208)
\lineto(302.61332577,0.0380208)
}}%ERROR LINE - ERROR LINE - ERROR LINE - ERROR LINE - ERROR LINE
{
\newrgbcolor{curcolor}{0.00392157 0.00392157 0.00392157}
\pscustom[linewidth=0.99999949,linecolor=curcolor]{
\newpath
\moveto(93.47018108,67.31197656)
\lineto(93.47018108,72.97811231)
}}
{
\newrgbcolor{curcolor}{0.00392157 0.00392157 0.00392157}
\pscustom[linewidth=0.99999949,linecolor=curcolor]{
\newpath
\moveto(93.47018108,67.31197656)
\lineto(93.47018108,72.97811231)
}}
{
\newrgbcolor{curcolor}{0.00392157 0.00392157 0.00392157}
\pscustom[linewidth=0.99999949,linecolor=curcolor]{
\newpath
\moveto(95.74005815,287.79562041)
\lineto(94.03738349,288.32458055)
\lineto(93.99989022,288.28594115)
\lineto(93.96186324,288.24863413)
\lineto(93.96186324,288.20999473)
\closepath
}}
{
\newrgbcolor{curcolor}{0.00392157 0.00392157 0.00392157}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]{
\newpath
\moveto(96.42026426,97.00213091)
\lineto(96.42026426,97.11506424)
\lineto(96.38226426,97.15306424)
\lineto(96.38226426,97.3041309)
\lineto(96.34479759,97.3417309)
\lineto(96.34479759,97.3797309)
\lineto(96.30679759,97.41719756)
}}
\end{pspicture}

这只是一个 MWE,想知道当它在这里工作时,将文件包含在我的普通文档中是否会起作用。

答案1

使用

\documentclass[a4paper,11pt]{article}
\usepackage{fontspec}
\usepackage[ngerman]{babel}
\usepackage{pstricks}
\begin{document}
    \section{asdf}
    \input{t}
\end{document}

xelatex并使用 和\input而不是˛来运行它\include。但是,您的图像完全是胡说八道,因为它或多或少“什么都不做”。以下是使用 \psframebox{\input{t}} 的输出:

在此处输入图片描述

相关内容