I'm trying to export geogebra drawing to latex.
This produces following latex code:
\documentclass[10pt]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\begin{axis}[
x=1.0cm,y=1.0cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-1.0,
xmax=6.0,
ymin=-2.0,
ymax=6.0,
xtick={-1.0,0.0,...,6.0},
ytick={-2.0,-1.0,...,6.0},]
\clip(-1.,-2.) rectangle (6.,6.);
\draw [shift={(0.,0.)},line width=0.4pt] plot[domain=0.:1.5707963267948966,variable=\t]({1.*5.*cos(\t r)+0.*5.*sin(\t r)},{0.*5.*cos(\t r)+1.*5.*sin(\t r)});
\draw [->,line width=0.4pt] (0.,0.) -- (4.419539299244726,2.3383054510545525);
\draw [line width=0.4pt] (4.419539299244726,-2.) -- (4.419539299244726,6.);
\draw [line width=0.4pt,domain=-1.:6.] plot(\x,{(--2.3383054510545525-0.*\x)/1.});
\draw [->,line width=0.4pt] (0.,0.) -- (4.419539299244726,0.);
\draw [->,line width=0.4pt] (0.,0.) -- (0.,2.3383054510545525);
\begin{scriptsize}
\draw [fill=black] (0.,0.) circle (2.0pt);
\draw[color=black] (0.11187609988355163,0.2529556851151442) node {$B$};
\draw [fill=black] (5.,0.) circle (2.5pt);
\draw[color=black] (5.111535372228054,0.2832566480422628) node {$C$};
\draw [fill=black] (0.,5.) circle (2.5pt);
\draw[color=black] (0.11187609988355163,5.282915531016838) node {$D$};
\draw[color=black] (3.6570890384551076,3.7678673846609056) node {$c$};
\draw [fill=black] (4.419539299244726,2.3383054510545525) circle (2.5pt);
\draw[color=black] (4.520666549132794,2.6164307934303976) node {$A$};
\draw[color=black] (2.2177931873256296,1.3437903504914148) node {$R$};
\draw[color=black] (4.21765689626343,6.267696826148193) node {$f$};
\draw[color=black] (-3.039424289957831,2.2376687568414146) node {$g$};
\draw [fill=black] (4.419539299244726,0.) circle (2.0pt);
\draw[color=black] (4.520666549132794,0.2529556851151442) node {$E$};
\draw[color=black] (2.248094152612566,0.19235375926090692) node {$u$};
\draw [fill=black] (0.,2.3383054510545525) circle (2.0pt);
\draw[color=black] (0.11187609988355163,2.586129830503279) node {$F$};
\draw[color=black] (-0.009327761264193851,1.2983389061007369) node {$v$};
\end{scriptsize}
\end{axis}
\end{tikzpicture}
\end{document}
Which produces following:
Status:
- It seems like the
arc chas shifted horizontally 1, vertically 2 which are thex-Min&y-Minvalues (see red arrows in the first image). - And when
x-Min, y-Minvalues both equal to0, thenarc cgets into correct position. arc cis defined in geogebra asCircularArc(B, C, D)- I have no experience in either
tikzorgeogebra. - I just want to fix the core of this problem, So I can draw more simple graphics in
geogebraand then import it to mylatex. - Why does this happening.
Update: I've asked in geogebra's sub-reddit. Apparently, geogebra's LaTeX output has no maintainer currently.



\def\aa{30} % angle in degreesand then\pgfmathsetmacro\xa{\r*cos(\aa)}and\pgfmathsetmacro\ya{\r*sin(\aa)}. Notice thatcosandsinperform the computation but don't typeset anything, oppositely to usual\cosand\sin. – Jhor Mar 22 '23 at 08:24