
방정식을 작성하고 회귀를 정렬했지만 회귀 아래에 숫자가 표시됩니다. 어떻게 하면 오른쪽으로 정렬할 수 있나요?
이것은 내가 사용하는 코드입니다.
\begin{equation}
\label{reg5}
\begin{align}
\begin{small}PRODUCTION_{i,t} = b_0 + b_1FORECAST_{i,t} + b_2PEER\_FORECAST_{i,t} +
b_3FORECAST_{i,t} * CEO\_TURNOVER_{t-1} +
b_4PEER\_FORECAST_{i,t} * CEO\_TURNOVER_{t-1} + b_5UNEMP_{t-1} +
b_6HORIZON_t\end{small}
\end{align}
\end{equation}
누군가 나를 도와줄 수 있나요?
답변1
Werner의 답변에 대해 자세히 설명합니다(그의 수정구슬에 대한 칭찬과 함께… :-)
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc} % not actually necessary, but recommended
\usepackage[width=14cm]{geometry} % just for this example
\usepackage{amsmath}
\begin{document}
Text before.
\begin{equation}
\begin{split}
\text{PRODUCTION}_{i,t} &=
b_0 + b_1 \text{FORECAST}_{i,t} + b_2 \text{PEER\_FORECAST}_{i,t} \\
&\qquad + b_3 \text{FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&\qquad + b_4 \text{PEER\_FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&\qquad + b_5 \text{UNEMP}_{t-1} + b_6 \text{HORIZON}_t
\end{split}
\end{equation}
Text after.
\end{document}
(출력을 본 후 나는 \qquad
이상을 선호한다고 결정했습니다 \quad
). 출력은 다음과 같습니다.
덧셈
@egreg의 제안에 따라 코드는 다음과 같습니다.
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc} % not actually necessary, but recommended
\usepackage[width=14cm]{geometry} % just for this example
\usepackage{amsmath}
\begin{document}
Text before.
\begin{equation}
\begin{split}
\text{PRODUCTION}_{i,t} =
b_0 &+ b_1\,\text{FORECAST}_{i,t} + b_2\,\text{PEER\_FORECAST}_{i,t} \\
&+ b_3\,\text{FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&+ b_4\,\text{PEER\_FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&+ b_5\,\text{UNEMP}_{t-1} + b_6\,\text{HORIZON}_t
\end{split}
\end{equation}
Text after.
\end{document}
이는 다음과 같은 출력을 제공합니다.
답변2
아마도 다음과 같은 것을 찾고 있을 것입니다.
\documentclass{article}
\usepackage[margin=1in]{geometry}% Just for this example
\usepackage{amsmath}
\begin{document}
\begin{align}
\text{PRODUCTION}_{i,t} &= b_0 + b_1 \text{FORECAST}_{i,t} + b_2 \text{PEER\_FORECAST}_{i,t} + \nonumber \\
&\phantom{{}={}} b_3 \text{FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} + \nonumber \\
&\phantom{{}={}} b_4 \text{PEER\_FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} + b_5 \text{UNEMP}_{t-1} + \nonumber \\
&\phantom{{}={}} b_6 \text{HORIZON}_t
\end{align}
\end{document}
코드에 몇 가지 문제가 있습니다.
align
내부 를 사용할 수 없습니다equation
.안에 빈 줄을 두지 마십시오
align
.수학 모드(예: ) 내에서 텍스트 관련 글꼴 크기 조정을 사용하지 마세요
\small
.small
기술적으로는 환경이 아닙니다.
align
를 사용 하면 번호 매기기를 억제할 수 있습니다 \nonumber
.