
나는 숫자를 정렬하고 기본적으로 선택 사항에 답하기 위해 표 형식을 사용하고 있습니다. 각 행에는 (A), (B) 등의 번호가 매겨져 있습니다. 행 레이블과 첫 번째 열 사이의 공간을 줄이는 방법이 있습니까?
\newcounter{ans}
\renewcommand\theans{\Alph{ans}}
\newcommand\anslabel{(\theans)}
\setcounter{ans}{0}
\begin{tabular}{@{}>{\stepcounter{ans}(\theans)}lrr@{.}l}
&$-2$ \\
&$-1$ \\
&$0.8$ \\
&$1$ \\
&$2.3$ \\
\end{tabular}
답변1
항상 포스팅해주세요완벽한사용된 모든 패키지를 보여주는 문서. 당신이 사용하고 있기 때문에 array
나는 또한 $
프리앰블에 삽입하여 두 번째 열은 수학 모드입니다. @{}
기본 열 간 공백을 제거하고 이 예에서는 이를 다음으로 대체했습니다.\hspace{1pt}
\documentclass{article}
\usepackage{array}
\newcounter{ans}
\renewcommand\theans{\Alph{ans}}
\newcommand\anslabel{(\theans)}
\begin{document}
\setcounter{ans}{0}
\begin{tabular}{
@{}>{\stepcounter{ans}(\theans)}l
@{\hspace{1pt}}>{$}r<{$}
r@{.}l
}
&-2 \\
&-1 \\
&0.8 \\
&1 \\
&2.3
\end{tabular}
\end{document}