File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_HTML_vs_Tex.tex
Revision 1.3: download - view: text, annotated - select for diffs
Fri Aug 15 19:12:56 2008 UTC (15 years, 10 months ago) by felicia
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, bz5969, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, HEAD, GCI_3, GCI_2, GCI_1, BZ5971-printing-apage, BZ5434-fox, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
updated a reference in a helpfile from Authoring_M_Tag (removed) to Authoring_Output_Tags which contains information on the <m> tag.

\label{Authoring_HTML_vs_Tex}
LON-CAPA renders resources in several formats, including on the web in
HTML and in LaTeX for renderings designed to be printed.

When creating problems, it is possible to use LaTeX directly by using
the <m> tag\index{m tag}\index{tag, <m>} (see
\ref{Authoring_Output_Tags}). Anything between the <m> tag in a resource
will be interpreted as .tex.

However, this should be used as a last resort for when you wish to do
something that is impossible to do in HTML. LON-CAPA will convert to
and from LaTeX and HTML whenever necessary, and it is much easier (and
therefore more likely to work) to convert HTML to LaTeX then to go the
other direction, because HTML is so much simpler than LaTeX. 

Thus, given the choice of 

\texttt{H<sub>2</sub>O}

or 

\texttt{<m >H\textbackslash{}subscript\{2\}O</m >}

it is better to use the HMTL version.

A necessarily-incomplete list of capabilities: LON-CAPA can convert
HTML tables in LaTeX tables, images into LaTeX images, LaTeX symbols
into HTML, and LaTeX math into HTML (though it does not usually look
as good as LaTeX).

If you really wish to have the web rendering and the LaTeX rendering
do something different, perhaps because the automatically generated
LaTeX->HTML conversion did not do what you wanted, you can surround
your LaTeX with <tex> </tex>\index{tex tag}\index{tag, <tex>} tags,
and your HTML version with <web> </web>\index{web tag}\index{tag,
<web>} tags. The stuff placed between the <tex> tags will only show on
the LaTeX rendering of the resource, and the stuff placed between the
<web> tags will only show on the HTML web rendering of the resource.

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