File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_HTML_vs_Tex.tex
Revision 1.2: download - view: text, annotated - select for diffs
Fri May 14 14:56:59 2004 UTC (20 years, 2 months ago) by www
Branches: MAIN
CVS tags: version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, HEAD
Typos.

    1: \label{Authoring_HTML_vs_Tex}
    2: LON-CAPA renders resources in several formats, including on the web in
    3: HTML and in LaTeX for renderings designed to be printed.
    4: 
    5: When creating problems, it is possible to use LaTeX directly by using
    6: the <m> tag\index{m tag}\index{tag, <m>} (see
    7: \ref{Authoring_M_Tag}). Anything between the <m> tag in a resource
    8: will be interpreted as .tex.
    9: 
   10: However, this should be used as a last resort for when you wish to do
   11: something that is impossible to do in HTML. LON-CAPA will convert to
   12: and from LaTeX and HTML whenever necessary, and it is much easier (and
   13: therefore more likely to work) to convert HTML to LaTeX then to go the
   14: other direction, because HTML is so much simpler than LaTeX. 
   15: 
   16: Thus, given the choice of 
   17: 
   18: \texttt{H<sub>2</sub>O}
   19: 
   20: or 
   21: 
   22: \texttt{<m >H\textbackslash{}subscript\{2\}O</m >}
   23: 
   24: it is better to use the HMTL version.
   25: 
   26: A necessarily-incomplete list of capabilities: LON-CAPA can convert
   27: HTML tables in LaTeX tables, images into LaTeX images, LaTeX symbols
   28: into HTML, and LaTeX math into HTML (though it does not usually look
   29: as good as LaTeX).
   30: 
   31: If you really wish to have the web rendering and the LaTeX rendering
   32: do something different, perhaps because the automatically generated
   33: LaTeX->HTML conversion did not do what you wanted, you can surround
   34: your LaTeX with <tex> </tex>\index{tex tag}\index{tag, <tex>} tags,
   35: and your HTML version with <web> </web>\index{web tag}\index{tag,
   36: <web>} tags. The stuff placed between the <tex> tags will only show on
   37: the LaTeX rendering of the resource, and the stuff placed between the
   38: <web> tags will only show on the HTML web rendering of the resource.

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