Marcar ángulos en la imagen tkz-euclide

Marcar ángulos en la imagen tkz-euclide

Estoy buscando ayuda para usar tkzMarkAngle en el siguiente código. He intentado seguir la ayuda desde aquí.¿Cómo marco un ángulo con múltiples arcos?pero no rinde.

\documentclass{book}

\usepackage{blindtext}
\usepackage{tikz}
\usepackage{tkz-euclide}


\begin{document}


        \begin{tikzpicture}     
\tkzDefPoint(0,0){A}
\tkzDefPoint(2,1){B} 
\tkzDefPoint(2.8,3){C} 
\tkzDefPoint(5,2.5){D} 
\tkzDefPoint(5,-2.5){E} 
\tkzDefPoint(4,-3){F} 
\tkzDefPoint(2,-1){G} 
\tkzDefPoint(3.1,1.5){P} 
\tkzDefPoint(3.8,-1.9){Q} 

\tkzDrawSegment[thick](B,D)
\tkzDrawSegment[thick](G,E)
\tkzDrawSegment[thick](F,C)
\tkzDrawSegment[dashed, thick](A,B)
\tkzDrawSegment[dashed, thick](G,A)

\tkzLabelPoint[left](A){$A$} 
\tkzLabelPoint[above](B){$B$}
\tkzLabelPoint[above](C){$C$} 
\tkzLabelPoint[right](D){$D$}
\tkzLabelPoint[right](E){$E$} 
\tkzLabelPoint[below](F){$F$}
\tkzLabelPoint[below](G){$G$} 
\tkzLabelPoint[above](P){$P$}
\tkzLabelPoint[below](Q){$Q$}

\tkzDrawPoints(A,B,C,D,E,F,G,P,Q)

%\tkzMarkAngle[arc=1,type=|,size=2 cm](A,P,F)
%\tkzMarkAngle[arc=11,size=2 cm](A,Q,C)

\end{tikzpicture}
        
        
\end{document}

He ocultado las dos líneas de código que hacen que el código no funcione solo para que la gente pueda ver el resultado antes de intentar marcar los ángulos.

Respuesta1

No estoy seguro de qué es exactamente lo que quiero lograr, porque hay varios errores en el uso de las opciones para \tkzMarkAngle:

  • La opción typeno existe para la \tkzMarkAnglemacro, supongo que te refieres a la opción mark.
  • La arcopción espera entre una y tres instancias de la letra l, no del número 1.
  • La sizeopción parece esperar un número entero (que representa centímetros) y no una dimensión.

Aparte de eso, te sugiero que dejes que TikZ calcula la posición de A, Py Qdado que usas un paquete que en realidad está hecho para calcular tales cosas:

\documentclass{book}

\usepackage{tikz}
\usepackage{tkz-euclide}

\begin{document}

\begin{tikzpicture}     
%\tkzDefPoint(0,0){A}
\tkzDefPoint(2,1){B} 
\tkzDefPoint(2.8,3){C} 
\tkzDefPoint(5,2.5){D} 
\tkzDefPoint(5,-2.5){E} 
\tkzDefPoint(4,-3){F} 
\tkzDefPoint(2,-1){G} 
\tkzInterLL(B,D)(G,E)
\tkzGetPoint{A}
%\tkzDefPoint(3.1,1.5){P} 
%\tkzDefPoint(3.8,-1.9){Q} 
\tkzInterLL(B,D)(C,F)
\tkzGetPoint{P}
\tkzInterLL(G,E)(C,F)
\tkzGetPoint{Q}

\tkzDrawSegment[thick](B,D)
\tkzDrawSegment[thick](G,E)
\tkzDrawSegment[thick](F,C)
\tkzDrawSegment[dashed, thick](A,B)
\tkzDrawSegment[dashed, thick](G,A)

\tkzLabelPoint[left](A){$A$} 
\tkzLabelPoint[above](B){$B$}
\tkzLabelPoint[above](C){$C$} 
\tkzLabelPoint[right](D){$D$}
\tkzLabelPoint[right](E){$E$} 
\tkzLabelPoint[below](F){$F$}
\tkzLabelPoint[below](G){$G$} 
\tkzLabelPoint[above left](P){$P$}
\tkzLabelPoint[below left](Q){$Q$}

\tkzDrawPoints(A,B,C,D,E,F,G,P,Q)

%\tkzMarkAngle[arc=1,type=|,size=2 cm](A,P,F)
\tkzMarkAngle[arc=l, size=1, mark=|, draw=red](B,P,Q)
%\tkzMarkAngle[arc=11,size=2 cm](A,Q,C)
\tkzMarkAngle[arc=ll, size=1, draw=red](P,Q,G)

\end{tikzpicture}
        
\end{document}

ingrese la descripción de la imagen aquí

información relacionada