
答え1
\[ \]
数式モードを別の数式環境にネストしています{equation}
。これは方程式の推奨バージョンです。
いくつかの注意点:
- 数字は方程式の最後の行に入力する必要があります。
- テキストを表示するには
\text
from を使用します。amsmath
- 異なる行に方程式を配置するには、
align
from を使用します。amsmath
- ラベルには数字を使用しないでください。 には意味のあるラベルを使用してください
\label
。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
\text{EQE}&=\frac{\#\,\text{photons}_{\text{out}}}{\#\,\text{electrons}_\text{in}}\nonumber\\
&=\frac{\text{radiation flux}/\text{photon energy}}{\text{injected current}/\text{elementary charge}}\nonumber\\
&=\frac{\Phi_e/E_{\text{ph}}}{I_{\text{in}/e}}=\frac{\Phi_e\times e}{I_{\text{in}\times E_{\text{ph}}}}\nonumber\\
&=\frac{\pi\times A\times L_{\text{v}}\times e\times \lambda_{\text{average}}}{K_{\text{m}}\times V(\lambda_{\text{peak}})\times I_{\text{in}}\times hc}\label{eq:somename}
\end{align}
\end{document}
答え2
aligned
環境内では単一の環境を使用します。単語や頭字語にはandequation
も使用します。\mathrm
\textnormal
\documentclass{article}
\usepackage{amsmath} % for 'aligned' environment
\usepackage{newpxtext,newpxmath} % optional
\numberwithin{equation}{section} % optional
\begin{document}
\setcounter{section}{4} % just for this example
\setcounter{equation}{4}
\begin{equation} \label{eq:EQE}
\begin{aligned}
\mathrm{EQE}
&= \frac{\textnormal{\#photons}_{\textnormal{out}}}{\textnormal{\#electrons}_{\textnormal{in}}}\\
&= \frac{\textnormal{radiant flux}/\textnormal{photon energy}}{\textnormal{injected current}/\textnormal{elementary charge}}
\end{aligned}
\end{equation}
\end{document}