Graphics, Figures & TablesTikz Help

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Tikz Help

Post by coachbennett1981 »

Good morning,

I have a figure that I will post below and need the symbol for 90 degrees to be at the center between the two radii. Can anyone help?

Code: Select all


\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{calc,through,backgrounds}

\begin{document}

\begin{tikzpicture}[scale=1]
\coordinate [label=left:$B$] (B) at (0,0);
\coordinate [label=right: $C$] (C) at (2,0);
\coordinate [label=below:$A$] (A) at (0,-2);
\filldraw[black,fill=gray] (B)--(C) node[above,pos=0.5] {4 in} arc (360:270:2) -- cycle;
\filldraw [black] (A) circle (1pt);
\filldraw [black] (B) circle (1pt);
\filldraw [black] (C) circle (1pt);
\draw (B) circle (2);
\end{tikzpicture}



\end{document}
Last edited by coachbennett1981 on Thu Nov 04, 2010 1:50 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Tikz Help

Post by gmedina »

Hi,
coachbennett1981 wrote:...and need the symbol for 90 degrees to be at the center between the two radii. Can anyone help?
Which symbol? Do you mean the square that it's used to indicate ortogonality? If so, you could simply draw it:

Code: Select all

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{calc,through,backgrounds}

\begin{document}

\begin{tikzpicture}[scale=1]
\coordinate [label=left:$B$] (B) at (0,0);
\coordinate [label=right: $C$] (C) at (2,0);
\coordinate [label=below:$A$] (A) at (0,-2);
\filldraw[black,fill=gray] (B)--(C) node[above,pos=0.5] {4 in} arc (360:270:2) -- cycle;
\filldraw [black] (A) circle (1pt);
\filldraw [black] (B) circle (1pt);
\filldraw [black] (C) circle (1pt);
\draw (B) circle (2);
\draw (B) rectangle ($(B)+(0.3,-0.3)$);
\end{tikzpicture}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply