Tagged Questions

38 views

Asymptote: How to draw surfaces with more than four vertices without “seams?”

In Asymptote 3D, I need to draw surfaces with more than 4 vertices, but when I do, either it simply doesn't work (I can't reproduce this in a simple example, but can provide a more complicated case ...
2k views

How to make the length of a car moving on a roller coaster track remain unchanged?

For any arbitrary parametric smooth curve, how can I make the length of a car remain unchanged? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot,pst-node} \pstVerb { ...
419 views

Plot the cusp catastrophe surface

I'm trying to draw (plot) the Cusp catastrophe surface into latex using any software logic. I am completely stuck because I'm definitely not a mathematician. The surface has the potential: V(x) = ...
3k views

Drawing a Reuleaux Triangle

A Reuleaux triangle is a shape of constant width sort of like a rounded equilateral triangle. (Reuleaux triangle - Wikipedia, the free encyclopedia) It can be formed by the intersection of three ...
320 views

Drawing torus points and arches with coordinates read from a file

I have a quite intricate question... I have to plot a torus of radii (r,R) with two set of points of different colour on it its surface. The points' coordinates are in two different files that must be ...
1k views

Draw Vertices of Regular Polygon

I am trying to draw just the nodes (no sides) at the vertices of a regular hexagon. This answer should be easily modified to accomplish what I want, but I am such a novice that I have difficulty ...
184 views

Drawing reflected (billiard) trajectories

I'm writing a paper on billiards, and would like to draw the following figures myself. Are there any good packages that can render them? I've heard that asymptote might be a good choice, but am not ...
721 views

Graphing multiple functions on the same graph

I'm new to LaTeX and am attempting to type up some old differential equations notes. The only part I seem to be having trouble with is graphing multiple functions onto a single graph. For example the ...
667 views

Chaotic billiard with TikZ

I'm looking for a TikZ library that could help me to represent different shapes of chaotic billiards. Any idea?
252 views

Is there another better way to have a region with gradient opacity?

My objective is to get a region with gradient opacity. In the following MWE, the region is a quarter of a disk on the top a bird. I made the gradient opacity by partitioning the sector into 45 ...
2k views

What is the simplest way to draw this triangle exactly?

I want to see how we can exactly construct the following diagram as simple as possible. It means that the manual calculation should be avoided. Note that the angle marks attached to angles ...
818 views

Draw a 3D diamond structure

I want to draw a 3D diamond crystal structure. The point where I struggle is quite in the beginning to draw connecting 3D rods: \documentclass{article} \usepackage[utf8]{inputenc} ...
115 views

Scaling External Asymptote File within the Current Document

I have diagrams generated in Asymptote stored in external files. Is it possible to input the files into my current LaTeX document and to choose the scale factor within the current document? The ...
323 views

3D arc in Asymptote

I constructed the technical figure embedded below. I wonder how to draw red arc to denote angle $\alpha$ between two blue vectors. (Actually, I add the desired output using Inkscape.) The Asymptote ...
175 views

Drawing arc with coordinates in 2D in asymptote

I've seen this post for 3D, but I cannot get this working in 2D. Here is my code: pair O1 = origin; pair O2 = (1.5,0); pair O3 = (1,-1); pair C = (0.75,sqrt(7)/4); pair F = (0.75,-sqrt(7)/4); pair E ...
2k views

How to automatically draw tree diagram of prime factorization with LaTeX?

I want to have a simple interface to automatically draw tree diagrams of prime factorization. For example, by invoking the following code, \PrimeTree{36} \PrimeTree{90} \PrimeTree{112} ...
475 views

How to draw spherical triangles?

Does anyone know how to draw spherical arcs and spherical triangles using LaTeX?
797 views

Drawing the contour of a 3d torus

I would like to draw a torus, like the one on the question How to draw a torus, with a 3d package. I would like to avoid drawing the torus in 2d with inkscape (or directly with tikz) because I will ...
242 views

Position shift when adding label to 3D asymptote diagram

I have this strange issue with 3d asymptote diagrams. Without labels they act as a normal figure, but when I add label, the diagram moves to the edge off the page... MWE: ...
286 views

Two coloured arrow

I would like to draw arrows in diagrams that have two colours split along the axis. (This shall represent a mixed case in colour-coded case distinction.) Here's a sketch: Here is a MWE to play with: ...
859 views

Help creating solid cylinders along a path in Tikz for crystal lattice diagram

I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference). I have managed to figure out the ...
610 views

Simple line with dots, known coordinates

Are there any easy way to make something similar to this image in tikz, asympote or similar? I know the coordinates, to each of the points =) Ofcourse I know how to solve this, but to do it in ...