如何使长方程式变小以适合 LaTeX?

如何使长方程式变小以适合 LaTeX?

我试图在我的论文中使用一个方程,但该方程足够长,无法容纳 LaTeX 格式,我找到了一张图片,但不知道如何将其转换为 LaTeX 格式,它使用了一些不同的符号。

在此处输入图片描述

如何用 LaTeX 编写此文件并使其变小。

我已尝试过:

\begin{equation}
\frac{\sum_{i j}\left(\begin{array}{l}{n_{i j}} \\ {2}\end{array}\right)-\left[\sum_{i}\left(\begin{array}{l}{a_{i}} \\ {2}\end{array}\right) \sum_{j}\left(\begin{array}{l}{b_{j}} \\ {2}\end{array}\right)\right] /\left(\begin{array}{l}{n} \\ {2}\end{array}\right)}{\frac{1}{2}\left[\sum_{i}\left(\begin{array}{l}{a_{i}} \\ {2}\end{array}\right)+\sum_{j}\left(\begin{array}{l}{b_{j}} \\ {2}\end{array}\right)-\left[\sum_{i}\left(\begin{array}{l}{a_{i}} \\ {2}\end{array}\right) \sum_{j}\left(\begin{array}{l}{a_{j}} \\ {2}\end{array}\right)\right] /\left(\begin{array}{l}{n} \\ {2}\end{array}\right)\right.}
\end{equation}

但它看起来是这样的:

在此处输入图片描述

编辑:

%File: formatting-instruction.tex
\documentclass[letterpaper]{article}
\usepackage{aaai}
\usepackage{times}
\usepackage{helvet}
\usepackage{amsmath}

\usepackage{courier}
\frenchspacing
\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}
\pdfinfo{
/Title (Insert Your Title Here)
/Author (Put All Your Authors Here, Separated by Commas)}
\setcounter{secnumdepth}{0}  
 \begin{document}
% The file aaai.sty is the style file for AAAI Press 
% proceedings, working notes, and technical reports.
%
\title{Thesis}
\author{Anonymous Author 
}
\maketitle
\begin{abstract}
\begin{quote}
AAAI creates proceedings, working notes, and technical reports directly from electronic source furnished by the authors. To ensure that all papers in the publication have a uniform appearance, authors must adhere to the following instructions. 
\end{quote}
\end{abstract}

\section{Model}

In this section we describe the architecture of our model.

\begin{equation}
\frac{\sum_{i j}\left(\begin{array}{l}{n_{i j}} \\ {2}\end{array}\right)-\left[\sum_{i}\left(\begin{array}{l}{a_{i}} \\ {2}\end{array}\right) \sum_{j}\left(\begin{array}{l}{b_{j}} \\ {2}\end{array}\right)\right] /\left(\begin{array}{l}{n} \\ {2}\end{array}\right)}{\frac{1}{2}\left[\sum_{i}\left(\begin{array}{l}{a_{i}} \\ {2}\end{array}\right)+\sum_{j}\left(\begin{array}{l}{b_{j}} \\ {2}\end{array}\right)-\left[\sum_{i}\left(\begin{array}{l}{a_{i}} \\ {2}\end{array}\right) \sum_{j}\left(\begin{array}{l}{a_{j}} \\ {2}\end{array}\right)\right] /\left(\begin{array}{l}{n} \\ {2}\end{array}\right)\right.}
\end{equation}



\end{document}

答案1

如果我在你的代码中将其更改\usepackage{times}\usepackage{mathptmx}

\begin{equation}
\frac{
  \sum_{ij}\binom{n_{ij}}{2}-\bigl[\sum_{i}\binom{a_{i}}{2} \sum_{j}\binom{b_{j}}{2}\bigr]\big/\binom{n}{2}
}{
  \frac{1}{2}\bigl[\sum_{i}\binom{a_{i}}{2}+\sum_{j}\binom{b_{j}}{2}\bigr]-
  \bigl[\sum_{i}\binom{a_{i}}{2} \sum_{j}\binom{a_{j}}{2}\bigr]
  \big/\binom{n}{2}     
}
\end{equation}

我明白了(为上下文添加了虚拟文本)

在此处输入图片描述

如果我\usepackage{mathptmx}改成

\usepackage{newtxtext,newtxmath}

在此处输入图片描述

如果你想要描述文字,

\begin{equation}
\overbrace{\mathit{ARI}}^{\hidewidth\substack{\text{Adjusted}\\\text{Index}}\hidewidth}=
\frac{
  \overbrace{\textstyle\sum_{ij}\binom{\vphantom{b}n_{ij}}{2}}^{\text{Index}}
  -
  \overbrace{\textstyle\bigl[\sum_{i}\binom{a_{i}}{2} \sum_{j}\binom{b_{j}}{2}\bigr]\big/\binom{n}{2}}%
    ^{\text{Expected Index}}
}{
  \underbrace{\textstyle\frac{1}{2}\bigl[\sum_{i}\binom{a_{i}}{2}+\sum_{j}\binom{b_{j}}{2}\bigr]}%
    _{\text{Max Index}}
  -
  \underbrace{\textstyle\bigl[\sum_{i}\binom{a_{i}}{2} \sum_{j}\binom{a_{j}}{2}\bigr]\big/\binom{n}{2}}%
    _{\text{Expected Index}}
}
\end{equation}

在此处输入图片描述

  1. 有了\hidewidth,“ARI”上方的描述不占用空间;它也被分成两行,不会侵占右侧。

  2. \textstyle是必要的,因为\overbrace\underbrace力量\displaystyle

  3. \vphantom{b}添加将“索引”设置为与其他描述相同的高度。

相关内容