File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Adding_Pictures.tex
Revision 1.5: download - view: text, annotated - select for diffs
Sat Aug 20 14:11:44 2016 UTC (7 years, 10 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, HEAD
- Use standard double quotes inside \textt.

\label{Authoring_Adding_Pictures}
To add a picture\index{picture} to a problem, the picture must first
be uploaded to your authoring space, then published. Then, in the
text area of your problem, add the following:

\texttt{<img src=\char`\"{}/res/DOMAIN/AUTHOR/directory-of-picture/picture.jpg\char`\"{} />}

where DOMAIN is the domain the picture is in, AUTHOR is the person who 
published the picture, and the rest is the standard path to the picture.

It is also possible for advanced users to use a script variable in
the place of the picture URL, like this:

\texttt{<img src=\char`\"{}\$picture\char`\"{} />}

and use the string variable \texttt{\$picture} in the script of the problem to 
select from several possible pictures. If you do this, you will need
to \textbf{Edit XML} for the problem and add the various graphics 
used in the problem to the \texttt{$<$allow$>$} tags on the bottom.

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