I have another question similar to my last question about 2018 -> 2020 tkz-euclide compatibility changes.
I have a circle diagram that compiles and renders perfectly in Overleaf (TeX Live 2018):
Here is the code that compiles successfully:
\documentclass[addpoints]{exam}
\printanswers
\usepackage{gensymb} %for degree symbol
\usepackage{pgf,tikz}
\usetikzlibrary{angles,arrows.meta,automata,backgrounds,calc,decorations.markings,decorations.pathreplacing,intersections,patterns,positioning,quotes}
\usetikzlibrary{shapes} %For polygon nodes, see http://www.texample.net/tikz/examples/node-shapes/
\usepgflibrary{shapes.geometric}
%Needed to resolve conflict between tkz-euclide and thmtools, see https://tex.stackexchange.com/questions/456029/thmtools-and-tkz-euclide-conflict
\usepackage{tkz-euclide}
\usetkzobj{all}
%\usepackage{thmtools}
\usepackage{etoolbox}
\makeatletter
%%% patch tkz-tools-base.tex
\let\tkz@g@xa\tkz@init@xmin % don't undef @xa or thmtools will be upset
\let\tkz@g@xb\tkz@init@xmax\undef@xb
\let\tkz@g@ya\tkz@init@ymin\undef@ya
\let\tkz@g@yb\tkz@init@ymax\undef@yb
\patchcmd{\tkz@Init}
{\global\let@xa\tkz@init@xmin
\global\let@xb\tkz@init@xmax
\global\let@ya\tkz@init@ymin
\global\let@yb\tkz@init@ymax}
{\global\let\tkz@g@xa\tkz@init@xmin
\global\let\tkz@g@xb\tkz@init@xmax
\global\let\tkz@g@ya\tkz@init@ymin
\global\let\tkz@g@yb\tkz@init@ymax}
{}{}
\patchcmd{\tkz@Grid}
{(@xa,@ya)(@xb,@yb)}
{(\tkz@g@xa,\tkz@g@ya)(\tkz@g@xb,\tkz@g@yb)}
{}{}
\makeatother
\newtheorem{thm}{Theorem}
\title{MWE}
\begin{document}
\begin{questions}
\question
\begin{parts}
\part Find:
%from https://latex.org/forum/viewtopic.php?t=23290
\begin{center}
\begin{tikzpicture}
\tkzDefPointlabel=above:O{O}
\tkzDefPointlabel=below left:A{A}
\tkzDefPointlabel=below right:B{B}
\tkzDefPointlabel=above:C{C}
\tkzDrawPointsfill=black,size=10
\tkzDrawCircle(O,A)
\tkzDrawPolygon(C,A,O,B)
\tkzMarkAnglesize=0.75
\tkzLabelAnglepos=0.5,font=\small{80\degree}
\tkzMarkAnglesize=0.75
\tkzLabelAnglepos=0.5,font=\small{$\alpha$}
\end{tikzpicture}
\end{center}
\vspace*{\stretch{1}}
\part Evaluate the unknown arc and angle measures.
\begin{center}
\begin{tikzpicture}[scale=2] %from https://latex.org/forum/viewtopic.php?t=21949
\tkzDefPoint (0,0){O}
\tkzDefPoint (2,0){P}
\tkzDefPoint (1,0){C}
\tkzLabelPointleft{$O$}
\tkzLabelPointright{$P$}
\tkzLabelPointright{$C$}
\tkzDrawCircleR
\tkzTangentfrom with R=P \tkzGetPoints{T1}{T2}
\tkzDrawLines[add=0 and 0](O,T1 O,T2 O,P)
\tkzDrawLines[add=0 and 0.5](P,T1 P,T2)
\tkzLabelPointabove{$A$}
\tkzLabelPointbelow{$B$}
\tkzDrawArcR with nodes,(T1,T2)
%\draw (T1) node[above right] {$P(\alpha)=(a,\cos\alpha,a,\sin\alpha)$};
%\draw (T2) node[below right] {$Q(\alpha)=(a,\cos\beta,a,\sin\beta)$};
\draw (P) +(165:0.6) node {$25\degree$};
%\draw (P) +(195:0.6) node {$25\degree$};
\tkzLabelSegmentabove right{$6$ cm}
\end{tikzpicture}
\end{center}
\vspace*{\stretch{1}}
\end{parts}
\end{questions}
\end{document}
However if you change the TeX Live distribution from 2018 to 2020, it renders differently and Overleaf spits some errors:
I learned from this thread that \usetkzobj{all} shouldn't be used with recent tkz-euclide. Commenting this line in the 2020 distribution fixes some but not all issues.
Some (undesired changes):
- In 1st diagram, geometric points are very large
- In 1st diagram, angles have a "tick mark" in them
- In 2nd diagram, tangent lines to circle disappeared
Any ideas how to fix these issues? Thank you!



