# Tag Info

### 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); ...
• 115
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} \...
• 35.8k
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} \...
• 1,849

### 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://...
• 13.5k

### 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, ...
• 13.5k
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)); ...
• 757
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); ...
• 121

### 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,591
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:...
• 250k
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--...
• 35.8k
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.
• 33