New answers tagged asymptote
0
votes
How to draw line parallel to a line and tangent to a circle?
This is what I have done for the actual problem.
settings.outformat = "png";
defaultpen(fontsize(14pt));
import geometry;
size(16cm);
pair a = (0, 1.5);
pair b = (-1, 0);
pair c = (1, 0);
...
2
votes
Accepted
How to draw line parallel to a line and tangent to a circle?
I am by no means an expert in Asymptote, so there are probably much more elegant ways to do this, but here is one possible solution:
\documentclass[border=5mm]{standalone}
\usepackage{asymptote}
\...
4
votes
Accepted
How to draw cube chain?
Here's a tikz solution. You can change\cubesAmount to draw more or less cubes.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[z={(0.5,0.5)}]
\def\cubesAmount{3}
\...
5
votes
How to draw cube chain?
Update: One can include the asymptote code in a LaTex document. It is something like this
\documentclass{article}
\usepackage{asymptote}
\begin{document}
\begin{asy}
// can be directly run on http://...
8
votes
Tangent, Normal and Binormal Vectors
I use some maths formulae are in here and the Frenet–Serret frame (or TNB frame).
With avaiable formulae, Asymptote code is plain and simple. Hidden lines can be dashed, but I don't like that, ...
1
vote
Font issue in Asymptote 3D Texlive 2022
I downloaded TeXLive 2022.
/usr/local/texlive/2022/bin/x86_64-linux/asy -f pdf
works fine, where test.asy contains the lines
import three;
unitsize(1cm);
draw('en 3D : $B$ et B',(0,0,0)--(10,0,0));
...
1
vote
different appearances of the same color
Using xcolor's definition of purple in asy.
usepackage("xcolor");
unitsize(1cm);
// use xcolor purple
pen purple=rgb(.75,0,.25);
real r=.8, R=1.5;
real d=2sqrt(R*r);
pair A=(0,r), B=(d,R); ...
0
votes
Right triangle with angle
I don't know if asymptote or tikz is required or not, but IMO the easiest code is with pict2e. You can run trigonometric calculations from within this code using some packages that can do this, but ...
1
vote
Right triangle with angle
With pure tikz is also simple. For 300 pt wide image you can use the following MWE:
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) -- ++ (18:...
3
votes
Accepted
Right triangle with angle
Try this
\documentclass[border=5mm]{standalone}
\usepackage{asymptote}
\begin{document}
\begin{asy}
size(300);
pair A = (0,0);
pair B = dir(18);
pair C = (xpart(B), 0);
draw (A--B--...
1
vote
Labels in 3D mode don't work in Asymptote
I can't comment so here's an answer: in case anybody else encounters the exact same problem in 2022, downgrading from ghostscript 9.56 to ghostscript 9.55 solved it for me.
6
votes
Accepted
How to plot Inverse of W-lambert function with pgfplots?
Now I see what you got stuck: The error Dimension too large may appear when trying to plot (with pgfplots that uses implicit scaling) the graph of the inverse of 2 branches of the Lambert W-function (...
Top 50 recent answers are included
Related Tags
asymptote × 699tikz-pgf × 185
3d × 117
diagrams × 74
pstricks × 71
pgfplots × 35
graphics × 33
metapost × 32
plot × 13
tikz-3dplot × 13
pdftex × 12
miktex × 11
technical-drawing × 11
fonts × 9
luatex × 9
texmaker × 9
animations × 9
latexmk × 8
errors × 7
floats × 6
pdf × 6
compiling × 6
graphs × 6
texshop × 6
gnuplot × 6