我正在尝试将多个问题排列在一起。
我正在使用以下文件。
\documentclass[11pt]{article}
%comments
%pdflatex, bibtex, pdflatex, pdflatex
\setlength{\droptitle}{-12cm}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{siunitx} %allows SI units by using \SI{unit}
\usepackage{amsmath} %allows \begin{equation} \end{equation}
\newcommand{\ee}{\mathrm{e}}
% \usepackage{mathastext} package to save yourself from having to type lots and lots of \mathrm "wrapper" statements.
\usepackage{geometry}
\usepackage{changepage} %allows you to widen or shorten the page width from the left or the right.
\begin{document}
\subsection{Sputtered ceramic coating on a metal substrate}
\vspace{1em}
The following data are given for questions 1,2 and 3:
\begin{itemize}
\item {$\mathrm{E = \SI{449}{\giga\pascal}} $}
\item {$\mathrm{\alpha_{TiN} = \SI{7.6e-6}{\per\kelvin}} $}
\item {$\mathrm{\mu = \SI{852.81}{\per\centi\metre}} $}
\item {$\mathrm{\nu = 0.190 }$}
\end{itemize}
\vspace{2em}
\noindent 1. \begin{align*}
sin^{2}(\psi_{0}) &= \frac{2\nu}{1 + \nu} \\
&= \frac{2\cdot 0.190}{1+.190}\\
&= 0.319
\end{align*}
\vspace{1em}
\noindent 2.
\begin{align*}
\epsilon_{//}
&= \Delta \alpha \Delta T \\
&= (\alpha_{ss} - \alpha_{TiN}) \cdot (T_{RT} - T_{SP}) \\
&= -3.54\cdot10^{-3}
\end{align*}
\noindent \begin{align*}
\sigma_{//}
&= \frac{E}{1-\nu} \epsilon_{//} \\
&=\SI{-1.96}{\giga\pascal}
\end{align*}
\end{document}
如果我运行此文件,方程式不会对齐到同一位置。我不知道该如何解决。
答案1
像这样
\documentclass[11pt]{article}
\usepackage{siunitx}
\usepackage{amsmath} %allows \begin{equation} \end{equation}
\newcommand{\ee}{\mathrm{e}}
\begin{document}
\subsection{Sputtered ceramic coating on a metal substrate}
\vspace{1em}
The following data are given for questions 1,2 and 3:
\begin{itemize}
\item $\mathrm{E} = \SI{449}{\giga\pascal} $
\item $\alpha_{\mathrm{TiN}} = \SI{7.6e-6}{\per\kelvin} $
\item $\mu = \SI{852.81}{\per\centi\metre} $
\item $\nu = 0.190 $
\end{itemize}
\begin{enumerate}
\item
$\begin{aligned}[t]
\sin^{2}(\psi_{0}) &= \frac{2\nu}{1 + \nu} \\
&= \frac{2\cdot 0.190}{1+.190}\\
&= 0.319
\end{aligned}$
\item
$\begin{aligned}[t]
\epsilon_{//}
&= \Delta \alpha \Delta T \\
&= (\alpha_{ss} - \alpha_{\mathrm{TiN}}) \cdot (T_{\mathrm{RT}} - T_{\mathrm{SP}}) \\
&= -3.54\cdot10^{-3}\\
\sigma_{//}
&= \frac{E}{1-\nu} \epsilon_{//} \\
&=\SI{-1.96}{\giga\pascal}
\end{aligned}$
\end{enumerate}
\end{document}
请注意,您不应该对多字母单词使用数学斜体(\sin
不是sin
,但也是SP
,RT
除非它们是 R 和 T 的乘积,但我认为这里不是这种情况)另外,通常最好让 latex 处理编号,而不是“手动”编号
答案2
据我了解,你的问题可能会得到如下结果:
\documentclass[11pt]{article}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{siunitx} %allows SI units by using \SI{unit}
\usepackage{amsmath} %allows \begin{equation} \end{equation}
\newcommand{\ee}{\mathrm{e}}
\usepackage{geometry}
\begin{document}
\subsection{Sputtered ceramic coating on a metal substrate}
\vspace{1em}
The following data are given for questions 1,2 and 3:
\begin{itemize}
\item {$\mathrm{E = \SI{449}{\giga\pascal}} $}
\item {$\mathrm{\alpha_{TiN} = \SI{7.6e-6}{\per\kelvin}} $}
\item {$\mathrm{\mu = \SI{852.81}{\per\centi\metre}} $}
\item {$\mathrm{\nu = 0.190 }$}
\end{itemize}
\begin{flalign*}
1. && sin^{2}(\psi_{0})
& = \frac{2\nu}{1 + \nu} &&\qquad\qquad\\
&& & = \frac{2\cdot 0.190}{1+.190} &&\\
&& & = 0.319 &&\\[2ex]
2. && \epsilon_{//}
& = \Delta \alpha \Delta T &&\\
&& & = (\alpha_{ss} - \alpha_{TiN})
\cdot (T_{RT} - T_{SP}) &&\\
&& & = -3.54\cdot10^{-3} &&\\[2ex]
3. && \sigma_{//}
& = \frac{E}{1-\nu} \epsilon_{//} &&\\
&& & =\SI{-1.96}{\giga\pascal}
\end{flalign*}
\end{document}