Changeset 130
- Timestamp:
- 10/07/05 15:05:20 (3 years ago)
- Files:
-
- latexformulamacro/0.8/formula.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
latexformulamacro/0.8/formula.py
r124 r130 115 115 dvipsPath = env.get_config('latex', 'dvips_path') 116 116 convertPath = env.get_config('latex', 'convert_path') 117 texMag = env.get_config('latex', ' mag')117 texMag = env.get_config('latex', 'text_mag') 118 118 imageFormat = env.get_config('latex', 'image_format') 119 119 … … 131 131 convertPath = 'convert' 132 132 if not texMag: 133 texMag = '1' # TODO: need a reasonable default here..133 texMag = 1000 # I'm told this is latex's default value 134 134 if not imageFormat: 135 135 imageFormat = 'jpg' … … 146 146 # the image, so we don't have to recreate it unless they change. 147 147 hash = sha.new(texData) 148 hash.update( "%d" % density ) 148 # include some options in the hash, as they affect the output image 149 hash.update( "%d %d" % (density, int(texMag)) ) 149 150 hash.update( outputVersion ) 150 151 name = hash.hexdigest() … … 196 197 tex += "\\usepackage{epsfig}\n" 197 198 tex += "\\pagestyle{empty}\n" 198 # TODO: magnification doesn't work correctly.. 199 #tex += "\\mag=%s\n" % texMag 199 tex += "\\mag=%s\n" % texMag 200 200 # matrix macro 201 201 tex += "\\newcommand{\\mat}[2][rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr]{\n"
