我想改善方程部分的外观。长回归方程目前很高/堆叠,我认为如果将它们水平拉伸一点,它们可能会看起来更好。此外,我的第三个方程从技术上讲不是一个方程,而是一个句子(当你看到它时你就会明白我的意思)。你能看看吗?
我的 MWE:
\documentclass[twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage{newtxtext}
\usepackage[lite]{mtpro2}
\usepackage{amsmath,geometry,siunitx,booktabs, tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcommand\mC[1]{\multicolumn{1}{C@{}}{#1}} % handy shortcut macro
\sisetup{group-separator={,}, group-minimum-digits=4}
\usepackage[skip=1ex]{caption}
\captionsetup[table]{font=small, labelfont=bf, singlelinecheck=no}
\usepackage{%booktabs,
makecell, %tabularx
}
\renewcommand\theadfont{\normalsize}
\renewcommand\theadgape{}
\setcellgapes{2pt}
\usepackage{textcomp}
\usepackage{graphicx}
\raggedbottom
\usepackage{rotating}
\usepackage[referable]{threeparttablex}
\usepackage{upquote}
\usepackage{balance}
\usepackage{wasysym}
\usepackage{footmisc}
\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}
\title{\LARGE \bf ECON 425 Term Paper}
\author{}
\begin{document}
\section{Empirical Results}
OLS Regression is used to estimate the following equations:
\ \
\\
\begin{equation}\label{eqn:first}
\begin{array}{rl}
&\text{CEO Salary} \\
=&\beta_0 +
\beta_1\,\text{return}+
\beta_2\,\text{bonus}\\
& +\beta_3\,\text{stock awards}\\
& +\beta_4\,\text{option awards} \\
& +\beta_5\,\text{other compensation}\beta_6\,\text{age} \\
& +\beta_7\,\text{age sq}
+\beta_8\,\text{male} \\
& +\beta_9\,\text{industry}
+\beta_{10}\,\text{volume}
\end{array}
\end{equation}
\begin{equation}\label{eqn:second}
\begin{array}{rl}
&\text{Total Compensation}\\
=&
\beta_0 +
\beta_1\,\text{return}\\
& +\beta_2\,\text{age}
+\beta_3\,\text{male} \\
& +\beta_4\,\text{interaction term?}\\
& +\beta_5\,\text{industry}
\beta_6\,\text{volume}\\
& +\beta_7\,\text{age sq}
+\beta_8\,\text{male}\\
& +\beta_9\,\text{industry}
+\beta_{10}\,\text{volume}
\end{array}
\end{equation}
\begin{equation}\label{eqn:third}
\begin{array}{rl}
&\text{Same as model (1) without industry dummies}\\
\end{array}
\end{equation}
\end{document}
目前的情况如下:
非常感谢您的帮助!
答案1
首先,你永远不应该用公式结束一个段落\\
,也不应该在显示的公式前留一个空行
\ \
\\
在方程产生最大不良程度的输出之前
Underfull \hbox (badness 10000) in paragraph at lines 45--47
方程式中主要的视觉错误在于第一行在 = 的右边,但也不能用于array
方程式(它是为数组/矩阵设计的,并且设置了 textstyle 中的单元格,不显示样式,并且间距错误),请使用 ams 对齐
你实际上不应该有连续的显示数学(我这里有连续的多行)但现在已经很晚了,也许这会让你更接近,我只是在这里用一个负的 vskip 进行了补偿。
\documentclass[twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage{newtxtext}
%\usepackage[lite]{mtpro2}
\usepackage{amsmath,geometry,siunitx,booktabs, tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcommand\mC[1]{\multicolumn{1}{C@{}}{#1}} % handy shortcut macro
\sisetup{group-separator={,}, group-minimum-digits=4}
\usepackage[skip=1ex]{caption}
\captionsetup[table]{font=small, labelfont=bf, singlelinecheck=no}
\usepackage{%booktabs,
makecell, %tabularx
}
\renewcommand\theadfont{\normalsize}
\renewcommand\theadgape{}
\setcellgapes{2pt}
\usepackage{textcomp}
\usepackage{graphicx}
\raggedbottom
\usepackage{rotating}
\usepackage[referable]{threeparttablex}
\usepackage{upquote}
\usepackage{balance}
\usepackage{wasysym}
\usepackage{footmisc}
\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}
\title{\LARGE \bf ECON 425 Term Paper}
\author{}
\begin{document}
\section{Empirical Results}
OLS Regression is used to estimate the following equations:
\begin{multline}
\label{eqn:first}
\text{CEO Salary}={}\\
\begin{aligned}[t]
&\beta_0 +
\beta_1\,\text{return}+
\beta_2\,\text{bonus}\\
& +\beta_3\,\text{stock awards}\\
& +\beta_4\,\text{option awards} \\
& +\beta_5\,\text{other compensation}\beta_6\,\text{age} \\
& +\beta_7\,\text{age sq}
+\beta_8\,\text{male} \\
& +\beta_9\,\text{industry}
+\beta_{10}\,\text{volume}
\end{aligned}
\end{multline}
\vspace{-\baselineskip}
\begin{multline}
\label{eqn:second}
\text{Total Compensation}={}\\
\begin{aligned}[t]
&
\beta_0 +
\beta_1\,\text{return}\\
& +\beta_2\,\text{age}
+\beta_3\,\text{male} \\
& +\beta_4\,\text{interaction term?}\\
& +\beta_5\,\text{industry}
\beta_6\,\text{volume}\\
& +\beta_7\,\text{age sq}
+\beta_8\,\text{male}\\
& +\beta_9\,\text{industry}
+\beta_{10}\,\text{volume}
\end{aligned}
\end{multline}
\begin{equation}
\label{eqn:third}
\text{Same as model \eqref{eqn:first} without industry dummies}
\end{equation}
\end{document}