In order to get full functionality for dvipng-0.7 in our WeBWorK
environment at Indiana University Bloomington/Indianapolis
(Sun ultrasparc cpu's, Solaris 9, web2c-7.4.5,
kpathsea-3.4 (kpsewhich-3.4.5), SELFAUTO... variables in
/usr/local/texmf/tex/texmf.cnf), I had to make two small
but substantive changes in the dvipng distribution file
enc.c .
With these changes, dvipng runs when installed in /usr/local/bin,
i.e., outside the texmf tree, without any special configuration,
i.e., without the --enable-selfauto-set.
The modifications are:
-------------- Change 1 --------------
struct encoding* InitEncoding(char* encoding) {
char *pos,*max,*buf,*enc_file =
/* kpse_find_file(encoding,kpse_dvips_config_format,false); */
kpse_find_file(encoding, kpse_tex_ps_header_format,false);
===========================================================
--------------- Change 2 ----------------
struct encoding* FindEncoding(char* encoding) {
struct encoding *temp=encodingp;
while(temp!=NULL && strcmp(encoding,temp->name)!=0)
temp=temp->next;
if (temp==NULL)
temp=InitEncoding(encoding);
/* COMMENT OUT THE FOLLOWING
if (temp!=NULL) {
temp->next=encodingp;
encodingp=temp;
} **/
return(temp);
}
===============================================
Sincerely,
Bill Wheeler
<| Post or View Comments |>
|