이 모든 방정식을 하나의 그룹으로 그룹화하고 Missing $ 삽입 오류 없이 작성하려면 어떻게 해야 합니까? ...gy}

이 모든 방정식을 하나의 그룹으로 그룹화하고 Missing $ 삽입 오류 없이 작성하려면 어떻게 해야 합니까? ...gy}

여기에 제가 작성하고 싶은 방정식이 있지만 제대로 작동하지 않습니다.

여기에 이미지 설명을 입력하세요

내가 지금까지 시도한 것은 다음과 같습니다.

    \begin{equation} \label{eq:3.2}
     & \[(EQE)= \frac{photons_{out}}{electrons_{in}}\]

     & = \frac{radiant flux / photon energy}{injected current / elementary charge}
        \end{equation}

답변1

\[ \]다른 수학 환경에 수학 모드를 중첩하고 있습니다 {equation}. 이는 권장되는 방정식 버전입니다.

몇 가지 참고사항:

  • 숫자는 방정식의 마지막 줄에 와야 합니다.
  • 텍스트를 표시하려면 \textfrom을 사용하세요 .amsmath
  • alignfrom을 사용하여 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. 나는 또한 단어와 두문자어에 \mathrmand 를 사용할 것입니다.\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} 

관련 정보