New answers tagged

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); ...
user avatar
  • 115
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} \...
user avatar
  • 35.8k
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} \...
user avatar
  • 1,849
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://...
user avatar
  • 13.5k
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, ...
user avatar
  • 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)); ...
user avatar
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); ...
user avatar
  • 121
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 ...
user avatar
  • 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:...
user avatar
  • 250k
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--...
user avatar
  • 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.
user avatar
  • 33
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 (...
user avatar
  • 13.5k

Top 50 recent answers are included