# Tag Info

7

Here's an answer based on the idea in my comment of last year; while it does not directly answer your general question about a union of paths, it does show that MP can get close to drawing your characters directly. And note that penpos certainly does allow you to vary the slant of the pen as the stroke moves, indeed that's the whole point of it. Here's ...

5

It works if you leave out the suffixes from the vpath macros. \fmfiset{p1}{vpath(__v2,__t)} \fmfiset{p2}{vpath(__t,__v2)} What the suffixes are supposed to be doing is a mystery to me. Here's a complete program using feynmp-auto. \documentclass{article} \usepackage{feynmp-auto} \begin{document} \begin{fmffile}{first} \begin{fmfgraph*}(200,200) ...

10

The plain.mp implementation of buildcycle fails to find the correct overlap between two cyclic paths if the beginning (point 0) of one of the paths lies inside the other path. For example: beginfig(3); path A, B; picture p[]; A = fullcircle scaled 2.5cm; B = fullcircle scaled 2cm shifted (1cm,0); p1 = image(fill buildcycle(A,B) withcolor ...

6

In fact, angle accepts four arguments: (notice the spaces) angle=⟨angle⟩:⟨dimension⟩␣⟨line width factor⟩␣⟨outer factor⟩ These arguments are introduced for only one reason: flexibility. (1 2 3) First of all we would like to assign the shape and the size of an arrow tip directly. This leads to a simple convention: angle=⟨angle⟩:⟨dimension⟩ which ...

4

From pgfmanual, page 186 And a little example \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{arrows.meta,bending} \tikzset{mparr/.tip={Triangle[round,angle=45:4bp]}} \tikzset{mpstyle/.style={line width=.5bp,line join=round,line cap=round,>=mparr}} \begin{document} \begin{tikzpicture} \begin{scope}[mpstyle] \draw[->] (0,0) .. ...

5

The code of the OP image has syntactic errors. Luckily, the metapost program gives a user-friendly tips to find them. The metapost program is upset with two lines in the code: first complain >> Scale ! Isolated expression. <to be read again> : l.4 Scale: 1=u ? points out to the line 4 (which is indicated as ...

7

Asymptote version using polargraph to draw the Archimedean spiral: // spiral.asy: // settings.tex="pdflatex"; size(5cm); import graph; import fontsize; defaultpen(fontsize(9pt)); texpreamble("\usepackage{siunitx}\usepackage{lmodern}"); pen linePen=darkblue+0.8bp; pen thinPen=linewidth(0.7*linewidth())+gray(0.3); real r=1, phi=405, rphi=radians(phi), d=0.2; ...

17

Here is a Tikz version without using pgfplots. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[x=3cm,y=3cm,axis/.style={-latex,very thin},thick] \draw[axis] (-1,0) -- (1,0); \draw[axis] (0,-1) -- (0,1); \draw (0,0) circle(0.8) -- (405:0.8); \draw [red,->,domain=0:405,smooth,samples=100] plot ({\x}: {0.3 + \x/3000}) node[right] ...

7

With the mfpic package. To draw the spiral representing the angle, I used a simple polar function. Notice the \trimpath{ , } macro which trims the spiral at its extremities, to allow it not to overlap the x-axis and the radius at these points. \documentclass{scrartcl} \usepackage[metapost, mplabels]{mfpic} \mfpverbtex{%&latex ...

10

Here is a simple MetaPost solution. prologues := 3; outputtemplate := "%j%c.eps"; input TEX; beginfig(1); theta = 405; path xx, yy, s, c; xx = (left--right) scaled 5cm; yy = (down--up) scaled 5cm; drawarrow xx withcolor .7 white; drawarrow yy withcolor .7 white; c = fullcircle scaled 8cm; s = (1.2cm,0) for t=1 step 1 until theta-eps: -- (1.2cm + ...

25

Here's how you can do this using PGFPlots: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines=middle, axis equal image, enlargelimits, xtick=\empty, ytick=\empty, data cs=polar, samples=100 ] ...

Top 50 recent answers are included