수직 및 수평 라인의 두께 제어

수직 및 수평 라인의 두께 제어

에 관하여이것예를 들어, 현재는 다음과 같습니다.

\documentclass[10pt]{article}

\begin{document}

\arrayrulewidth=0.7pt
\begin{tabular}{|c|c|l|c|c|c|l|}
\cline{1-3}\cline{5-7}
 &  &  &  &  &  &   \\
 &  &  &  &  &  &  \\
 &  &  &  &  &  &  \\
\cline{1-3}\cline{5-7}
 &  &  &  &  &  &  \\
 &  &  &  &  &  &   \\
 &  &  &  &  &  &  \\
\cline{1-3}\cline{5-7}
 &  &  &  &  &  &  \\
 &  &  &  &  &   &  \\
 &  &   &  &  &  &  \\
\cline{1-3}\cline{5-7}
 &  &  &  &  &  &   \\
 &  &   &  &  &  &  \\
 &  &   &  &  &  &  \\
\cline{1-3}\cline{5-7}
\end{tabular}

\end{document} 

이 명령은 \arrayrulewidth=0.7pt수직선과 수평선 모두의 두께를 제어하지만 이제 내부 선(수직 및 수평 모두)의 두께를 줄이고 외부 선의 두께를 유지하려고 합니다.


테이블에 색상을 추가하고 싶었지만 그럴 수 없었습니다. 사용했는데 \arrayrulecolor{[color here]}안쪽 선만 채색하고 테이블 전체를 채색하고 싶습니다.

답변1

부터당신이 요청했어요, 여기에 테이블의 분할 버전(예: 1개가 아닌 2개의 테이블)에 대한 솔루션이 있습니다. 여기서는 사양에서 외부 선을 제거 tabular하고 상자에 포장합니다. efbox규칙 색상, 선 너비 및 여백을 지정할 수 있습니다. 규칙과 표 사이의 간격을 없애고 상자를 꼭 맞게 만들기 위해 여백을 0으로 설정했습니다. 그런 다음 선 너비를 기본값으로 설정 0.7pt하거나 \arrayrulewidth원하는 대로 변경할 수 있습니다. 우리가 해야 할 일은 상자 규칙의 색상과 \arrayrulecolor원하는 색상을 설정하는 것뿐입니다. 여기서는 파란색 음영을 사용합니다.

\documentclass[10pt]{article}
\usepackage[table]{xcolor}
\usepackage{efbox}
\efboxsetup{linecolor=blue!75!black, linewidth=.7pt, margin=0pt}
\begin{document}
\arrayrulecolor{blue!75!black}
\efbox{\begin{tabular}{c|c|l}
  &  &       \\
  &  &      \\
  &  &     \\
  \hline
  &  &       \\
  &  &      \\
  &  &     \\
  \hline
  &  &      \\
  &  &      \\
  &  &     \\
  \hline
  &  &       \\
  &  &     \\
  &  &     \\
\end{tabular}}
\efbox{\begin{tabular}{c|c|l}
  &  &       \\
  &  &      \\
  &  &     \\
  \hline
  &  &       \\
  &  &      \\
  &  &     \\
  \hline
  &  &      \\
  &  &      \\
  &  &     \\
  \hline
  &  &       \\
  &  &     \\
  &  &     \\
\end{tabular}}
\end{document}

2박스에 테이블 2개

답변2

패키지 를 사용할 수 있습니다 boldline. 다음은 1pt 굵은 선의 예입니다.

\documentclass[10pt]{article}
\usepackage{boldline}

\begin{document}

\begin{tabular}{V{2.5}c|c|lV{2.5}cV{2.5}c|c|lV{2.5}}
  \clineB{1-3}{2.5}\clineB{5-7}{2.5}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\
  \cline{1-3}\cline{5-7}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\
  \cline{1-3}\cline{5-7}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\
  \cline{1-3}\cline{5-7}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\[-1pt]
  \clineB{1-3}{2.5}\clineB{5-7}{2.5}
\end{tabular}

\end{document} 

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

컬러 라인의 경우에는 작동하지 않습니다. hhline이중선과 선 사이의 공백을 색칠하는 해결 방법만 제안할 수 있습니다 .

\documentclass[10pt]{article}
\usepackage{array, colortbl, xcolor, hhline}

\begin{document}

\setlength\doublerulesep{0.2pt}\arrayrulecolor{red}\doublerulesepcolor{red}
\begin{tabular}{!{\color{red}\vrule width1pt}c|c|l!{\color{red}\vrule width1pt}c!{\color{red}\vrule width1pt}c|c|l!{\color{red}\vrule width1pt}}
  \hhline{|===|>{\arrayrulecolor{white}\doublerulesepcolor{white}}~>{\arrayrulecolor{red}\doublerulesepcolor{red}}|:===|}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\
  \cline{1-3}\cline{5-7}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\
  \cline{1-3}\cline{5-7}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\
  \cline{1-3}\cline{5-7}
    & & & & & & \\
    & & & & & & \\
    & & & & & & \\
  \hhline{===>{\arrayrulecolor{white}\doublerulesepcolor{white}}~%
  >{\arrayrulecolor{red}\doublerulesepcolor{red}}|:===}
\end{tabular}

\end{document} 

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

관련 정보