I'm writing a paper for a journal that contains several regression equations (a first for me). Some of the models have long variables names (between 2-7 characters in length). I'm wondering what the best practice is for formatting such text, both inline and in display mode?
Variables are usually in italic face, but for long names this looks odd. Using \mathrm{}
looks good within display equations, but for inline equations and descriptions of variables embedded in text it blurs the line between the two so much that it often isn't immediately clear which are variables. I've also tried using \textsubscript{}
for inline variables, but this seems the same as \mathrm{}
. Any suggestions are most welcome. I've provided a self-contained example of some of the above:
\documentclass[twocolumn]{article}
\usepackage{amsthm,amsmath,amssymb}
\usepackage{lipsum}
\usepackage[utf8]{inputenc} %unicode support
\usepackage{fixltx2e}
\DeclareMathOperator{\E}{\mathbb{E}}%
\begin{document}
\lipsum[2]
%
\begin{equation}
\E \biggl[ \frac{M_5KV}{M_2KV} \biggm\vert \mathbf{X} \biggr] = \beta_0 + \beta_1 \biggl[ \frac{M_6}{M_2} \biggr] + \mathbf{Z_1u_1} + \mathbf{Z_2u_2},
\end{equation}
%
where $M_5KV / M_2KV$ is the ratio of blah blah and $ \mathbf{Z_iu_i}$ are matrices of random effects.
%
\begin{equation}
\E \biggl[ \mathrm{\frac{M_5KV}{M_2KV}} \biggm\vert \mathbf{X} \biggr] = \beta_0 + \beta_1 \biggl[ \mathrm{\frac{M_6}{M_2}} \biggr] + \mathbf{Z_1u_1} + \mathbf{Z_2u_2},
\end{equation}
%
where $\mathrm{M_5KV / M_2KV}$ is the ratio of blah blah and $ \mathbf{Z_iu_i}$ are matrices of random effects. Where M\textsubscript{5}KV/M\textsubscript{2}KV is the ratio of blah blah and $ \mathbf{Z_iu_i}$ are matrices of random effects.
\lipsum[2]
%
\begin{subequations}
\begin{align}
\begin{split}
\E \bigl[ M_5Area \mid \mathbf{X} \bigr] &= \beta_0 + \beta_1 M_2Area + \beta_2 M_6Area \\
&\quad + \mathbf{Z_1u_1} + \mathbf{Z_2u_2}, \label{eqn:YXM}
\end{split} \\
\begin{split}
\E \bigl[ M_6Area \mid \mathbf{X} \bigr] &= \beta_0' + \beta_1' M_2Area \\
&\quad + \mathbf{Z_1u_1} + \mathbf{Z_2u_2}, \label{eqn:MX}
\end{split} \\
\E \bigl[ ab \bigr] &= \frac{1}{n} \sum_{n=1}^{n} \beta_2 \, \beta_1'.
\end{align}
\end{subequations}
%
where $M_5Area$ is blah blah $M_2Area$ is blah blah blah and $ \mathbf{Z_iu_i}$ are matrices of random effects.
%
\begin{subequations}
\begin{align}
\begin{split}
\E \bigl[ \mathrm{M_5Area} \mid \mathbf{X} \bigr] &= \beta_0 + \beta_1 \mathrm{M_2Area} + \beta_2 \mathrm{M_6Area} \\
&\quad + \mathbf{Z_1u_1} + \mathbf{Z_2u_2}, \label{eqn:YXM}
\end{split} \\
\begin{split}
\E \bigl[ \mathrm{M_6Area} \mid \mathbf{X} \bigr] &= \beta_0' + \beta_1' \mathrm{M_2Area} \\
&\quad + \mathbf{Z_1u_1} + \mathbf{Z_2u_2}, \label{eqn:MX}
\end{split} \\
\E \bigl[ ab \bigr] &= \frac{1}{n} \sum_{n=1}^{n} \beta_2 \, \beta_1'.
\end{align}
\end{subequations}
%
where $\mathrm{M_5Area}$ is blah blah $\mathrm{M_2Area}$ is blah blah blah blah and $ \mathbf{Z_iu_i}$ are matrices of random effects. Where M\textsubscript{5}Area is blah blah blah M\textsubscript{2}Area is blah blah blah. Solving for area: $CA = RA(x) + EA(1-x)$. Solving for area: $\mathrm{CA = RA(x) + EA(1-x)}$.
\lipsum[1-2]
\end{document}
cos
ortan
) you can use\DeclareMathOperator{\command}{text like name}