I use Geogebra to draw the figures in my book, exporting it to Tikz code to compile.

However I found that the information of labeling in Geogebra was lost after exporting or compiling, and it depends on the operating systems that I used (Arch Linux, Crunchbang or Window 7). Each OS have its own way of loosing, and I have to label again each time I change the OS.

Here is the original Geogebra figure.

enter image description here

Here is the result after compiling code: enter image description here

And here is my MWE:

\usepackage[papersize={160mm,240mm},inner=20mm, outer=15mm, vmargin=15mm]{geometry}
\DeclareGraphicsExtensions{.pdf,.png,.jpg, .tif}
\usepackage{amssymb, amsmath}
\makeatletter \g@addto@macro\@floatboxreset\centering \makeatother
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\draw (-0.98,5.18)-- (-2,1);
\draw (-2,1)-- (3,1);
\draw (3,1)-- (-0.98,5.18);
\draw (-0.98,5.18)-- (-0.28,-0.64);
\draw (-0.28,-0.64)-- (3,1);
\draw (-0.28,-0.64)-- (-2,1);
\draw (-5.04,3.2)-- (6.6,0.76);
\draw (3,1)-- (5.455081967213114,1);
\draw (-4.100846583584014,3.003132788998711)-- (-2,1);
\draw (3.725230024213075,1.362615012106538)-- (3,1);
\draw(1.013560827918247,1.779415874429849) circle (2.743514678103197cm);
\draw(-0.787343875388026,2.653088709264506) circle (3.331941034138976cm);
\draw (2.515425264611452,5.122219341216774)-- (-0.84627055466588,-1.807255366746791);
\draw (1.520000000000002,-1.380000000000003) node[anchor=north west] {h.74};
\draw (0.280000000000001,2.459999999999999) node[anchor=north west] {$\Delta$};
\draw (1.180000000000002,3.879999999999999) node[anchor=north west] {$\Delta_3$};
\fill [color=black] (-0.98,5.18) circle (1.5pt);
\draw[color=black] (-0.979999999999999,5.54) node {$A$};
\fill [color=black] (-2,1) circle (1.5pt);
\draw[color=black] (-2.06,0.779999999999998) node {$B$};
\fill [color=black] (3,1) circle (1.5pt);
\draw[color=black] (3.040000000000002,0.779999999999998) node {$C$};
\fill [color=black] (-0.28,-0.64) circle (1.5pt);
\draw[color=black] (-0.199999999999999,-0.820000000000003) node {$O$};
\fill [color=black] (-1.637216330361333,2.486701704989832) circle (1.5pt);
\draw[color=black] (-1.799999999999999,2.839999999999999) node {$R$};
\fill [color=black] (2.387792933442892,1.642971240755957) circle (1.5pt);
\draw[color=black] (2.680000000000002,1.919999999999999) node {$Q$};
\fill [color=black] (5.455081967213114,1) circle (1.5pt);
\draw[color=black] (5.500000000000003,1.339999999999998) node {$P$};
\fill [color=black] (-0.630686889734209,2.275710997504422) circle (1.5pt);
 \draw[color=black] (-0.439999999999999,2.599999999999999) node {$X$};
 \fill [color=black] (3.725230024213075,1.362615012106538) circle (1.5pt);
 \draw[color=black] (4.000000000000003,1.659999999999998) node {$Z$};
 \fill [color=black] (-4.100846583584014,3.003132788998711) circle (1.5pt);
  \draw[color=black] (-4.32,2.919999999999999) node {$Y$};
  \fill [color=black] (2.113120626857999,4.292947461166578) circle (1.5pt);
  \fill [color=black] (0.971560019650176,1.939844806877455) circle (1.5pt);
  \draw[color=black] (1.020000000000002,1.699999999999998) node {$I$};

So what should I do to preserve the original labeling (and other information)?

  • 1
    I think the only solution is to manually try to move the labels as desired. But you might one to think about making the figure directly in tikz. I will probaly save you some time in the long run. – Rud Faden Jun 24 '15 at 12:19
  • 1
    Please ask in the GeoGebra forum forum.geogebra.org – murkle Jun 24 '15 at 20:02
  • 1
    So GeoGebra generates the wrong code? That isn't really a LaTeX problem is it, but a GeoGebra problem? As such I would say it is off topic at this site, I'm afraid. The GeoGebra forum is likely a better place to ask. – Torbjørn T. Jun 24 '15 at 21:08
  • Thank for your advices. I just want to know if there exists Tex solution for this, but it seems that there is no answer. I will check it on Geogebra forum. – Knumber10 Jun 26 '15 at 1:53
  • In my case GeoGeobra 5 does not even export labels (old OS X El Capitan 10.11.6) – Antonio Sesto Oct 7 '17 at 7:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.