Hi,

Is it possible to have several things appear simultaneously (\restep) in
arbitrary order using \restep[\value{step}=i]{}?
I have tried this with the piece of code below and, although I don't have
compilation errors, the result is, say, surprising.

Gérard Degrez

\parstepwise{
\begin{align}
    \F^{c} & = (\rho u,\rho y_{s}u,\rho u^2+p,\rho uv,\rho uw,\rho u H)^t \\
    \G^c & =  (\rho v,\rho y_{s}v,\rho uv,\rho v^2+p,\rho vw,\rho v H)^t \\
    \F^d & =
        (0,\step{\color{red}
-J_{xs}},\step[\value{step}=2]{\color{green}\tau_{xx}},
        \restep[\value{step}=2]{\color{green}\tau_{xy}},\restep[\value{step}=2]{\color{
green}\tau_{xz}},\notag \\
     &
\hspace*{10mm}\step[\value{step}=4]{\color{yellow}u\tau_{xx}+v\tau_{xy}+w\tau_{x
z}}-\sum_{s=1}^{n_{s}}J_{xs}h_{s}-
        \step[\value{step}=3]{\color{orange}q_{x}})^t \\
    \G^d & =

(0,\restep[\value{step}=1]{\color{red}-J_{ys}},\restep[\value{step}=2]{\color{gr
een}\tau_{xy}},
        \restep[\value{step}=2]{\color{green}\tau_{yy}},\restep[\value{step}=2]{\color{
green}\tau_{yz}},\notag \\
     &
\hspace*{10mm}\restep[\value{step}=4]{\color{yellow}u\tau_{xy}+v\tau_{yy}+w\tau_
{yz}}-\sum_{s=1}^{n_{s}}J_{ys}h_{s}-
         \restep[\value{step}=3]{\color{orange}q_{y}})^t
\end{align}
\begin{center}
\begin{tabular}{ll}
        \restep[\value{step}=1]{\textcolor{red}{diffusion fluxes}} &
\restep[\value{step}=3]{\color{orange}conduction
        heat flux}  \\
        \restep[\value{step}=2]{\color{green} shear stresses} &
\restep[\value{step}=4]{\color{yellow}power of
        viscous stresses}
\end{tabular}
\end{center}
}


Reply via email to