Code mit 'asymptote' (und arara) übersetzen

Tabellen und Grafiken erstellen und anordnen


cis
Forum-Anfänger
Forum-Anfänger
Beiträge: 47
Registriert: Mi 22. Jul 2020, 20:14

Code mit 'asymptote' (und arara) übersetzen

Beitrag 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?


CrazyHorse
Forum-Guru
Forum-Guru
Beiträge: 252
Registriert: Di 16. Mär 2010, 09:39

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

Beitrag von CrazyHorse »

Lass es mal mit arara laufen:

arara <datei>.tex

cis
Forum-Anfänger
Forum-Anfänger
Beiträge: 47
Registriert: Mi 22. Jul 2020, 20:14

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

Beitrag 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?"


Antworten