Adrian a écrit : > Package: texgd > Version: 3.28-6.1 > > texgd takes from the environment variable 'texgd_texheader' 'the name of > a TeX file to be prepended before the formula' (cited from man page). > This works well if and only if this file name ends in '.tex'. There is > no reason for this restriction. It prevents effectively using mktemp to > create this header file (see script below).
Texgd is a piece of the Wims webserver (see http://wims.unice.fr/wims) The code which enforces the .tex suffix is here: if(*headerfile) { if(strstr(headerfile,".tex")==NULL) snprintf(nbuf,sizeof(nbuf),"%s.%s",headerfile,texname); else snprintf(nbuf,sizeof(nbuf),"%s",headerfile); f=fopen(nbuf,"r"); if(f!=NULL) { So the suffix is postponed prior to opening the file if it is not part of the filename. This behaviour was wanted by Gang XIAO, the author of Wims, because of constraints for Wims. I'm afraid that if we change this behaviour, we'll get something broken elsewhere. It is free software, indeed. So if you think that writing a script which would append .tex at the end of a temporary file would be too hard, you may fork the source code of Texgd into something incompatible with Wims but closer to your needs (and so you would get rid of these numerous environment variables needed by texgd). Best regards, Georges.
signature.asc
Description: Digital signature