add: unlink ( g_strdup_printf ("%s.dvi", tempname) );
context: gint latex_finish (){  gchar * command;  fprintf (out, "\n"	   "\\end{longtable}\n"	   "\\end{document}\n");  fclose (out);  if ( etat.print_config.printer || etat.print_config.filetype == POSTSCRIPT_FILE )    {      command = g_strdup_printf ( "latex -interaction=nonstopmode %s.tex", tempname );      if ( system ( command ) > 0 )	dialogue ( _("LaTeX run was unable to complete, see console output for details.") );      else 	{	  command = g_strdup_printf ( "dvips %s %s.dvi -o %s", 				      ( etat.print_config.orientation == LANDSCAPE ? "-t landscape" : ""),				      tempname,				      (etat.print_config.printer ? 				       (g_strconcat ( tempname, ".ps", NULL )) : 				       etat.print_config.printer_filename) );	  unlink ( g_strdup_printf ("%s.tex", tempname) );	  unlink ( g_strdup_printf ("%s.aux", tempname) );	  unlink ( g_strdup_printf ("%s.dvi", tempname) );	  unlink ( g_strdup_printf ("%s.log", tempname) );	  if ( !system ( command ) )	    {	      if ( etat.print_config.printer )		{		  command = g_strdup_printf ( "%s %s.ps", etat.print_config.printer_name, 					      tempname );		  if ( system ( command ) )		    {		      dialogue_error ( _("Cannot send job to printer") );		    }		}	    }	  else	    {	      printf (">%s<\n", command);	      dialogue_error ( _("dvips was unable to complete, see console output for details.") );	    }	}      if ( etat.print_config.printer )	{	  unlink ( g_strdup_printf ("%s.ps", tempname) );	}      g_free ( tempname );    }      return 1;}