[LON-CAPA-users] latex or xhtml in problems?

Lars Jensen lon-capa-users@mail.lon-capa.org
Wed, 30 Oct 2002 11:41:27 -0800 (PST)


What is the cleaner way of writing problems? 
In latex or in xhtml? 

Let's say that I have a longer problem with several header tags, lists,
tables. I have a choice of typesetting these in latex, or in xhtml. What
should I choose? 

One example might be something like this:

-----begin problem text-------

\section*{Problem with a Table}

Here is a table:

{\centering \begin{tabular}{|c|c|c|}
\hline 
\textbf{a}&
\textbf{b}&
\textbf{c}\\
\hline
\hline 
A&
B&
C\\
\hline
\end{tabular}\par}

What is the entry in the first colums, second row?

-----end problem test-------

This problem has a table and some formatting in it. If I include above
latex code in a pair of m-tags it should will come out fine both on 
a web page and on a printout for the student.

For the web, the same problem could be generated in xhtml code. If I
wrote the problem in xhtml, though, would it come out nicely (or 
at all?) on a printout? 

It seems that the preferred way to problems that contain some formatting
is with latex. The above latex was written in LyX in less than one
minute, then I exported the problem text as latex, and pasted it into
the lon-capa editor. 

Any comments on the best way code problems appreciated.

Thanks,
Lars.

--
Lars Jensen, TMCC/Vista B200, 7000 Dandini Blvd, Reno NV 89512-3999. 
Internet: <jensen@physics.unr.edu>, http://www.scsr.nevada.edu/~jensen
Tel: 775.673.7113  FAX: 775.674.7592