8

With TikZ using intersections of circles and lines (68 intersections!): \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections,calc} \begin{document} \newcommand{\myInters}[4]{ \path[name intersections={of={#1 and #2},by={#3,#4}}];} \newcommand{\myArc}[2]{% (i-#1) let \p1=(i-#1), \p2=(i-#2), \n{rad}={veclen(\x1,\y1)}, \n{...


7

I propose a variant using pst-eucl (the colours are only for demo purposes): \documentclass[12pt, border=6pt]{standalone} \usepackage{pst-eucl, multido} \begin{document} \begin{pspicture}(-3,-3)(3,3) \psset{PointName=none, PointSymbol=none} \pstGeonode[PointSymbol=none, PointName=none](0,0){O}(0.3,3){A}(0.3,-3){B}(3, 0.15){C}(-3,0.15){D}(3, -0.15){E}(-...


6

Much much easier to do this as nodes for the circles not nodes just for the greek letters \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \node[minimum width=1cm,draw,circle] (a) at (0,0) {$\alpha$}; \node[minimum width=1cm,draw,circle] (b) at ($(a)+(2,0)$) {$\beta$}; \node[minimum ...


5

Run with xelatex or latex->dvips->ps2pdf \documentclass{standalone} \usepackage{pstricks} \def\quartA{% \pscustom[linewidth=3mm,linejoin=1]{% \psarc(0,0){2}{184}{270} \psline(4;270) \psarc(0,0){4}{270}{356} \rlineto(-0.5,0) \psarcn(0,0){3.5}{355}{278} \rlineto(0,0.5) \psarc(0,0){3}{279.5}{354} \rlineto(-0.5,0) \psarcn(0,0){2.5}{352....


3

Similarly to @daleif answer (+1), but with relative positioning of nodes and defined common style for circles: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning} \begin{document} \begin{tikzpicture}[ node distance = 0mm and 9mm, C/.style = {circle, draw, minimum size =9mm, inner sep=0pt}, arr/....


2

I'm not familiar with the cryptocode package, so for me is simpler to draw this algorithm with tikz package: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, positioning, quotes} \usepackage{mathtools, amssymb} \DeclareMathOperator{\gen}{gen} \DeclareMathOperator{\PRF}{PRF} \begin{document} \...


2

Just draw this diamond first. \begin{tikzpicture}[scale=.9,every node/.style={minimum size=1cm},on grid] \begin{scope}[ yshift=-170,every node/.append style={ yslant=0.5,xslant=-1},yslant=0.5,xslant=-1 ] \fill[gray] (0,0) rectangle (5,5); \draw[black,very thick] (0,0) rectangle (5,5); \end{scope} \documentclass[12pt]{...


2

As already mentioned by @DG, remove the axis environment \documentclass[10pt]{article} \usepackage{tikz} \usepackage{mathrsfs} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \draw [->,line width=2.pt] (5,3.6)node[below]{$O$} --node[above left]{$\overrightarrow{OP}$...


2

There's the circledsteps package (which relies on tikz) to do that: \documentclass[12pt, a4paper]{article} \usepackage{fancyhdr} \usepackage{tikz} \usepackage{circledsteps} \usepackage{lipsum} \pagestyle{fancy} \fancyfoot[C]{} \fancyfoot[R]{\Circled[inner xsep=6pt, inner ysep=6pt]{\thepage}} \begin{document} \lipsum[1-10] \end{document}


2

Well, you should always post compilable fragment, because your assertion that the first snippet doesn't work seems false. See: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta,positioning,calc} \begin{document} \def\m{3}\def\v{4} \begin{tikzpicture} \path (0,0) node[anchor=south,text=red] { \pgfmathparse{8*\m+\v} \...


1

Use font=\tiny in your node option. Or if you want every node to display its content in tiny font, then use every node/.style={font=\tiny} in your tikzpicture option.


1

A solution using edge: \draw[arrow] (state) edge[out=-90, in=0, looseness=1.1] node[auto] {then} (chain); Full example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,positioning} \begin{document} \begin{center} \begin{tikzpicture}[state/.style={rectangle,draw=black, rounded corners},arrow/.style={->,semithick}] \node[state] (...


1

\draw [arrow] (state) .. controls (8,-2) and (6,-2) .. (chain) node [midway, below] {then} ; works: I have found the necessary ingredients at https://tex.stackexchange.com/a/170716/27523


1

Yet another possibility: The three new commands \nxAnd, \nxOr, \nxNot allow us to define TikZ styles for visibility setting that are based on arbitrary boolean expressions as in \defVisibilityStyle{HCocmd}{\nxNot{\nxOr{\hidencircle@trigger}}} Full example: \documentclass{article} \usepackage[tikz]{ocgx2} \usepackage{keyval} \makeatletter \define@key{...


1

You are trying very hard to hide your values behind different layers of (in part not expandable) commands. If one expand everything it works: \documentclass{article} \usepackage[tikz]{ocgx2} \usepackage{keyval} \makeatletter \define@key{hidencircle}{trigger}{\edef\hidencircle@trigger{#1}}%<-- edef \newcommand{\hidencircle}[2][]{% \setkeys{hidencircle}{#...


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