Graphics, Figures & TablesPosition of inscribed Angle Notation

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
vejn
Posts: 8
Joined: Wed Jan 30, 2013 12:59 pm

Position of inscribed Angle Notation

Post by vejn »

Hi all,

my labels of angles on these circles are not very visible. Could someone tell me how to label them properly so that angles \alpha, \beta are nicely put in picture.

Thx

Code: Select all

\documentclass[a4paper,12pt,times]{amsart}
\usepackage[T1]{fontenc}
\usepackage[cp1250]{inputenc}
\usepackage[croatian]{babel}
\usepackage{graphicx}
\usepackage{amssymb,mathtools,amsmath,amsfonts,amsthm}
\usepackage[sc]{mathpazo}

\linespread{1.6}
\usepackage{microtype}
\usepackage{tikz}
\fontseries{b}
\fontsize{19}{18}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead{}
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\headheight}{13.6pt}
\usepackage{tikz,tkz-euclide}
\usetikzlibrary{calc}
\usetkzobj{all} 
\pgfmathsetseed{\pdfuniformdeviate 10000000}
%%%<
\usepackage{verbatim}

\setlength\parindent{0pt}
\newcommand{\ds}{\displaystyle}
\newcommand{\mA}{{\mathbb A}}
\newcommand{\mB}{{\mathbb B}}
\newcommand{\mD}{{\mathbb D}}
\newcommand{\mN}{{\mathbb N}}
\newcommand{\mQ}{{\mathbb Q}}
\newcommand{\mP}{{\mathbb P}}
\newcommand{\mR}{{\mathbb R}}
\newcommand{\mS}{{\mathbb S}}
\newcommand{\mZ}{{\mathbb Z}}

\newcommand{\cA}{{\mathcal A}}
\newcommand{\cB}{{\mathcal B}}
\newcommand{\cC}{{\mathcal C}}
\newcommand{\cE}{{\mathcal E}}
\newcommand{\cG}{{\mathcal G}}
\newcommand{\cI}{{\mathcal I}}
\newcommand{\cO}{{\mathcal O}}
\newcommand{\cP}{{\mathcal P}}
\newcommand{\cT}{{\mathcal T}}
\newcommand{\cU}{{\mathcal U}}

\title{MAT\\ CIRCLE\\
2013.}

\begin{document}

\parskip=1pt
\medskip
\maketitle
{\bf 1.} 

\begin{tikzpicture}
\coordinate (S) at (3,3);
\coordinate (C) at ($(S) +(90:2)$);
\coordinate  (A) at ($(S) +(230:2)$);
\coordinate (B) at ($(S) +(310:2)$);

\draw[black]
      let \p1 =  ($(A)-(S)$),
          \n0 = {veclen(\x1,\y1)}
      in (S) circle(\n0);

\draw (S) -- (A) node[below] {};
\draw (S) -- (B) node[below] {};
\draw (A) -- (C) node[below] {};
\draw (B) -- (C) node[below] {};

\begin{scope}
\path[clip] (A) -- (C) -- (B);
\fill[purple, opacity=0.1, draw=black] (C) circle (5mm);
\node[below] at ($(C)+(50:0mm)$) {$\alpha$};
\end{scope}

\begin{scope}
\path[clip] (A) -- (S) -- (B);
\fill[purple, opacity=0.1, draw=black] (S) circle (5mm);
\node[below] at ($(S)+(350:0mm)$) {$60^{o}$};
\end{scope}

\foreach \dot in {A,B,C,S} {
  \fill (\dot) circle(2pt);
  \node[above] at (\dot) {\dot};
}

\end{tikzpicture}
\begin{tikzpicture}
\coordinate (S) at (3,3);
\coordinate (A) at ($(S) +(80:2)$);
\coordinate (B) at ($(S) +(190:2)$);
\coordinate (C) at ($(S) +(3:2)$);

\draw[black]
      let \p1 =  ($(B)-(S)$),
          \n0 = {veclen(\x1,\y1)}
      in (S) circle(\n0);

\draw (S) -- (A) node[below] {};
\draw (S) -- (B) node[below] {};
\draw (A) -- (C) node[below] {};
\draw (B) -- (C) node[below] {};

\begin{scope}
\path[clip] (A) -- (C) -- (B);
\fill[purple, opacity=0.1, draw=black] (C) circle (5mm);
\node[left] at ($(C)+(140:5mm)$) {$30^{o}$};
\end{scope}

\begin{scope}
\path[clip] (A) -- (S) -- (B);
\fill[purple, opacity=0.1, draw=black] (S) circle (5mm);
\node[above,left] at ($(S)+(110:5mm)$) {$\beta$};
\end{scope}

\foreach \dot in {A,B,C,S} {
  \fill (\dot) circle(2pt);
  \node[above] at (\dot) {\dot};
}
\end{tikzpicture}
\begin{tikzpicture}
\coordinate (S) at (3,3);
\coordinate (A) at ($(S) +(80:2)$);
\coordinate (B) at ($(S) +(190:2)$);

\coordinate (C) at ($(S) +(3:2)$);
\coordinate (D) at ($(S) +(290:2)$);

\draw[black]
      let \p1 =  ($(B)-(S)$),
          \n0 = {veclen(\x1,\y1)}
      in (S) circle(\n0);

\draw (A) -- (C) node[below] {};
\draw (B) -- (C) node[below] {};
\draw (B) -- (D) node[below] {};
\draw (A) -- (D) node[below] {};

\begin{scope}
\path[clip] (A) -- (C) -- (B);
\fill[purple, opacity=0.1, draw=black] (C) circle (5mm);
\node[left] at ($(C)+(140:5mm)$) {$32^{o}$};
\end{scope}

\begin{scope}
\path[clip] (B) -- (D) -- (A);
\fill[purple, opacity=0.1, draw=black] (D) circle (5mm);
\node[above,left] at ($(D)+(110:5mm)$) {$\beta$};
\end{scope}

\foreach \dot in {A,B,C,D} {
  \fill (\dot) circle(2pt);
  \node[above] at (\dot) {\dot};
}
\end{tikzpicture}

\end{document}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Position of inscribed Angle Notation

Post by localghost »

There are two things that should be done.
  • Increase the angle radii
  • Decrease the font size of the angle labels
You are already loading tkz-euclide. Why don't you use it? The output of the below code is attached. Alternatively click on "Open in writeLaTeX" in the head of the code box.

Code: Select all

\documentclass[12pt,a4paper]{amsart}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{tkz-euclide}
\usetkzobj{all} 

\title{MAT\\ CIRCLE\\ 2013.}

\begin{document}
  \begin{tikzpicture}
    \tkzDefPoint[label=above:S](0:0){O}
    \tkzDefPoint[label=below left:A](230:2){A}
    \tkzDefPoint[label=below right:B](310:2){B}
    \tkzDefPoint[label=above:C](90:2){C}
    \tkzDrawPoints[fill=black,size=10](O,A,B,C)
    \tkzDrawCircle(O,A)
    \tkzDrawPolygon(C,A,O,B)
    \tkzMarkAngle[fill=purple,opacity=0.1,size=0.6](A,O,B)
    \tkzLabelAngle[pos=0.4,font=\tiny](A,O,B){80\textdegree}
    \tkzMarkAngle[fill=purple,opacity=0.1,size=0.6](A,C,B)
    \tkzLabelAngle[pos=0.4,font=\tiny](A,C,B){$\alpha$}
  \end{tikzpicture}
  \begin{tikzpicture}
    \tkzDefPoint[label=below right:S](0:0){O}
    \tkzDefPoint[label=above:A](80:2){A}
    \tkzDefPoint[label=left:B](190:2){B}
    \tkzDefPoint[label=right:C](3:2){C}
    \tkzDrawPoints[fill=black,size=10](O,A,B,C)
    \tkzDrawCircle(O,A)
    \tkzDrawPolygon(A,O,B,C)
    \tkzMarkAngle[fill=purple,opacity=0.1,size=0.6](A,O,B)
    \tkzLabelAngle[pos=-0.25,font=\tiny](A,O,B){$\beta$}
    \tkzMarkAngle[fill=purple,opacity=0.1,size=0.6](A,C,B)
    \tkzLabelAngle[pos=-0.35,font=\tiny](A,C,B){30\textdegree}
  \end{tikzpicture}
  \begin{tikzpicture}
    \tkzDefPoint(0:0){O}
    \tkzDefPoint[label=above:A](80:2){A}
    \tkzDefPoint[label=left:B](190:2){B}
    \tkzDefPoint[label=right:C](3:2){C}
    \tkzDefPoint[label=below:D](290:2){D}
    \tkzDrawPoints[fill=black,size=10](A,B,C,D)
    \tkzDrawCircle(O,A)
    \tkzDrawPolygon(A,D,B,C)
    \tkzMarkAngle[fill=purple,opacity=0.1,size=0.6](A,C,B)
    \tkzLabelAngle[pos=-0.4,font=\tiny](A,C,B){32\textdegree}
    \tkzMarkAngle[fill=purple,opacity=0.1,size=0.6](A,D,B)
    \tkzLabelAngle[pos=0.35,font=\tiny](A,D,B){$\beta$}
  \end{tikzpicture}
\end{document}
Needs possibly some tweaks here and there.

Next time please prepare a minimal example that only contains the relevant code which is necessary to reproduce the problem.


Best regards and welcome to the board
Thorsten
Attachments
ytmp.png
ytmp.png (13.14 KiB) Viewed 5608 times
vejn
Posts: 8
Joined: Wed Jan 30, 2013 12:59 pm

Position of inscribed Angle Notation

Post by vejn »

Thanks for the help.

I don't know anything about tkz-euclide. Line was just there. I don't even have the package. This is just what I needed. Thanks for your time.

It says:
  • needs etex and fp;
  • requires and automatically loads PGF/TikZ 2.1;
But I couldn't find these. I have MiKTeX 2.9.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Position of inscribed Angle Notation

Post by localghost »

vejn wrote:[…] I don't know anything about tkz-euclide. Line was just there. […]
Do not use code lines or packages from which you don't know what they do and what they are for.
vejn wrote:[…] But I couldn't find these. I have MiKTeX 2.9.
Update your TeX system by the MiKTeX Package Manager.
Post Reply