9

You can add \tracingmacros=1 to your code before the \draw command. Then you can look in the log-file and it is rather easy to see a few lines before the error (around line 84000) that pgf is just trying to calculate the reciprocal of a rather small number (0.00006). \pgfmath@reciprocaltemp ->0.00006 You could -- if you have lot time -- go ...


8

You can define your own \dotMarkRightAngle as below. Four parameters need to be entered; size of the angle (square side) and three coordinates in parentheses (#2,#3,#4) taken clock-wise. \documentclass[tikz,border=2pt]{standalone} \usetikzlibrary{calc} \begin{document} \def\dotMarkRightAngle[size=#1](#2,#3,#4){% \draw ($(#3)!#1!(#2)$) -- ($($(#3)!...


7

your angle radius is to small. enlarge it to 4mm. also observe small differences between yours and mine code: \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usetikzlibrary{angles,decorations.markings} \tikzset{ doubledash/.style={decoration = { markings, % mark= at position 0.5 with{ \draw[thin] (-0.6pt,-2pt) -- (-0.6pt,2pt); ...


6

The easiest way to learn about arc construction is to use the verbose mode at first. So the command \draw [red, thick] (1.0,0) arc [start angle=0, end angle=30, radius=1cm] node [midway, right] {$\phi$}; says to start the arc at (1.0,0) with the provided parameters. A more concise way of saying that is to use \draw [red, thick] (1.0,0) arc (0:30:...


6

angle expects names, not coordinates. The name argument is directly parsed to \pgfpointanchor, from tikzlibraryangles.code.tex: \def\tikz@lib@angle@parse#1--#2--#3\pgf@stop{% % ... \pgf@process{\pgfpointanchor{#2}{center}}% \pgf@xa=\pgf@x% \pgf@ya=\pgf@y% \pgf@process{\pgfpointanchor{#1}{center}}% \pgf@xb=\pgf@x% \pgf@yb=\pgf@y% \pgf@process{...


6

Use "$\alpha$"{fill=white} instead of "$\alpha$" in \pic \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{calc,patterns,angles,quotes,arrows} \begin{document} \begin{figure} \begin{center} \begin{tikzpicture} %Define coordinates \coordinate (origin) at (0,0); ...


5

The initial point of the angle needs to be located along the line, so using polar coordinates (20:0.7) is the easiest way to specify that: To add a caption you can use the caption package. Alternatively you can add a \node to place text below the axis. Notes: I added rotation to the blue node as that seemed the easiest way to display the text. If you don'...


5

Chemfig documentation has an example, in French, about making a customized lewis macro accepting an arbitrary angle in degrees. I am reproducing it irresponsibly translated to English. (I am a native Brazilian Portuguese speaker, so I don't master neither English nor French). This example appeared on page 45 (46th page as there is a cover): \example*{Pairs ...


5

You need to use named coordinates I think: \documentclass[12pt, a4paper]{standalone} \usepackage{tikz} \usetikzlibrary{angles} \begin{document} \begin{tikzpicture} \coordinate (O) at (0,0); \coordinate (A) at (0,1); \coordinate (B) at (1,0); \pic [draw, angle eccentricity=1.5] {angle=A--O--B}; \end{tikzpicture} \end{document}


5

Maybe that? \documentclass{scrbook} %\input{configuration} \usepackage[utf8]{inputenc} \usepackage{amsfonts, amsthm, amsmath, braket} \usepackage{tikz} \usetikzlibrary{angles, quotes,calc,patterns} \begin{document} \begin{tikzpicture} \draw (0,0) node[anchor=north east] {$ O $}; \draw[thick, ->] (-0.35,0) -- (5.5,0) node[anchor=...


5

with use of the angles and quotes library and made a little bit different looks of diagram: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{angles, quotes} \usepackage{amssymb} \begin{document} \begin{tikzpicture}[ every edge quotes/.append style = {anchor=south, sloped} ] % axis \draw[thick, ->] (-0.35,0) -- (5....


4

It seems to me that you must use coordinate names. My guess is that the internals use \pgfpointanchor or some such, which requires a named node. It's probably good form to name your coordinates anyway! To make the angle label (say) green, set the text property of the pic (or the entire path): \draw pic["$\alpha$", draw=red, text=green, ->, angle ...


4

Try \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usetikzlibrary{angles,calc,intersections,quotes,positioning,shapes} \begin{document} \begin{center} \begin{tikzpicture}[scale=1.5, my angle/.style ...


4

"\ang{38}"scale=0.5. In general with the quotes syntax, "label text" {<options for label node>}, <other stuff>. If you only have one option, the braces aren't required. \documentclass[a4paper,12pt]{article} \usepackage{siunitx} \usepackage{tikz} \usetikzlibrary{angles, quotes} \begin{document} \begin{tikzpicture} % Declare Points \...


4

Something like this: Here is the code: \documentclass[tikz, border=20mm]{standalone} \usetikzlibrary{angles,calc} \begin{document} \begin{tikzpicture} \newcounter{cntShader} \setcounter{cntShader}{60} \coordinate (o) at (0,0); \draw[->] (o) -- (+80:4) coordinate (b); \draw[->] (o) -- (-80:4) coordinate (c); \draw (o) -- (+170:3); \draw (...


3

Perhaps you want something like \documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes,angles} \tikzset{ ar/.style={angle radius=#1}, ar/.default=0.65cm, ae/.style={angle eccentricity=#1}, ae/.default=0.75, } \newcommand{\angs}[3][]{% \draw pic[ar,ae,#1,draw,"{\scriptsize $#3$}"] {angle = #2} } \begin{document} \begin{tikzpicture} \...


3

It has nothing to do with the arrows. Which of the two possible angles is marked is determined by the order in which you specify the coordinates in \tkzMarkAngle. Hence, you just need to use \tkzMarkAngle[fill=orange,size=0.5,opacity=.4](D,E,C) instead of \tkzMarkAngle[fill=orange,size=0.5,opacity=.4](C,E,D). \documentclass{article} %\documentclass[tikz]{...


3

As mentioned in comments, you can't. The manual says The three points <A>, <B>, and <C> must be the names of nodes or coordinates; you cannot use direct coordinates like (1,1) here. Hence, calculate and name the coordinates first. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc, angles} \begin{document} \begin{...


3

pure tikz: \documentclass[tikz, border=3mm, ]{standalone} \usetikzlibrary{calc, positioning} \begin{document} \begin{tikzpicture}[ dotbox/.style = {draw, minimum size=3mm, inner sep=0pt, outer sep=0pt, anchor=#1, label=center:$\cdot$}, node distance = 0pt ...


3

Partial answer: by removing the inter-word spacing in the angle's nodal definition and letting the tex engine know that it has to draw whatever we desire: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{angles} \begin{document} % a bit of a help from: https://tex.stackexchange.com/questions/267201/tikz-angle-between-two-...


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