Annotation of loncom/html/adm/help/tex/Variables_in_the_Text_Block.tex, revision 1.3

1.2       bowersj2    1: \label{Variables_in_the_Text_Block}
1.1       bowersj2    2: 
                      3: Once you've defined variables in the \textbf{Script}, you can use them in
                      4: the \textbf{Text Block}. For example, using the previous three-line script
                      5: we've created so far, you can place the following in the \textbf{Text Block}:
                      6: 
                      7: See~the~3:~\$variable<br~/>
                      8: 
                      9: See~the~string:~<b>\$stringVar</b><br~/>
                     10: %
                     11: \begin{figure}
                     12: \begin{center}\includegraphics{numericalResponseVarInText}\end{center}
                     13: 
                     14: 
                     15: \caption{Result of Variables in the Text Block\label{Result of Variables in the Text Block Figure}}
                     16: \end{figure}
                     17: If you save that and hit \textbf{View}, you should get what you see in figure
                     18: \ref{Result of Variables in the Text Block Figure}. Note how the {}``\$variable''
                     19: was turned into a 3, and the {}``\$stringVar'' was turned into {}``I have
                     20: a variable with the value 3.''
                     21: 

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