Forum archive 2000-2006

Jeff Denny - BIG font on webwork 2.1 installation (images mode)

by Arnold Pizer -
Number of replies: 0
 BIG font on webwork 2.1 installation (images mode) topic started 7/27/2005; 9:46:36 AMlast post 7/29/2005; 10:39:07 PM
 Jeff Denny - BIG font on webwork 2.1 installation (images mode)  7/27/2005; 9:46:36 AM (reads: 1058, responses: 5) We've recently installed version 2.1 and are getting a HUGE font for the images mode. I had the sys admin here try the advice from a posting in December, but that did not work. Below is the code and a note from my sys admin. Do you have any suggestions? -------- # Arguments to pass to dvipng. This is dependant on the version of dvipng.## For dvipng < 1.0# $WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180";# For dvipng >= 1.0$WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120 -q -depth";(I uncommented the line above since the system has dvipng 1.6, and cleared htdocs/tmp/equations##$WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180"; <| Post or View Comments |>  Arnold K. Pizer - Re: BIG font on webwork 2.1 installation (images mode) 7/27/2005; 3:48:26 PM (reads: 1242, responses: 0) Hi Jeff, You are using an older version of dvipng and you have to select the correct arguments to pass to it. This is easy. Edit the file webwork2/lib/WeBWorK/Constants.pm Look at the section: # Arguments to pass to dvipng. This is dependant on the version of dvipng.# # For dvipng < 1.0#$WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180";# For dvipng >= 1.0# $WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120 -q -depth"; Arnie <| Post or View Comments |>  Michael Gage - Re: BIG font on webwork 2.1 installation (images mode) 7/27/2005; 6:37:04 PM (reads: 1228, responses: 0) Hi Jeff, Remember also to restart the server after you have made the change!!!! Let us know if that doesn't work. Take care, Mike <| Post or View Comments |>  Jeff Denny - Re: BIG font on webwork 2.1 installation (images mode) 7/28/2005; 9:58:29 AM (reads: 1248, responses: 0) Thank you for your help. We're running dvipng 1.6, which my sys admin says is the latest version. He's made the changes in Constants.pm and restarted the server, but we are still seeing the HUGE fonts. Any ideas? Below is a copy of the relevant portion of our current Constants.pm file. --------------- # Arguments to pass to dvipng. This is dependant on the version of dvipng.## For dvipng < 1.0#$WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180";## For dvipng >= 1.0$WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120 -q -depth";##$WeBWorK::PG::ImageGenerator::DvipngArgs = "-x4000.5 -bgTransparent -Q6 -mode toshiba -D180"; <| Post or View Comments |>

 Michael Gage - Re: BIG font on webwork 2.1 installation (images mode)  7/28/2005; 10:20:31 AM (reads: 1233, responses: 0) Remember that the images are cached, both by WeBWorK, and sometimes for short periods of time by the browser itself. If you look at a brand new problem, I suspect that the images will now be ok. For problems you have viewed before the images were already made (or mismade). The easiest solution is remove the cache of equation images and start over. The equation cache is stored at  # Location of cached equation images.$webworkDirs{equationCache} = "$webworkDirs{htdocs_temp}/equations";$webworkURLs{equationCache} = "$webworkURLs{htdocs_temp}/equations"; (The above segment is in global.conf. The location of your equation cache might be different.) This directory will have a number of subdirectories with labels such as 05/ af/ etc. Remove the entire contents of this directory and the old equations will be gone. You can also use the webwork2/bin/remove_stalte_images script to remove images that are very old. See http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader\$2929 for further comments. <| Post or View Comments |>

 Jeff Denny - Re: BIG font on webwork 2.1 installation (images mode)  7/29/2005; 10:39:07 PM (reads: 1266, responses: 0) Thank you for all of the help. We are still struggling with this problem here. We have tried making the changes in the Constants.pm file, wiping caches clean, and restarting the server, but we still get the large fonts. Do you have any other suggestions? Thank you again for your help. This discussion board has been critical to our successful operation of WebWork in the past and now! <| Post or View Comments |>