[l2h] Colored Equations Problems
Michael L. Hall
Michael L. Hall" <hall@galt.lanl.gov
Thu, 5 Aug 1999 18:03:31 -0600
Well, this bit of LaTeX has given L2H some headaches in the past,
and here they are again. :-)
First, here's how it is supposed to look:
http://www-xdiv.lanl.gov/XTM/hall/Spartan/1998_04_22/node12.html
That was the result of processing with the latest version back in
March 1999 (99.2 developer's, that I had put some patches in, which
eventually made it into the floor version).
Now, here's how it looks with 99.2alpha8:
http://www-xdiv.lanl.gov/XTM/hall/bug/node1.html
Notice that all the terms are not properly colored, even in the text
at the bottom.
L2H did squawk at a mathstrut:
1/2:subsection:.,$_$...."SPN Temporal Discretization" for node1.html
;,$.$....$.._$.$...$...$._$.$.^$_$,$.$..._$.$....$.._$.$..
ignoring \mathstrut $^$_$,$,$.,$.$_
[...]
Unknown commands: mathstrut
I'm including the LaTeX at the end of this email. Usually what happens
in this situation is that Ross tells me why the LaTeX I'm writing is
non-standard, and I learn something about LaTeX in the process. :-)
Thanks again to all the maintainers of this great program!
-Mike
============================================================================
Dr. Michael L. Hall <mailto:hall@lanl.gov>
Los Alamos National Laboratory <http://www.lanl.gov/home/Hall>
P.O. Box 1663, MS-D409 Research: computational physics, radiation
Los Alamos, NM 87545 transport, heat pipes, numerical modeling,
ph: 505-665-4312 fluid dynamics, magnetohydrodynamics
============================================================================
\documentclass{report}
\usepackage[dvips]{color,graphicx}
\usepackage{html}
\usepackage{htmllist}
%
% Redefine equation beginnings and endings to have no numbers.
%
\def\bea{\begin{eqnarray*}}
\def\eea{\end{eqnarray*}}
\def\be{\begin{displaymath}}
\def\ee{\end{displaymath}}
\begin{document}
%
% Page 8
%
\def\vec#1{\mbox{$\stackrel{^{\mathstrut}\smash{\longrightarrow}}{#1}$}}
\newcommand{\grad}{\mbox{$\vec{\nabla}$}}
\newcommand{\dxdt}[1]{\frac{\partial #1}{\partial t}}
\newcommand{\ddto}{\frac{\partial}{\partial t}}
\newcommand{\fn}[1]{\left( #1 \right)}
\newcommand{\cvmg}{\vec{\mathcal{C}}\mathstrut{}^v_{m,g}}
\newcommand{\csg}{\mathcal{C}^s_g}
\newcommand{\gammamg}{\vec{\Gamma}_{m,g}}
\newcommand{\fzg}{\vec{F}\mathstrut^{(0)}_g}
\newcommand{\phizg}{\phi^{(0)}_g}
\newcommand{\voc}{\frac{\vec{v}}{c}}
\subsection{$SP_N$ Temporal Discretization}
Radiation transport equations:
\be
\textcolor{blue} {\frac{1}{c} \ddto \xi_{m,g}} +
\textcolor{blue} {\div \gammamg} +
\textcolor{blue} {\sigma_g^t \xi_{m,g}} =
\textcolor{red} {\sigma_g^s \phi_g} +
\textcolor{green} {\sigma_g^e B_g} +
\textcolor{magenta}{\csg} \; ,
\ee
\be
\textcolor{blue} {\frac{1}{c} \ddto \gammamg} +
\textcolor{blue} {\mu^2_m \grad \xi_{m,g}} +
\textcolor{blue} {\sigma_g^t \gammamg} =
\textcolor{magenta}{\cvmg}
\ee
for $m=1,M$, and $g=1,G$.
Temperature equations:
\bea
\textcolor{blue} {C_{vi} \dxdt{T_i}} & = &
\textcolor{blue} {\alpha\fn{T_e-T_i}} +
\textcolor{magenta}{Q_i} \; , \\
\textcolor{blue} {C_{ve} \dxdt{T_e}} & = &
\textcolor{blue} {\alpha\fn{T_i-T_e}} +
\textcolor{magenta}{Q_e} +
\textcolor{green} {\sum_{g=1}^{G} \fn{\sigma_g^a \phizg - \sigma_g^e B_g}} \; ,
\eea
where
\bea
\textcolor{blue} {Blue} & = & \mbox{Implicit or backwards Euler terms}, \\
\textcolor{magenta}{Magenta} & = & \mbox{Explicit or extrapolated implicit
terms}, \\
\textcolor{red} {Red} & = & \mbox{Implicit terms accelerated by DSA}, \\
\textcolor{green} {Green} & = & \mbox{Linearized implicit terms accelerated
by LMFG}.
\eea
\begin{small} \noindent
This is not quite accurate --- it's actually more complicated than
this --- but this captures the flavor of the temporal discretization.
\end{small}
\end{document}