Difference between revisions of "StaticImages"
m |
m |
||
Line 16: | Line 16: | ||
<td style="background-color:#ffdddd;border:black 1px dashed;"> |
<td style="background-color:#ffdddd;border:black 1px dashed;"> |
||
<pre> |
<pre> |
||
− | + | 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 |
||
</pre> |
</pre> |
||
<td style="background-color:#ffcccc;padding:7px;"> |
<td style="background-color:#ffcccc;padding:7px;"> |
Revision as of 20:40, 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 |