Graphics, Figures & Tablesarc command

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

arc command

Post by coachbennett1981 »

I am tring to put an arc above angle 8 and also the angle that forms its linear pair. I have been messing around with some code but can't figure it out.. Any help would be beneficial.

Nick'

Code: Select all

\documentclass[12pt]{exam}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{calc,through,backgrounds}
\begin{document}


\begin{tikzpicture}[scale=1.5]
\draw(0,0) -- (right:.75cm); \draw(30:0.5cm) node {\scriptsize{2}};
\begin{scope}[thick] \draw (60:-1cm) node[fill=white] {} -- (60:3cm) node[fill=white] {}; \draw(-2,0) node[left] {} -- (3,0) node[right]{}; \draw[shift={(60:2cm)}] (-3,0) node[left] {} -- (2,0) node[right]{};\draw(-260:-0.25cm) node{\scriptsize{$\angle{A}$}};\draw(-120:-2.2cm) node[right]{\scriptsize{8}};
\draw[->] (0,0) -- (0:.75cm) arc (0:60:.75cm);
\draw[->](0,0)--(0:.45cm) arc(0:-120:.45cm);
 \end{scope}
\end{tikzpicture}

\end{document}
Last edited by coachbennett1981 on Tue Jul 13, 2010 12:14 am, 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.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

arc command

Post by localghost »

You can shift all graphical elements that form the arcs like you already did with the upper horizontal line. This way you can create a new origin for these elements and draw them very easy at the appropriate place.

I'm not sure what you mean with a linear pair. But if I understood you right, the code below should do what you want.

Code: Select all

\documentclass{article}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[%
  >=stealth,
  scale=1.5,
  thick
]
%  \draw[help lines](-2,-1) grid (3,3);
  \draw (30:0.45cm) node {\scriptsize 2};
  \draw (60:-1cm) node[fill=white] {} -- (60:3cm) node[fill=white] {};
  \draw (-2,0) node[left] {} -- (3,0) node[right] {};
  \draw (0,0) +(-60:0.25) node {\scriptsize $\angle\phi$};
  \draw[->] (0,0) +(0.75,0) arc (0:60:0.75cm);
  \draw[->] (0,0) +(0.45,0) arc (0:-120:0.45cm);
  \begin{scope}[shift={(60:2cm)}]
    \draw (-3,0) node[left] {} -- (2,0) node[right]{};
    \draw[->] (0,0) +(0.75,0) arc (0:60:0.75);
    \draw[->] (0,0) +(0.45,0) arc (0:-120:0.45);
    \draw (0,0) +(30:0.45) node {\scriptsize 8};
    \draw (0,0) +(-60:0.25) node {\scriptsize 8'};
  \end{scope}
\end{tikzpicture}
\end{document} 
Within the scope environment you find all elements that are shifted along the traversal line.


Best regards
Thorsten
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: arc command

Post by coachbennett1981 »

Never would have thought of that.. Thank you for the tip.. That is exactly what I wanted..

Thank you
Post Reply