File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Adding_Pictures.tex
Revision 1.2: download - view: text, annotated - select for diffs
Tue Aug 20 15:35:29 2013 UTC (10 years, 10 months ago) by lira
Branches: MAIN
CVS tags: version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0, HEAD
converting 'construction space' to 'authoring space' and CSTR to AUTH

\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="/res/DOMAIN/AUTHOR/directory-of-picture/picture.jpg" />}

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=''\$picture'' />}

and use the string variable \$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 <allow> tags on the bottom.

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