# Tag Info

11

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)!...

10

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 use polar coordinates such as (55:100cm). In the code below, I compute the precise number of oblique lines to draw in function of the chosen angle \myAngle and the distance \myDist between two consecutive oblique lines. My code also computes the largest length needed for these lines. \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{...

8

This does not answer you specfic question, but can be adapted for you use with many other options built in. I have tried to set the defaults to your requirements (left in the vertical lines, but you can disable that by indlugin draw=none to the end of Vertical Line Style and Vertical Line Style Alternate. Notes: There are three differnt types of lines: ...

7

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 ...

7

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:...

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

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

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....

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); ...

6

Another solution without calc. \documentclass[a4paper]{article} %do not include "draft" in order to render pictures \usepackage{tikz} %\usetikzlibrary{calc} \usepackage{verbatim} \begin{document} \pagestyle{empty} \begin{tikzpicture}[remember picture,overlay] \foreach \i in {1,2,3,...,30}{ \draw[black] ([yshift=-\i cm]current page.north west) -- ++(0:...

6

Here is an effort with Metapost wrapped up in luamplib. You can compile this with lualatex. \documentclass[border=5mm]{standalone} \usepackage{luamplib} \begin{document} \begin{mplibcode} beginfig(1); numeric r, u, v; r = 55; % angle of lines (to horizontal) u = 1cm; % horizontal spacing v = 5mm; % vertical spacing color base, mid, ...

6

Here's a solution, using tkz-euclide, since you have several intersections and angles to take in account. This is fairly achievable with plain TikZ but here you can see the construction step by step and it's really understandable. \documentclass[tikz,border=3.14mm]{standalone} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture} % ...

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

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't ...

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

The problem comes from the syntax of let which requires assignments and finds a foreach instead. To get around the problem, I placed the let inside the foreach loop. And to avoid drawing and coloring the triangle 3 times, I did it only once outside the loop. Your code giving negative angles, I modified the subtraction here: \n\k={atan2(\y{\k1},\x{\k1})-...

5

pic text options allows you to specify pic specific options with which, here I filled the background in white pic text options={fill=white,text=red} I took the liberty of coloring the angles with different colors, which in my opinion makes the figure easier to read: draw=red With the quotes library, simply write "$\theta$"{fill=white,text=red,inner ...

5

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); numeric alpha, beta; alpha = 28; beta = 36; pair M, N, O, P, Q, R, X; P = origin; Q = 240 dir (alpha + beta); R = (xpart Q, ypart P); N = ...

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 ...

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