방정식과 방정식 번호 사이에 \쿼드 공간을 가운데로 설정하는 방법

방정식과 방정식 번호 사이에 \쿼드 공간을 가운데로 설정하는 방법

\quad중심 출력으로 방정식과 방정식 번호 사이의 공백을 설정하는 방법 , 즉 방정식이 중심에 맞춰질 것입니다. 출력은 아래와 같아야 합니다.

A + B (1)

A + B (2)

답변1

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

\documentclass{article}
\usepackage{amsmath}
\begin{document}

The usual setting (in \LaTeX\ and generally) is to have the numbers flush to the edge
\begin{align}
    A &+ b \\
    Ax &+ zz
\end{align}

But if you really need this layout you can do the following
(replacing 1em by whatever space you need):

\newcommand\mytag{\hspace*{1em}\refstepcounter{equation}(\theequation)}
\[
\begin{aligned}
    A &+ b &\mytag\\
    Ax &+ zz &\mytag
\end{aligned}
\]

\end{document}

관련 정보