# Issue with .svg LaTeX images on GeoGebra 5

the_math-hobbyist shared this question 2 years ago

I have several images in .svg format, and I am creating other ones.

I need vectorial format, and consistency across several images, so I am using LaTeX to create them. I am working on GNU/Linux (Mageia).

I found these ways to export the LaTeX figures to .svg format. However, the outputs are not visible on GeoGebra 5.

Method 1

Reference: https://superuser.com/quest...

(Rohan's post, section: DVI From)

(Maybe, with the other methods of this post, the texts are changed in a unwanted way.)

% example1.tex
\documentclass{standalone}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{bm}
\begin{document}
\begin{tikzpicture}
\draw [line width=0.7mm] (0,0) circle [radius=8mm] {node {\Large{$\bm{tmh}$}}};
\end{tikzpicture}
\end{document}

Then, these commands are executed on Linux console:

latex example1.tex
dvips -q -f -e 0 -E -D 10000 -x 10000 -o example1.ps example1.dvi
pstoedit -f plot-svg -dt -ssp example1.ps example1.svg

The output is not visible on GeoGebra 5. Besides, it needs centering. So, I searched other method.

Method 2

For not complex images, this tool online:

The output is not visible on GeoGebra 5.

Please, could you explain to me how to see these images on GeoGebra 5? (all my colleagues use GeoGebra 5, and me too). Or another way to get the .svg files with LaTeX and, if it's needed, other open software?

Notes:

• With both methods, the images are correctly shown in GeoGebra 6 (see attachment) and on the web (https://www.geogebra.org/m/b7s3ybyd) (anyway, the output of the method 1 needs editing to center the image.)
• I am a really newbie with Inkscape and with .svg files.
• I tested the flat .svg format of Inkscape, without success.
• I couldn't upload the image examples as .svg (it seems that .svg files are not allowed here). I changed the extension of the attached file from .svg to .txt to upload them.

3

Try creating the diagram in GeoGebra Classic 6 and export as SVG from there - I think that will then work OK in GeoGebra Classic 5

(Classic 6 has better export and import for SVG)

2

They are a simples images with texts. It works.

Thanks, Michael

2

I have found this method. It works fine with LaTeX:

Reference: https://tex.stackexchange.c...

(Martin Scharrer post)

(It needs the Linux package pdf2svg)

LaTeX code:

% new method: filename.tex
\documentclass[crop,tikz,convert=pdf2svg]{standalone}[2012/04/13]
\usepackage{tikz}
\usepackage{bm}
\begin{document}
\begin{tikzpicture}
\draw [line width=0.7mm] (0,0) circle [radius=8.0mm] {node {\Large{$\bm{tmh}$}}};
\end{tikzpicture}
\end{document}
%


Then, on Linux console:

pdflatex -shell-escape filename.tex


The output is gotten directly in .svg format. It is visible on GeoGebra 5. It needs some editing: I edited it with Inkscape and the new output is visible on GeoGebra 5 too.