Seite 1 von 1

Code mit 'asymptote' (und arara) übersetzen

Verfasst: Di 15. Sep 2020, 11:22
von cis

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?


Re: Code mit 'asymptote' (und arara) übersetzen

Verfasst: Sa 31. Okt 2020, 20:00
von CrazyHorse

Lass es mal mit arara laufen:

arara <datei>.tex

Re: Code mit 'asymptote' (und arara) übersetzen

Verfasst: Mi 4. Nov 2020, 22:13
von cis
CrazyHorse hat geschrieben:
Sa 31. Okt 2020, 20:00

Lass es mal mit arara laufen:

arara <datei>.tex

Ich wüsste jetzt nicht, was ich da bisher anders gemacht habe.
Ich hatte hier eigentlich nicht gefragt: "Wie übersetze ich ein Dokument mit arara in der Kommandozeile?"