# Tag Info

14

Are you looking for this 5-petal "water-lily" ? % a 5-petal rose (or "water-lily" if you like ^^) \documentclass[tikz,border=3mm]{standalone} \begin{document} \begin{tikzpicture} \def\R{3} \draw (0,0) circle(\R); \draw[smooth,magenta] plot[domain=0:36*5,samples=200] (\x:{\R*cos(5*\x)}); \end{tikzpicture} \end{document} I update the ...

13

Using LuaTeX, it is easy to generate some more generic results. \documentclass{article} \usepackage{tikz} \usepackage{luacode} \begin{document} \tikzset{ arcstyle/.style={ thick } } \begin{luacode*} one_degree = math.pi / 180 function get_inscribed_point(radius, n_poly, index, rotation) local ang = (360.0 / n_poly * index + rotation) * ...

12

Another pstricks solution, with pst-eucl, which has commands to draw regular polygons and the circumscribed circle of a triangle: \documentclass[svgnames]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}(-2.2,-2.2)(1.6,2.2) \SpecialCoor \psset{PointSymbol=none, PointName=none} \pstGeonode(0,0){O}(2;40){A} \pstRegularPolygonOA{O}{A}{5}{...

10

An extra light pure LaTeX solution (Small is beautiful''): \documentclass {article} \usepackage{pict2e} \usepackage{comment} \begin{document} \unitlength=5cm \begin{picture}(2,2)(-1,-1) \begin{comment} ; Elisp code to generate the repetitive LaTeX code for petals. ; only if you are an Emacs user. C-x C-e to evaluate. (dolist (i (number-sequence 0 4) ...

10

EDIT: the bending library When drawing large lines with arrows, the bending is not respected, unless you use the bending library (doesn't need anything else than declaring it in the preamble). Now this looks like a real circle. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{bending} \begin{document} \begin{tikzpicture} \foreach \...

8

A PSTricks solution only for either fun or comparison purposes. \documentclass[pstricks,border=3mm]{standalone} \begin{document} \pspicture[linecolor=blue,linewidth=2pt](-5,-5)(5,5) \psclip{\pscircle{5}} \foreach \i in {0,60,...,300}{\pscircle(5;\i){5}} \endpsclip \endpspicture \end{document}

8

Is a Metapost alternative allowed? \documentclass{standalone} \usepackage[shellescape,latex]{gmp} \begin{document} \begin{mpost}[name=lily] numeric unit; unit := 2cm; path Circle; Circle := (fullcircle shifted -center fullcircle) scaled (2*unit); path Form; Form := (unit*right) .. origin .. (unit*dir(144)); draw Circle; for i = 1 upto 5: draw Form ...

8

Here is an automated version. Define a new command \sectorfill that takes a comma-separated list for input, where each entry has the form <percentage>/<color>. For example, \sectorfill{25/blue,50/red,75/green,60/orange} would create 4 sectors with radii given as percentages and respective colors. Any color that TikZ understands will work (for ...

8

A short code with pst-euclid: \documentclass[svgnames, border=2pt]{standalone} \usepackage{pst-eucl, multido} \begin{document} \begin{pspicture}(-2.2,-2.2)(2.2,2.2) \SpecialCoor \pnode(0,0){O} \pstGeonode[PointSymbol=none, PointNameSep=0pt]% (0,2){A}(2,0){B}(0,-2){C}(-2,0){D} \pnodes{A}(2;85)(2;5)(2;-5)(2;-86)(2;-95)(2;-175)(2;175)(2;93) \psset{nodesepA=...

7

Borrowing heavily from my answer here, Enumerate with circles and different colors. The default color, if not specified, is black. See ADDENDUM to provide two-digit capacity, per OP request. \documentclass{article} \usepackage{stackengine,xcolor} \newcommand\circnum{\stackinset{c}{}{c}{.1ex}{\small\textcolor{white}{#2}}% {\abovebaseline[-.7ex]{\Huge\...

7

This is your diagram done with xy package (especially to built the commutative diagrams). \documentclass[a4paper,12pt]{article} \usepackage[all,cmtip]{xy} \usepackage{newtxtext,newtxmath} \begin{document} $\xymatrix{ & A\ar@/^.9pc/[dr] & \\ D \ar@/^.9pc/[ur]& & B\ar@/^.9pc/[dl]\\ & C\ar@/^.9pc/[ul] & }$ \end{document}

6

Admittedly a lot more colorful than the image in the question but probably nevertheless useful: \documentclass{article} \usepackage{smartdiagram} \begin{document} \smartdiagram[circular diagram:clockwise]{A, B, C, D} \end{document}

4

I found a couple of solutions to this problem myself. Solution 1 - Quick And Dirty By pure trial and error, I found out that it is possible to fix the protruding part in the picture by mixing in some amount of y axis into the x axis. That means the line \fill[rotate around z=40, mild,y={(0,0,1)},z={(0,1,0)}] (0,0,1) -- (0,0,2) arc (90:-90:1) -- cycle; will ...

4

\documentclass{article} % or another class \usepackage{xcolor} % before tikz or tkz-euclide if necessary \usepackage{tkz-euclide} % no need to load TikZ \usepackage{multirow} \usetikzlibrary{babel} %if there are problems with the active characters \begin{document} \begin{tikzpicture} %arbitrary points \tkzDefPoint(0,4){A} \tkzDefPoint(2,2){B} ...

4

A possibility is to do a marco that draws the set (the circle) and the points, and that names each one. Then all you have to do is connect the desired points. It could be something like this: \documentclass[border=2mm]{standalone} \usepackage{tikz} % Macro \def\r{2} % raduis \newcommand{\myset} % name, position x, position y, number of points {% \begin{...

4

Here is an option that will adjust the picture to whichever angle you choose: The command \trigfuns[<scale>]{<angle>}{<label>} will produce the desired image. The optional argument is a scale factor for the entire figure. Default is 1, which will produce a circle of radius 1cm. The angle is given in degrees. Smaller than 20 or larger than ...

4

This isn't exactly like your example, but see if it's of any interest. The dash pattern is also a bit of a hack, that won't work well in all cases. \documentclass{article} \usepackage{tikz} \newcommand\encircle{% \tikz[baseline=(X.base)] \node (X) [draw, line width=3pt, draw=blue, text=red, ...

3

With XeTeX and LuaTeX, you can directly input 🅑 (Unicode U+1F151) as long as your font includes this symbol (Quivira is quite good IMHO): \documentclass{standalone} \usepackage{fontspec} \newfontfamily\nicetest{Quivira} \begin{document} %\char"1F151\relax {\nicetest 🅑} \end{document}

3

As starting point: \documentclass{article} \usepackage{tikz} \newcommand\circlednumber{\tikz[baseline=(@n.base)]{ \node (@n) [minimum size=1.2em, inner sep=0pt] {#1}; \path[draw=#2,semithick] (@n.north) arc (90:270:0.6em); \path[draw=#3,semithick, dashed] (@n.north) arc (90:-90:0.6em); }} \begin{document} step \...

3

Use \begin{itemize}[label=$\circ$]: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{itemize} \item a \begin{itemize}[label=$\circ$] \item a1 \item a2 % circle skipped here \item a3 \end{itemize} \item b \end{itemize} \end{document}

3

Culprit are empty lines in your matrix. Delete them. Off.topic, you can make more concise code, for example as follows: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[ % define styles net/.style={matrix of nodes, nodes = {circle, draw, text width=2.4em, align=center, ...

3

Since you're working with Overleaf, alternatives to TikZ (PSTricks, Metapost, Asymptote) are available. Here a possibility using Metapost, if you consider to give it an opportunity: \documentclass{article} \usepackage[shellescape,latex]{gmp} \newcommand{\nicecircle}{% \begin{mpost}[name=circle]% vardef nicecircle(expr unit, Angle) = image( %...

3

\documentclass[tikz, border=3pt]{standalone} \usetikzlibrary{angles, quotes} \begin{document} \begin{tikzpicture}[ line cap=round, MA/.style = {% My Angle draw, angle radius=3mm, angle eccentricity=1.5, font=\small} ] \draw (0,0) coordinate[label=180:C] (C) circle[radius=1]; % \draw (C) -- ...

3

Here a suggestion or more like a proof of concept of how to draw this in tikz. with \foreach to draw the basic structure and \filldraw for colorization. \documentclass[border=3.14mm]{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} %filling the cake \filldraw[opacity=0.5,fill=gray!10!white, ...

3

\documentclass{article} \usepackage{stackengine,xcolor} \def\usestackanchor{T}% \usepackage{ifthen} \usepackage{fp} \usepackage{graphicx} \newcounter{index} \def\dtheta{45}% degrees per dot \def\dR{.44}% radius of circle in ex's \def\dotsize{.55}% size of dots relative to period \def\charwidth{3}% overall characterwidth in circle radii \newlength\dRlen \...

2

Just for comparison, here is a version in Metapost wrapped up in luamplib; compile with lualatex. \documentclass[border=5mm]{standalone} \usepackage{luamplib} \begin{document} \mplibtextextlabel{enable} \begin{mplibcode} beginfig(1); path O; O = fullcircle scaled 7 cm; % keep center at origin numeric alpha; alpha = 82; z0 = origin; z1 = ...

Only top voted, non community-wiki answers of a minimum length are eligible