How to draw a lemniscate in asymptote
How to draw a lemniscate in Asymptote? There is an answer here:
How to draw lemniscate with TikZ
However, if run asymptote after running pdflatex, I get the following error message:
Error: /undefined in .setopacityalpha
Operand stack:
0.5
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 31005
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
Error: /undefined in .setopacityalpha
Operand stack:
0.2
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 38506
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
asymptote
add a comment |
How to draw a lemniscate in Asymptote? There is an answer here:
How to draw lemniscate with TikZ
However, if run asymptote after running pdflatex, I get the following error message:
Error: /undefined in .setopacityalpha
Operand stack:
0.5
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 31005
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
Error: /undefined in .setopacityalpha
Operand stack:
0.2
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 38506
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
asymptote
add a comment |
How to draw a lemniscate in Asymptote? There is an answer here:
How to draw lemniscate with TikZ
However, if run asymptote after running pdflatex, I get the following error message:
Error: /undefined in .setopacityalpha
Operand stack:
0.5
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 31005
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
Error: /undefined in .setopacityalpha
Operand stack:
0.2
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 38506
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
asymptote
How to draw a lemniscate in Asymptote? There is an answer here:
How to draw lemniscate with TikZ
However, if run asymptote after running pdflatex, I get the following error message:
Error: /undefined in .setopacityalpha
Operand stack:
0.5
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 31005
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
Error: /undefined in .setopacityalpha
Operand stack:
0.2
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop --nostringval-- 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Current file position is 38506
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/opt/texlive/2018/texmf-dist/asymptote/plain_shipout.asy: 87.10: runtime: shipout failed
asymptote
asymptote
asked 7 hours ago
S. VenkataramanS. Venkataraman
22516
22516
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Wow.
After a lot of digging I found this bug report (which isn't actually a bug) which suggests that GhostScript (which is called by Asymptote) runs into problems when opacity is used along the the -dSAFER
option. This option assures that no PostScript code which could be harmful to the system is executed. Enabling this option makes the opacity fail. If you change the line fpen=lightred+opacity(0.5);
to fpen=lightred;//+opacity(0.5);
and pen fpen=lightgreen+opacity(0.2);
to pen fpen=lightgreen;//+opacity(0.2);
(commenting out the opacity) the picture is generated:
but it's not what you'd expect. And if you enable the opacity the problem persists because Asymptote calls GhostScript with -dSAFER
by default since 2008 (from the change log):
commit 407a627a5d18b773739a9535b486b8a177dd7c49
Author: John Bowman <bowman@ualberta.ca>
Date: Mon Jun 23 11:00:40 2008 -0600
By default run gs with -dSAFER.
After more digging through code and documentation looking for opacity
without success, I searched for safe
and voilà:
there is a -nosafe
option which you can (when you trust the code your are executing) pass to asy
so that the opacity will work.
So you can use the same code from the answer you linked (How to draw lemniscate with TikZ) and compile the document with:
pdflatex cassini.tex
asy -nosafe cassini-*asy
pdflatex cassini.tex
and it will work :)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473893%2fhow-to-draw-a-lemniscate-in-asymptote%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Wow.
After a lot of digging I found this bug report (which isn't actually a bug) which suggests that GhostScript (which is called by Asymptote) runs into problems when opacity is used along the the -dSAFER
option. This option assures that no PostScript code which could be harmful to the system is executed. Enabling this option makes the opacity fail. If you change the line fpen=lightred+opacity(0.5);
to fpen=lightred;//+opacity(0.5);
and pen fpen=lightgreen+opacity(0.2);
to pen fpen=lightgreen;//+opacity(0.2);
(commenting out the opacity) the picture is generated:
but it's not what you'd expect. And if you enable the opacity the problem persists because Asymptote calls GhostScript with -dSAFER
by default since 2008 (from the change log):
commit 407a627a5d18b773739a9535b486b8a177dd7c49
Author: John Bowman <bowman@ualberta.ca>
Date: Mon Jun 23 11:00:40 2008 -0600
By default run gs with -dSAFER.
After more digging through code and documentation looking for opacity
without success, I searched for safe
and voilà:
there is a -nosafe
option which you can (when you trust the code your are executing) pass to asy
so that the opacity will work.
So you can use the same code from the answer you linked (How to draw lemniscate with TikZ) and compile the document with:
pdflatex cassini.tex
asy -nosafe cassini-*asy
pdflatex cassini.tex
and it will work :)
add a comment |
Wow.
After a lot of digging I found this bug report (which isn't actually a bug) which suggests that GhostScript (which is called by Asymptote) runs into problems when opacity is used along the the -dSAFER
option. This option assures that no PostScript code which could be harmful to the system is executed. Enabling this option makes the opacity fail. If you change the line fpen=lightred+opacity(0.5);
to fpen=lightred;//+opacity(0.5);
and pen fpen=lightgreen+opacity(0.2);
to pen fpen=lightgreen;//+opacity(0.2);
(commenting out the opacity) the picture is generated:
but it's not what you'd expect. And if you enable the opacity the problem persists because Asymptote calls GhostScript with -dSAFER
by default since 2008 (from the change log):
commit 407a627a5d18b773739a9535b486b8a177dd7c49
Author: John Bowman <bowman@ualberta.ca>
Date: Mon Jun 23 11:00:40 2008 -0600
By default run gs with -dSAFER.
After more digging through code and documentation looking for opacity
without success, I searched for safe
and voilà:
there is a -nosafe
option which you can (when you trust the code your are executing) pass to asy
so that the opacity will work.
So you can use the same code from the answer you linked (How to draw lemniscate with TikZ) and compile the document with:
pdflatex cassini.tex
asy -nosafe cassini-*asy
pdflatex cassini.tex
and it will work :)
add a comment |
Wow.
After a lot of digging I found this bug report (which isn't actually a bug) which suggests that GhostScript (which is called by Asymptote) runs into problems when opacity is used along the the -dSAFER
option. This option assures that no PostScript code which could be harmful to the system is executed. Enabling this option makes the opacity fail. If you change the line fpen=lightred+opacity(0.5);
to fpen=lightred;//+opacity(0.5);
and pen fpen=lightgreen+opacity(0.2);
to pen fpen=lightgreen;//+opacity(0.2);
(commenting out the opacity) the picture is generated:
but it's not what you'd expect. And if you enable the opacity the problem persists because Asymptote calls GhostScript with -dSAFER
by default since 2008 (from the change log):
commit 407a627a5d18b773739a9535b486b8a177dd7c49
Author: John Bowman <bowman@ualberta.ca>
Date: Mon Jun 23 11:00:40 2008 -0600
By default run gs with -dSAFER.
After more digging through code and documentation looking for opacity
without success, I searched for safe
and voilà:
there is a -nosafe
option which you can (when you trust the code your are executing) pass to asy
so that the opacity will work.
So you can use the same code from the answer you linked (How to draw lemniscate with TikZ) and compile the document with:
pdflatex cassini.tex
asy -nosafe cassini-*asy
pdflatex cassini.tex
and it will work :)
Wow.
After a lot of digging I found this bug report (which isn't actually a bug) which suggests that GhostScript (which is called by Asymptote) runs into problems when opacity is used along the the -dSAFER
option. This option assures that no PostScript code which could be harmful to the system is executed. Enabling this option makes the opacity fail. If you change the line fpen=lightred+opacity(0.5);
to fpen=lightred;//+opacity(0.5);
and pen fpen=lightgreen+opacity(0.2);
to pen fpen=lightgreen;//+opacity(0.2);
(commenting out the opacity) the picture is generated:
but it's not what you'd expect. And if you enable the opacity the problem persists because Asymptote calls GhostScript with -dSAFER
by default since 2008 (from the change log):
commit 407a627a5d18b773739a9535b486b8a177dd7c49
Author: John Bowman <bowman@ualberta.ca>
Date: Mon Jun 23 11:00:40 2008 -0600
By default run gs with -dSAFER.
After more digging through code and documentation looking for opacity
without success, I searched for safe
and voilà:
there is a -nosafe
option which you can (when you trust the code your are executing) pass to asy
so that the opacity will work.
So you can use the same code from the answer you linked (How to draw lemniscate with TikZ) and compile the document with:
pdflatex cassini.tex
asy -nosafe cassini-*asy
pdflatex cassini.tex
and it will work :)
answered 5 hours ago
Phelype OleinikPhelype Oleinik
22.7k54482
22.7k54482
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473893%2fhow-to-draw-a-lemniscate-in-asymptote%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown