Annotation of loncom/html/adm/help/tex/Authoring_Adding_Pictures.tex, revision 1.2

1.1       bowersj2    1: \label{Authoring_Adding_Pictures}
                      2: To add a picture\index{picture} to a problem, the picture must first
1.2     ! lira        3: be uploaded to your authoring space, then published. Then, in the
1.1       bowersj2    4: text area of your problem, add the following:
                      5: 
                      6: \texttt{<img src="/res/DOMAIN/AUTHOR/directory-of-picture/picture.jpg" />}
                      7: 
                      8: where DOMAIN is the domain the picture is in, AUTHOR is the person who 
                      9: published the picture, and the rest is the standard path to the picture.
                     10: 
                     11: It is also possible for advanced users to use a script variable in
                     12: the place of the picture URL, like this:
                     13: 
                     14: \texttt{<img src=''\$picture'' />}
                     15: 
                     16: and use the string variable \$picture in the script of the problem to 
                     17: select from several possible pictures. If you do this, you will need
                     18: to \textbf{Edit XML} for the problem and add the various graphics 
                     19: used in the problem to the <allow> tags on the bottom.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>