File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Variables_in_the_Text_Block.tex
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Fri Jul 5 16:12:31 2002 UTC (22 years, 2 months ago) by
bowersj2
Branches:
MAIN
CVS tags:
HEAD
This commit implements the .tex-based online help system in LON-CAPA. It
may be necessary to manually run loncom/build/help_graphics_converter.pl
and doc/help/rebuildLabelHash.pl after a cvs update, and
loncapa_apache.conf may need to be manually copied to /etc. (The
loncapafiles.lpml has been updated.)
After merging this, the URL http://[loncapahost]/adm/help/Foils.hlp
should display a help file.
Also, some *very* out-of-date files have been removed from the /doc
directory.
Once you've defined variables in the \textbf{Script}, you can use them in
the \textbf{Text Block}. For example, using the previous three-line script
we've created so far, you can place the following in the \textbf{Text Block}:
\begin{lyxcode}
See~the~3:~\$variable<br~/>
See~the~string:~<b>\$stringVar</b><br~/>
\end{lyxcode}
%
\begin{figure}
\begin{center}\includegraphics{numericalResponseVarInText}\end{center}
\caption{Result of Variables in the Text Block\label{Result of Variables in the Text Block Figure}}
\end{figure}
If you save that and hit \textbf{View}, you should get what you see in figure
\ref{Result of Variables in the Text Block Figure}. Note how the {}``\$variable''
was turned into a 3, and the {}``\$stringVar'' was turned into {}``I have
a variable with the value 3.''
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>