Annotation of loncom/html/adm/help/tex/Authoring_Adding_Pictures.tex, revision 1.5
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:
1.5 ! raeburn 6: \texttt{<img src=\char`\"{}/res/DOMAIN/AUTHOR/directory-of-picture/picture.jpg\char`\"{} />}
1.1 bowersj2 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:
1.5 ! raeburn 14: \texttt{<img src=\char`\"{}\$picture\char`\"{} />}
1.1 bowersj2 15:
1.3 lira 16: and use the string variable \texttt{\$picture} in the script of the problem to
1.1 bowersj2 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
1.3 lira 19: used in the problem to the \texttt{$<$allow$>$} tags on the bottom.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>