将方程式与左边距对齐

将方程式与左边距对齐

在附加的 MWE 中:

\documentclass[11pt,fleqn]{book} % Default font size and left-justified equations

\usepackage{etex}
\reserveinserts{28}

\usepackage[svgnames]{xcolor} % Required for specifying colors by name
\definecolor{ocre}{RGB}{243,102,25} % Define the orange color used for highlighting throughout the
\definecolor{mygray}{RGB}{243,243,244}

%========================================================================================
%   Font Settings
%========================================================================================

\usepackage{avant} % Use the Avantgarde font for headings
\usepackage{mathptmx} % Use the Adobe Times Roman as the default text font together with math symbols
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\usepackage{calc} % For simpler calculation - used for spacing the index letter headings correctly
\usepackage{textcomp} % Text Companion fonts which provide many text symbols in the TS1 encoding.

%========================================================================================
%   Math Formulas
%========================================================================================

\usepackage{empheq}
\usepackage[font={color=ocre,bf},figurename=Fig.,labelfont={it}]{caption}
\usepackage[framemethod=default]{mdframed}
\usepackage{mathtools}
\usepackage[most]{tcolorbox}
\tcbset{myformula/.style={
  arc=0pt,
  outer arc=0pt,
  %colback=ocre!10,
  colback=mygray,
  colframe=ocre,
  boxrule=0.8pt,
  left=2pt,
  right=2pt,
  highlight math style={
    arc=0pt,
    outer arc=0pt,
    colback=mygray,
    colframe=red.
    }
  }
}

\newenvironment{spread}[1]{%
  \advance\jot#1% indeed
  }{%
\ignorespacesafterend
}

\usepackage{graphicx}

\begin{document}
\noindent
This is just some text to show the text lines before the align environment.
\begin{flalign*}
  &T1~&-~& \mbox{This is an explanation of equaion 1} \\
  &T2~&-~& \mbox{This is the explanation of another equ} \\
  &T2T3~&-~& \dfrac{Test}{Test2}
\end{flalign*}

\begin{tabular}{lll}
  T1 & - & This is an explanation of equaion 1 \\
  T2 & - & This is the explanation of another equ \\
  T2T3 & - & $\dfrac{Test}{Test2}$ \\
\end{tabular}

\end{document} 

我该如何将三个点对齐,如图所示,但没有那么多空白:

在此处输入图片描述

添加了表格环境,但是现在如何使表格与左边距对齐?

答案1

如果我理解正确的话,您希望获得如下内容:

在此处输入图片描述

这是我得到上面的图片:

\documentclass[11pt,fleqn,border=2mm,preview]{standalone} 
    \usepackage{mathptmx}
    \usepackage{microtype}
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}

    \usepackage{empheq,tabularx}
\begin{document}
\noindent
This is just some text to show the text lines before the align environment.
    \begin{center}
\begin{tabularx}{\hsize}{@{}>{$}l<{$} >{$-$\ }X @{}}
T1      &   This is an explanation of equation 1        \\
T       &   This is the explanation of another equation \\
T2T3    &   $\dfrac{Test}{Test2}$
\end{tabularx}
    \end{center}
\end{document} 

相关内容