Diff for /loncom/html/adm/help/tex/Variables_in_the_Text_Block.tex between versions 1.5 and 1.6

version 1.5, 2013/07/05 18:30:40 version 1.6, 2013/08/28 03:21:36
Line 5  Once you've defined variables in the \te Line 5  Once you've defined variables in the \te
 the \textbf{Text Block}. For example, using the previous three-line script  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}:  we've created so far, you can place the following in the \textbf{Text Block}:
   
 \begin{lyxcode}  \begin{verbatim}
 See~the~3:~\$variable<br~/>\\  See the 3: $variable<br />
 See~the~string:~<b>\$stringVar</b><br~/>  See the string: <b>$stringVar</b><br />
 \end{lyxcode}  \end{verbatim}
 %  %
 \begin{figure}  \begin{figure}
 \begin{center}\includegraphics{numericalResponseVarInText}\end{center}  \begin{center}\includegraphics{numericalResponseVarInText}\end{center}
Line 21  If you save that and hit \textbf{View}, Line 21  If you save that and hit \textbf{View},
 was turned into a 3, and the {}``\$stringVar'' was turned into {}``I have  was turned into a 3, and the {}``\$stringVar'' was turned into {}``I have
 a variable with the value 3.''  a variable with the value 3.''
   
 If you a generating numbers by a formula by division, you will want to format your output.  If you are generating numbers using a formula which includes a division operation, it is advisable to format your output.
 For example, if \$variable=1/3, it will display with too many digits. You can adjust the format  For example, if \$variable=1/3, it will display with too many digits. You can adjust the format
 using the \texttt{num} output tag \index{num output tag} \index{format numbers in text block}   using the \texttt{num} output tag \index{num output tag} \index{format numbers in text block} 
 described in the section \ref{Authoring_Output_Tags}  described in the Output Tags section \ref{Authoring_Output_Tags}
   

Removed from v.1.5  
changed lines
  Added in v.1.6


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