<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 21/11/2021 22:40, Hartmut Henkel
wrote:</div>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:746a5328-32f0-8233-e5d6-9e872deb996@hahepc1.hahe">[...]
<pre class="moz-quote-pre" wrap="">
...the above example works here with latex & dvips, an \endpsclip was
missing, giving an "! Extra }, or forgotten \endgroup." error.
Best Regards, Hartmut</pre>
</blockquote>
<p><br>
</p>
<p>And here with LuaLaTeX. Well, I say "works", but I cannot
guarantee that the graphs are correct. But at least I get
coloured lines ... N.b., spaces added to improve legibility.<br>
</p>
<blockquote type="cite"><tt>% !TeX Program=LuaLaTeX</tt>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; line-height:100%;"><tt><br>
</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\documentclass {article}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\usepackage {pstricks-add}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\begin {document}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\begin {figure}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psset {algebraic=true, plotpoints=501}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\begin {pspicture} (-3, -1.5) (3, 1.5)</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psaxes [xunit=1] (0, 0) (-6.283, -1.5)
(6.283, 1.5)</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psclip {\psframe [linestyle=none] (-3,
-2) (3.15, 4)}%</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psplot [linecolor=blue,
linestyle=dashed, linewidth=2pt] {-1} {1} {asin(x)}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psplot [linecolor=red, linestyle=dashed,
linewidth=2pt] {-1} {1} {acos(x)}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\endpsclip % <------------ was missing</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\end {pspicture}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\caption {Inverse trigonometric plots in
algebraic notation}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\end {figure}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\newpage</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\begin {figure}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psset {algebraic=false, plotpoints=501}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\begin {pspicture} (-3, -1.5 )(3, 1.5)</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psaxes [xunit=1] (0, 0) (-6.283, -1.5)
(6.283, 1.5)</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psclip {\psframe [linestyle=none] (-3,
-2) (3.15, 2)}%</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\psplot [linecolor=green] {-3.14} {3.14}
{x ATAN }</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\endpsclip</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\end {pspicture}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\caption {Inverse trigonometric plots in
reverse Polish notation}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\end {figure}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;
line-height:100%;"><tt>\end {document}</tt></p>
</blockquote>
-- <br>
<p><i>Philip Taylor</i><br>
</p>
</body>
</html>