--- loncom/html/adm/help/tex/Variables_in_the_Text_Block.tex 2013/06/26 08:14:55 1.4 +++ loncom/html/adm/help/tex/Variables_in_the_Text_Block.tex 2017/06/12 17:25:06 1.7 @@ -5,13 +5,13 @@ Once you've defined variables in the \te 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\\ -See~the~string:~\$stringVar -\end{lyxcode} +\begin{verbatim} +See the 3: $variable
+See the string: $stringVar
+\end{verbatim} % \begin{figure} -\begin{center}\includegraphics{numericalResponseVarInText}\end{center} +\begin{center}\includegraphics[width=0.70\paperwidth]{numericalResponseVarInText}\end{center} \caption{Result of Variables in the Text Block\label{Result of Variables in the Text Block Figure}} @@ -21,8 +21,8 @@ If you save that and hit \textbf{View}, was turned into a 3, and the {}``\$stringVar'' was turned into {}``I have 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 -using the \textbf{num} output tag \index{num output tag} \index{format numbers in text block} -described in section \ref{Authoring_Output_Tags} +using the \texttt{num} output tag \index{num output tag} \index{format numbers in text block} +described in the Output Tags section \ref{Authoring_Output_Tags}