创建数学方程式网格,计算一组对齐方程式

创建数学方程式网格,计算一组对齐方程式

我开始附录(与main.tex我加载包的地方分开):

\documentclass{article}
\renewcommand\thefigure{\thesection.\arabic{figure}}
% your preamble here
\begin{document}
\chapter{Appendix}   
\setcounter{figure}{0} 

\begin{align}
  E_1&=A+B \label{eq:1}\\
   \begin{split}
    E_2&=(C-D)E_1 \label{eq:2}\\
    &\quad +[(1-R)+R(1-Y)\\
    &\quad +\pi(1-\delta)]E_2\\
    &\quad +F\cdot E_3
   \end{split}\\
  E_3 &=(\pi\cdot \chi)-(R\cdot E_1)-(RY\delta\cdot E_2) \label{eq:3}
\end{align
}

看起来像:

在此处输入图片描述

然后我想要一个单独的方程网格,从这个方程网格继续下去,改编自这个答案

但是,由于这些是图形的子图部分,因此它们全部的集合目前都进入了我的图形列表,而不是每个都单独进入我的方程式列表。

我仍然想保留方程组的图形标题(进入我的图表列表),但希望子图内的每个标题都出现在我的方程列表中,并进行编号,例如将每个成本函数标记为(8.5)(8.6)(8.7)

接下来的当前代码:

\begin{figure}
\centering
\begin{subfigure}[b]{.45\linewidth}
\centering
  $$C_cip = {V_cp - V_ci}$$
\caption{VD}\label{fig:cost1}
\end{subfigure}
\begin{subfigure}[b]{.45\linewidth}
\centering
  $$C_cip = {|V_cp - V_ci|}$$
\caption{AVD}\label{fig:cost2}
\end{subfigure}
\begin{subfigure}[b]{.45\linewidth}
  \centering
  $$C_cip = \frac{V_cp - V_ci}{V_ci}$$
\caption{PE}\label{fig:cost3}
\end{subfigure}
\begin{subfigure}[b]{.45\linewidth}
  \centering
  $$C_cip = \frac{|V_cp - V_ci|}{|V_ci|}$$
\caption{APE}\label{fig:cost3}
\end{subfigure}
\begin{subfigure}[b]{.45\linewidth}
  \centering
  $$C_cip = \frac{|V_cp - V_ci|}{|V_ci|}$$
\caption{APE}\label{fig:cost3}
\end{subfigure}
\caption{Cost functions}
\label{fig:costs}
\end{figure}
\end{document}

显示如下内容:

在此处输入图片描述

此外,我不确定为什么我的标题出现在每个方程的最左侧而不是正下方。有关完整信息,以下是我之前加载的一组包和设置begin{document}

\documentclass{report}
% Not sure what this is for
\setcounter{secnumdepth}{4}
% For quotes in chapters
\usepackage{epigraph}
% This is for named paragraphs
\usepackage[explicit]{titlesec}
% This is for aligned equations
\usepackage{amssymb}
\usepackage{ulem}
\titleformat{\paragraph}[runin]
  {\normalfont\normalsize\bfseries}{}{15pt}{{\theparagraph\hspace*{1em}#1.}}
\titleformat{name=\paragraph,numberless}[runin]
  {\normalfont\normalsize\bfseries}{}{15pt}{{#1.}}
%  This is for the trees
\usepackage{forest}
% This is for input encoding
\usepackage[utf8]{inputenc}
% This is for a list of equations
\usepackage{tocloft}
% This is for binding
\usepackage[]{geometry}
% a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm
% This is for a list of equations
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\setlength{\cftmyequationsnumwidth}{2.5em}% Width of equation number in List of Equations

 \usepackage{array,ltablex, makecell}%
\renewcommand\theadfont{\normalsize\bfseries}
\usepackage[]{multirow}
% This is for quotes
\usepackage[autostyle]{csquotes}
% This is for tables
\usepackage{tabulary}
\usepackage{ragged2e}
% This is formatting for long tables
\usepackage{longtable,array,ragged2e}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\usepackage{array}
% This is for images
\usepackage{graphicx}
\usepackage{booktabs,dcolumn,caption}
\captionsetup{labelsep=newline,singlelinecheck=false} % optional
\newcolumntype{d}[1]{D{.}{.}{#1}} % "decimal" column type
\renewcommand{\ast}{{}^{\textstyle *}} % for raised "asterisks"
% This overrides warnings like https://tex.stackexchange.com/questions/52576/difference-between-bookmark-levels-greater-than-one-what-does-this-mean
\usepackage{bookmark}
% This is for maths
\usepackage{amsmath}
% This allows for subcaptions in grids
\usepackage{subcaption}
\usepackage{standalone}
% This is for bibliographies
\usepackage[round]{natbib}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

% This is for hyperlinks
\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,      
    urlcolor=cyan,
}

\urlstyle{same}

% This is a custom command to make declaration
\newcommand \makedeclaration {%
\clearpage%
I, \@author , confirm that the work presented in this thesis is my own.
Where information has been derived from other sources, I confirm that this has been indicated in the work.
\gdef \@author{}%
\clearpage%
}

% This is to make glossaries
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{apeg}{name={APE},
    description={Absolute Percentage Error is the absolute percentage difference between one value and another}}

%%% define the acronym and use the see= option
\newglossaryentry{ape}{type=\acronymtype, name={APE}, description={Absolute Percentage Error}, first={Absolute Percentage Error (APE)\glsadd{apeg}}, see=[Glossary:]{apeg}}
% This is to create quotes
\usepackage{gb4e}
\noautomath

\begin{document}

答案1

可能像这样吗?

\documentclass{report}
\usepackage{amsmath}
\usepackage{subcaption}

% http://tex.stackexchange.com/a/173104/10995
\usepackage{tocloft}
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
\DeclareRobustCommand\myequations[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\setlength{\cftmyequationsnumwidth}{2.5em}

\begin{document}

\listoffigures
\listofmyequations

\begin{align}
  E_1&=A+B \label{eq:1}\\
  \begin{split}
    E_2&=(C-D)E_1 \label{eq:2}\\
    &\quad +[(1-R)+R(1-Y)\\
    &\quad +\pi(1-\delta)]E_2\\
    &\quad +F\cdot E_3
  \end{split}\\
  E_3 &=(\pi\cdot \chi)-(R\cdot E_1)-(RY\delta\cdot E_2) \label{eq:3}
\end{align}

\begin{figure}[b]
  \centering
  \begin{subfigure}[b]{.45\linewidth}
    \begin{equation}
      C_cip = V_cp - V_ci
    \end{equation}
    \myequations{VD}
    \caption{VD}
    \label{fig:cost1}
  \end{subfigure}
  \begin{subfigure}[b]{.45\linewidth}
    \begin{equation}
      C_cip = |V_cp - V_ci|
    \end{equation}
    \myequations{AVD}
    \caption{AVD}
    \label{fig:cost2}
  \end{subfigure}
  \begin{subfigure}[b]{.45\linewidth}
    \begin{equation}
      C_cip = \frac{V_cp - V_ci}{V_ci}
    \end{equation}
    \myequations{PE}
    \caption{PE}
    \label{fig:cost3}
  \end{subfigure}
  \begin{subfigure}[b]{.45\linewidth}
    \begin{equation}
      C_cip = \frac{|V_cp - V_ci|}{|V_ci|}
    \end{equation}
    \myequations{APE}
    \caption{APE}
    \label{fig:cost3}
  \end{subfigure}
  \begin{subfigure}[b]{.45\linewidth}
    \begin{equation}
      C_cip = \frac{|V_cp - V_ci|}{|V_ci|}
    \end{equation}
    \myequations{APE}
    \caption{APE}
    \label{fig:cost3}
  \end{subfigure}
  \caption{Cost functions}
  \label{fig:costs}
\end{figure}

\end{document}

在此处输入图片描述

相关内容