Difference between revisions of "StaticImages"
m |
m |
||
Line 20: | Line 20: | ||
\{ image( "imagename.png", width=>150, height=>150, |
\{ image( "imagename.png", width=>150, height=>150, |
||
− | tex_size=>250, extra_html_tags=>'alt="Graph of a function."') \} |
+ | tex_size=>250, extra_html_tags=>'alt="Graph of a function."' ) \} |
+ | |||
END_TEXT |
END_TEXT |
||
</pre> |
</pre> |
Revision as of 20:43, 7 November 2009
Static Graphic Images: PG Code Snippet
This code snippet shows the essential PG code to insert a static (pre-generated) graphic image into a problem. Note that these are insertions, not a complete PG file. This code will have to be incorporated into the problem file on which you are working.
PG problem file | Explanation |
---|---|
BEGIN_TEXT \{ image( "imagename.png" ) \} \{ image( "imagename.png", width=>150, height=>150, tex_size=>250, extra_html_tags=>'alt="Graph of a function."' ) \} END_TEXT |
Here it's easy: we just use the
We can, of course, include options such as specifying the |