尝试将其显示为两列带标签的方程式,但是垂直方向的列没有对齐。有人知道如何修复吗?
\documentclass[11pt]{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{natbib} % used for bibliography
\usepackage{ragged2e}
\usepackage{tabularx} %more advanced tables
\usepackage{float}
\usepackage{geometry}
\usepackage{fontspec}
\usepackage{hyphenat}
\usepackage{hyperref}
\usepackage[font={small,it}]{caption}
\usepackage{subcaption}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{titlesec}
\begin{document}
To calculate these properties the following equations were used:
\begin{multicols}{2}
\begin{align}
&\text{Axial Strain:}&\epsilon_{a}&=\frac{\delta L}{L_{0}}\label{eq:AxialStrain} \\
&\text{Volumetric Strain:}&\epsilon_{p}&=-\frac{\delta V}{V_{0}}\label{eq:VolumetricStrain}\\
&\text{Radial Strain:}&\epsilon_{r}&=\frac{\epsilon_p-\epsilon_a}{2}\label{eq:RadialStrain}\\
&\text{Deviator Strain:}&A&=\epsilon_a+\frac{\epsilon_p}{3}\label{eq:DeviatorStrain}
\end{align}
\begin{align}
&\text{Adjusted Area:}&A&=A_0\frac{1-\epsilon_p}{1-\epsilon_a}\label{eq:AdjustedArea}\\
&\text{Radial Stress:}&\sigma_r&=\sigma_3\label{eq:RadialStress}\\
&\text{Deviator Stress:}&q&=\frac{P}{A}\label{eq:DeviatorStress}\\
&\text{Axial Stress:}&\sigma_a&=\sigma_r+q\label{eq:AxialStress}\\
&\text{Volumetric Stress:}&p&=\frac{\sigma_a+2\sigma_r}{3}\label{eq:VolumetricStress}
\end{align}
\end{multicols}
\end{document}
我一开始使用一个对齐方式,但这样只会将所有方程式放在一列中。使用对齐方式而不使用多列方式的问题在于,您只能为每一行设置一个标签,而不能为每个方程式设置一个标签
答案1
浮动(5)\\
来自\label{eq:DeviatorStrain}
LaTeX 方程式不应以新段落开头,这里的情况就是如此,因为它们被括在 中multicols
。只需\noindent
在前面添加即可。
\documentclass[11pt]{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{natbib} % used for bibliography
\usepackage{ragged2e}
\usepackage{tabularx} %more advanced tables
\usepackage{float}
\usepackage{geometry}
\usepackage{fontspec}
\usepackage{hyphenat}
\usepackage{hyperref}
\usepackage[font={small,it}]{caption}
\usepackage{subcaption}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{titlesec}
\begin{document}
To calculate these properties the following equations were used:
\begin{multicols}{2}
\noindent
\begin{align}
&\text{Axial Strain:}&\epsilon_{a}&=\frac{\delta L}{L_{0}}\label{eq:AxialStrain} \\
&\text{Volumetric Strain:}&\epsilon_{p}&=-\frac{\delta V}{V_{0}}\label{eq:VolumetricStrain}\\
&\text{Radial Strain:}&\epsilon_{r}&=\frac{\epsilon_p-\epsilon_a}{2}\label{eq:RadialStrain}\\
&\text{Deviator Strain:}&A&=\epsilon_a+\frac{\epsilon_p}{3}\label{eq:DeviatorStrain}
\end{align}
\begin{align}
&\text{Adjusted Area:}&A&=A_0\frac{1-\epsilon_p}{1-\epsilon_a}\label{eq:AdjustedArea}\\
&\text{Radial Stress:}&\sigma_r&=\sigma_3\label{eq:RadialStress}\\
&\text{Deviator Stress:}&q&=\frac{P}{A}\label{eq:DeviatorStress}\\
&\text{Axial Stress:}&\sigma_a&=\sigma_r+q\label{eq:AxialStress}\\
&\text{Volumetric Stress:}&p&=\frac{\sigma_a+2\sigma_r}{3}\label{eq:VolumetricStress}
\end{align}
\end{multicols}
\end{document}