% Plain LuaTeX or Plain XeTeX
\input luaotfload.sty% comment this out for XeTeX
\input pst-circ
\pspicture(-1, 0)(3.5, 4.5)
\circledipole[labeloffset = 0](0, 3)(3, 3){V}
\coil[dipolestyle=curved](0, 1)(3, 1){}
\wire(0, 1)(0, 3)
\wire(3, 1)(3, 3)
\endpspicture
This produces an error message in both (XeTeX and LuaTeX):
Undefined control sequence.
\RequirePackage
When I run this example with LuaTeX and without \input luaotfload.sty
then there are even
more errors and no picture is produced.
What is wrong here? According to the manual of PSTricks it should work with Plain TeX.
\ifdefined\@latexerr
for the format, but as it uses\expandafter\ifx\csname @latexerr\endcsname\relax
earlier, \@latexerr is defined and so the test is wrong. Report it to the maintainer.\input luaotfload.sty
?