
답변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
나는 환경 내의 단일 환경을 사용합니다 equation
. 나는 또한 단어와 두문자어에 \mathrm
and 를 사용할 것입니다.\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}