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, 11 months ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
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.
1: \label{Authoring_Adding_Pictures}
2: To add a picture\index{picture} to a problem, the picture must first
3: be uploaded to your authoring space, then published. Then, in the
4: text area of your problem, add the following:
5:
6: \texttt{<img src=\char`\"{}/res/DOMAIN/AUTHOR/directory-of-picture/picture.jpg\char`\"{} />}
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=\char`\"{}\$picture\char`\"{} />}
15:
16: and use the string variable \texttt{\$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 \texttt{$<$allow$>$} tags on the bottom.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>