File:  [LON-CAPA] / loncom / html / adm / help / tex / Attic / Authoring_Spreadsheet.tex
Revision 1.4: download - view: text, annotated - select for diffs
Wed Dec 28 22:35:09 2016 UTC (7 years, 8 months ago) by lira
Branches: MAIN
CVS tags: HEAD
Clarify example. Also, file will be renamed to Spreadsheet_Authoring.tex in the next commit.

\label{Authoring_Spreadsheet}

To use a spreadsheet in multiple courses, authors can create spreadsheet XML files in their authoring space. Published spreadsheets can be imported into courses. See \textbf{Loading a Spreadsheet Definition from a Published File} (\ref{Spreadsheet_Loading}). The spreadsheet syntax is illustrated by the following example demonstrating both text and formulas:
 
\begin{verbatim} 
<field col=A row=0>`Available Points:'</field>
<field col=B row=0>&SUM(`X*')</field>
<field col=C row=0>`Awarded Points:'</field>
<field col=D row=0>&SUM(`Z*')</field> 
\end{verbatim}

See \textbf{Modifying the Spreadsheet} (\ref{Spreadsheet_Editing}) for more information on programming cells. Very complex calculations can be performed in the cells. The file must be saved in authoring space with the extension .spreadsheet.  Currently, a spreadsheet must be imported into authoring space as a .txt file and then renamed to a .spreadsheet. After it is published with the .spreadsheet extension, it can be imported into a course.

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