\documentclass[a4paper, 11pt]{article}
%Paragraph jumps and indentation
\setlength{\parindent}{1.27cm}
%Border
\usepackage[left=0.5in, right=0.5in, top=0.5in, bottom=0.5in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\raisebox{-0.8\headsep}{\thepage}} % lowering the right header
\renewcommand{\headrulewidth}{0pt}
%Packages
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{titlesec}
\usepackage{caption}
\captionsetup{justification=centering}
\usepackage{float}
%Images
\usepackage{graphicx}
\usepackage{csquotes}
\graphicspath{ {./images/} }
\usepackage{wrapfig}
\usepackage{float}
\newfloat{chart}{tbph}{loc}
\floatname{chart}{Graph}
%Tables
\usepackage{multirow}
\usepackage{array}
\usepackage{tabu}
\usepackage{caption}
%Equation numbering
\counterwithin{equation}{section}
\usepackage{hyperref}
\urlstyle{same}
\usepackage{booktabs,array}
\usepackage[table]{xcolor}
\usepackage{colortbl}
\usepackage{makecell}
\usepackage{tabularx}
\usepackage{adjustbox}
\begin{document}
\begin{align*}
\Delta m_{\textnormal{exp}} &=\frac{m_{\textnormal{exp,max}}-m_{\textnormal{exp,min}}}{2}\\
\Delta m_{\textnormal{exp}}&=\frac{\left(-5.684 \times 10^{-4}\right)-\left(-4.823 \times 10^{-4}\right)}{2}\\
\Delta m_{\textnormal{exp}}&=-4.305\times10^{-5}
\end{align*}
\begin{align*}
\Delta y_{\textnormal{exp}} &=\frac{y_{\textnormal{exp,max}}-y_{\textnormal{exp,min}}}{2}\\
\Delta m_{\textnormal{exp}}&=\frac{1.003-0.9800}{2}\\
\Delta m_{\textnormal{exp}}&=0.0115
\end{align*}
\begin{align*}
\Delta x_{\textnormal{exp}} &=\frac{x_{\textnormal{exp,min}}-y_{\textnormal{exp,max}}}{2}\\
\Delta m_{\textnormal{exp}}&=\frac{2031.9\ldots -1764.6\ldots}{2}\\
\Delta x_{\textnormal{exp}}&=133.6
\end{align*}
\end{document}
答案1
一种可能性是使用aligned
表中的环境。在方程式中分别使用数学运算符和代替\textnormal{exp}
和。对于和类似的表达式,更确切地说是使用符号:textnormal{max}
\exp
\max
-4.823 \times 10^{-4}
siunitx
\num{-5.684e-4}
经过这些改变,代码变得更短更清晰:
\documentclass[a4paper, 11pt]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{nccmath}
\counterwithin{equation}{section}
\usepackage{tabularray}
\UseTblrLibrary{siunitx}
\usepackage{hyperref}
\urlstyle{same}
\begin{document}
\[
\begin{tblr}{colspec = {@{} X[1.2,c] X[0.9,c] X[0.9,c] @{}} }
\begin{aligned}
\Delta m_{\exp} & = \mfrac{m_{\exp,\max} - m_{\exp,\min}}{2} \\
\Delta m_{\exp} & = \mfrac{(\num{-5.684e-4}) - (\num{-4.823e-4})}{2} \\
\Delta m_{\exp} &=-4.305\times10^{-5}
\end{aligned}
& \begin{aligned}
\Delta y_{\exp} & = \mfrac{y_{\exp,\max} - y_{\exp,\min}}{2} \\
\Delta m_{\exp} & = \mfrac{1.003 - 0.9800}{2} \\
\Delta m_{\exp} & = 0.0115
\end{aligned}
& \begin{aligned}
\Delta x_{\exp} & = \mfrac{x_{\exp,\min} - y_{\exp,\max}}{2} \\
\Delta m_{\exp} & = \mfrac{2031.9\ldots - 1764.6\ldots}{2} \\
\Delta x_{\exp} & = 133.6
\end{aligned}
\end{tblr}
\]
\end{document}
答案2
使用\flalign*
环境。
答案3
colortbl
这是你想要的吗?我让三个方程式在必要时使用中等大小的分数来适应文本宽度。顺便说一句,如果你使用xcolor
选项加载,则无需加载table
,因为后者会为你完成。
\documentclass[a4paper, 11pt]{article}
%Paragraph jumps and indentation
\setlength{\parindent}{1.27cm}
%Border
\usepackage[left=0.5in, right=0.5in, top=0.5in, bottom=0.5in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\raisebox{-0.8\headsep}{\thepage}} % lowering the right header
\renewcommand{\headrulewidth}{0pt}
%Packages
%\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{nccmath, amsfonts}
\usepackage{titlesec}
\usepackage{caption}
\captionsetup{justification=centering}
\usepackage{float}
%Images
\usepackage{graphicx}
\usepackage{csquotes}
\graphicspath{ {./images/} }
\usepackage{wrapfig}
\usepackage{float}
\newfloat{chart}{tbph}{loc}
\floatname{chart}{Graph}
%Tables
\usepackage{multirow}
\usepackage{array}
\usepackage{tabu}
\usepackage{caption}
%Equation numbering
\counterwithin{equation}{section}
\usepackage{hyperref}
\urlstyle{same}
\usepackage{booktabs,array}
\usepackage[table]{xcolor}
\usepackage{makecell}
\usepackage{tabularx}
\usepackage{adjustbox}
\begin{document}
\begin{align*}
\Delta m_{\textnormal{exp}} &=\frac{m_{\textnormal{exp,max}}-m_{\textnormal{exp,min}}}{2}
& \Delta y_{\textnormal{exp}} &=\frac{y_{\textnormal{exp,max}}-y_{\textnormal{exp,min}}}{2}
& \Delta x_{\textnormal{exp}} &=\frac{x_{\textnormal{exp,min}}-y_{\textnormal{exp,max}}}{2}\\
\Delta m_{\textnormal{exp}}&=\mfrac{\left(-5.684 \times 10^{-4}\right)-\left(-4.823 \times 10^{-4}\right)}{2} & \Delta m_{\textnormal{exp}}&=\frac{1.003-0.9800}{2} & \Delta m_{\textnormal{exp}}&=\frac{2031.9\ldots -1764.6\ldots}{2}\\
\Delta m_{\textnormal{exp}}&=-4.305\times10^{-5} & \Delta m_{\textnormal{exp}}&=0.0115 &
\Delta x_{\textnormal{exp}}&=133.6
\end{align*}
\end{document}