테이블 내부에서 >{}는 무엇을 의미하나요?

테이블 내부에서 >{}는 무엇을 의미하나요?

누구든지 이것이 무엇을 하는지 말해 줄 수 있나요? 대부분의 내용을 이해했다고 생각합니다.

\newenvironment{keywords}{%
  \renewcommand{\arraystretch}{1.1}

  \begin{tabular}{>{}l>{}p{13cm}} 
}{%
  \end{tabular}
}

답변1

>{<stuff>}<col spec>tabular또는 열 사양 내에서는 의 시작 부분에 array삽입됩니다 . 에 의해 소개됩니다.<stuff><col spec>array패키지. 예로서,

\begin{tabular}{>{\textbullet\space}l}
  First \\ Second \\ Third
\end{tabular}

세 개의 항목이 포함된 목록과 유사한 항목을 생성합니다 tabular.

귀하의 상황에서는 <stuff>비어 있으므로 아무 작업도 수행하지 않습니다(제거할 수도 있음).

답변2

>{<content>}테이블 형식 매개변수 내의 명령은 <content>다음 열의 각 셀에 대해 실행(명령인 경우)되거나 표시(텍스트인 경우)됨을 의미합니다(해당 유형은 다음 문자 -여기 lp-로 정의됨). 예를 들어 \Large첫 번째 항목 안에 명령을 추가하고 >{}만들면 >{\Large}키워드의 첫 번째 열(해당 이름)이 표 형식에서 Large로 표시됩니다.

시도 해봐:

\documentclass[]{article}
\usepackage{array}
\newenvironment{keywords}{%
  \renewcommand{\arraystretch}{1.1}

  \begin{tabular}{>{\Large}l>{}p{13cm}} 
}{%
  \end{tabular}
}
\begin{document}

\begin{keywords}
 test & Here is a long keyword that will exceed one line and break to the second one\\
Another test & Here is a long keyword that will exceed one line and break to the second one\\
\end{keywords}
\end{document}

비어 있기 때문에 거기에 아무것도 추가하지 않으므로 아무것도 표시되거나 실행되지 않습니다.

@{}대신 열 사이의 추가 공간을 제거 하면 다음과 같이 나타납니다.

노력하다:

\documentclass[]{article}
\usepackage{array}
\newenvironment{keywords}{%
  \renewcommand{\arraystretch}{1.1}

  \begin{tabular}{>{}l@{}p{13cm}} 
}{%
  \end{tabular}
}
\begin{document}

\begin{keywords}
 test & Here is a long keyword that will exceed one line and break to the second one\\
Another test & Here is a long keyword that will exceed one line and break to the second one\\
\end{keywords}
\end{document}

관련 정보