내 '표 형식' 환경에 추가 점이 있습니다.

내 '표 형식' 환경에 추가 점이 있습니다.

이 테이블에는 떠 있는 것처럼 보이는 세 개의 섹션(맨 위 행, 왼쪽 열, 본문)이 있습니다. 이것이 내가 지금까지 가지고 있는 것입니다. 대부분 작동하지만 왼쪽 상단에 있어서는 안되는 점이 있습니다. 이것을 제거하는 방법이 있나요?

\documentclass[12pt]{article}

\usepackage{fontspec}
\setmainfont{Arial}

\usepackage{hhline}

\begin{document}
    \begin{tabular}{|l||c|c|c|}
        \hhline{~|---}
        \multicolumn{1}{l|}{} &  &  &  \\
        \hhline{-::===}
         &  &  &  \\
        \hhline{-||---}
         &  &  &  \\
        \hhline{-||---}
         &  &  &  \\
        \hhline{-||---}
    \end{tabular}
\end{document}

답변1

해결 방법은 다음과 같습니다(배경이 흰색인 경우에만 작동함).

\documentclass[12pt]{article}
\usepackage{hhline}
\usepackage{colortbl}

\begin{document}
    \begin{tabular}{|l||c|c|c|}
        \hhline{~|---}
        \multicolumn{1}{l|}{} &  &  &  \\
        \hhline{->{\arrayrulecolor{white}}:>{\arrayrulecolor{black}}:===}
        \noalign{\vspace{-\arrayrulewidth}}
         &  &  &  \\
        \hhline{-||---}
         &  &  &  \\
        \hhline{-||---}
         &  &  &  \\
        \hhline{-||---}
    \end{tabular}
\end{document}

위 코드의 출력

답변2

표준 hhline방법으로는 피할 수 없을 수도 있습니다. 반면에 팬텀 컬럼이 해당 작업을 수행합니다.

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

\documentclass[12pt]{article}
\usepackage{hhline,array}

\begin{document}

\begin{tabular}{|l|@{}wc{\doublerulesep}@{}|c|c|c|}
\hhline{~~|---|}
\multicolumn{1}{l}{} &  &  &  &  \\
\hhline{~~|---|}
\noalign{\vskip\doublerulesep}
\hhline{|-|~|---|}
&  &  &  & \\
\hhline{|-|~|---|}
&  &  &  & \\
\hhline{|-|~|---|}
&  &  &  & \\
\hhline{|-|~|---|}
\end{tabular}

\end{document}

관련 정보