"; //$new_name = md5(time() . $file_name); unlink($upload_dir.$file_name); unlink($upload_dir.$without_extension.".pdf"); unlink($upload_dir.$without_extension.".pdf_tex"); if (move_uploaded_file($file_tmp, $upload_dir.$file_name)) { echo "Upload successful.
"; //$current_dir = getcwd(); //echo "Current directory is ".$current_dir."
"; $output = shell_exec("./svg-to-latex.sh ".$upload_dir.$file_name." ".$dir_name); echo "

"; echo "Conversion results :
"; ?> " target="_blank">
" target="_blank">

"; echo "
$output
"; } else { echo "Error: File could not be moved to target directory.
"; } } else { print_r($errors); } } ?> This little tool allows to convert vector graphics to latex.
The actual workhorse is inkscape.

vector2latex, Copyright (C) 2020 Maximilian Stiefel
vector2latex comes with ABSOLUTELY NO WARRANTY; for details click here. This is free software, and you are welcome to redistribute it under certain conditions; for details click here.

Please upload the .svg file you wish to convert.
Directory where you store images e.g. fig: