von cis » Di 15. Sep 2020, 11:22
Ich übersetze
% arara: pdflatex: {synctex: yes, interaction: nonstopmode, shell: yes}
% arara: asymptote
% arara: pdflatex: {synctex: yes, interaction: nonstopmode, shell: yes}
\documentclass[border=20pt]{standalone}
\usepackage{asymptote}
\begin{document}
\begin{asy}
import graph3;
size(400,0);
currentprojection=orthographic(4,0,2);
real R=10;
real a=10;
real D=15*pi/180;
triple f(pair t) {
return ((R+a*cos(t.y+D))*cos(t.x+D),(R+a*cos(t.y+D))*sin(t.x+D),a*sin(t.y+D));
}
pen p=rgb(1,0,0)+thick();
surface s=surface(f,(0,0),(2pi,2pi),24,24,Spline);
draw(s,surfacepen=material(white+opacity(0.8),
ambientpen=white),meshpen=p);
\end{asy}
\end{document}
von https://tex.stackexchange.com/a/435341/46023 und bekomme
-----------------------------------------------------------------
(Asymptote) Asymptote
-----------------------------------------------------------------
error: could not load module 'latex'
Namenlos-1.tex: 1.8: syntax error
error: could not load module 'Namenlos-1.tex'
C:\texlive\2020\bin\win32\runscript.tlu:915: command failed with exit code 1:
asy latex Namenlos-1.tex
Was muss ich hier besser machen?
Ich übersetze
[code]% arara: pdflatex: {synctex: yes, interaction: nonstopmode, shell: yes}
% arara: asymptote
% arara: pdflatex: {synctex: yes, interaction: nonstopmode, shell: yes}
\documentclass[border=20pt]{standalone}
\usepackage{asymptote}
\begin{document}
\begin{asy}
import graph3;
size(400,0);
currentprojection=orthographic(4,0,2);
real R=10;
real a=10;
real D=15*pi/180;
triple f(pair t) {
return ((R+a*cos(t.y+D))*cos(t.x+D),(R+a*cos(t.y+D))*sin(t.x+D),a*sin(t.y+D));
}
pen p=rgb(1,0,0)+thick();
surface s=surface(f,(0,0),(2pi,2pi),24,24,Spline);
draw(s,surfacepen=material(white+opacity(0.8),
ambientpen=white),meshpen=p);
\end{asy}
\end{document}[/code]
von [url]https://tex.stackexchange.com/a/435341/46023[/url] und bekomme
[tt]-----------------------------------------------------------------
(Asymptote) Asymptote
-----------------------------------------------------------------
error: could not load module 'latex'
Namenlos-1.tex: 1.8: syntax error
error: could not load module 'Namenlos-1.tex'
C:\texlive\2020\bin\win32\runscript.tlu:915: command failed with exit code 1:
asy latex Namenlos-1.tex[/tt]
Was muss ich hier besser machen?