
이 테이블의 테두리/경계 상자 선의 오른쪽을 추가하려고 하는데 텍스트를 회전하지 않은 다른 테이블에서는 발생하지 않지만 삭제되는 것 같습니다. "Industry Associations" 뒤에 두 줄을 추가하고 싶습니다. 내가 이해한 바에 따르면 ||
\begin{tabular}{||p{10cm}cccccccccc||}
경계선을 적용해야 합니다.
암호:
\begin{landscape}
\renewcommand*\rot[2]{\multicolumn{1}{R{#1}{#2}}}% no optional argument here, please!
\begin{tabular}{||p{10cm}cccccccccc||}
\hline\hline
NEEDS \& EXPECTATIONS OF INTERESTED PARTIES & \rot{90}{1em}{Employees \& Contractors} & \rot{90}{1em}{Customers, Clients \& Suppliers} & \rot{90}{1em}{Regulators} & \rot{90}{1em}{Registrar} & \rot{90}{1em}{Generators} & \rot{90}{1em}{General Public, Media \& NGOs} & \rot{90}{1em}{Neighboring Businesses} & \rot{90}{1em}{Insurers} & \rot{90}{1em}{Emergency Response Services} & \rot{90}{1em}{Industry Associations} & \\ [0.5ex]
\hline\hline
1. Expect to work in a safe and healthy environment & X & & & & & & & & & \\
\hline\hline
\end{tabular}
\end{landscape}
(더 많은 텍스트가 포함되어 있지만 기밀상의 이유로 표시할 수 없습니다. 표 형식은 그대로 유지됩니다.)
나는 또한 패키지를 사용하고 있습니다 :
\usepackage{rotating,graphicx} % allows for landscape tables
\usepackage{adjustbox}
\usepackage{pdflscape} % Used to allow landscape pages
\usepackage{array}
\newcolumntype{R}[2]{%
>{\adjustbox{angle=#1,lap=\width-(#2)}\bgroup}%
l%
<{\egroup}%
}
\newcommand*\rot{\multicolumn{1}{R{45}{1em}}}% no optional argument here, please!
답변1
@TeddyvanJerry가 의견에서 지적했듯이 문제는 이중선에 대한 사양이 마지막 열의 명령 ||
에서 반복되어야 \multicolumn
하고 정의에 하나가 숨겨져 있다는 것입니다 \rot
. 두 가지 솔루션을 보여 드리겠습니다. 하나는 \rot
이 추가 사양을 전달하기 위한 추가 인수가 있는 솔루션이고 다른 하나는 프레임이 \fbox
.
다음에 대한 세 번째 인수가 있는 솔루션 \rot
:명령은 각각 \rot{90}{1em}{}
및 로 사용됩니다 \rot{90}{1em}{||}
.
\begin{landscape}
\renewcommand*\rot[3]{\multicolumn{1}{R{#1}{#2}#3}}%
%
\begin{tabular}{||p{10cm}cccccccccc||}
\hline\hline
NEEDS \& EXPECTATIONS OF INTERESTED PARTIES &
\rot{90}{1em}{}{Employees \& Contractors} &
\rot{90}{1em}{}{Customers, Clients \& Suppliers} &
\rot{90}{1em}{}{Regulators} &
\rot{90}{1em}{}{Registrar} &
\rot{90}{1em}{}{Generators} &
\rot{90}{1em}{}{General Public, Media \& NGOs} &
\rot{90}{1em}{}{Neighboring Businesses} &
\rot{90}{1em}{}{Insurers} &
\rot{90}{1em}{}{Emergency Response Services} &
\rot{90}{1em}{||}{Industry Associations} \\ [0.5ex]
\hline\hline
1. Expect to work in a safe and healthy environment & X & & & & & & & & & \\
\hline\hline
\end{tabular}
\end{landscape}
다음을 사용한 솔루션 \fbox
:사양을 |
완전히 제거하고 외부 s도 제거합니다 \hline
.
\begin{landscape}
\renewcommand*\rot[2]{\multicolumn{1}{R{#1}{#2}}}%
%
\fboxsep2pt%
\fbox{\fbox{%
\begin{tabular}{p{10cm}cccccccccc}
NEEDS \& EXPECTATIONS OF INTERESTED PARTIES &
\rot{90}{1em}{Employees \& Contractors} &
\rot{90}{1em}{Customers, Clients \& Suppliers} &
\rot{90}{1em}{Regulators} &
\rot{90}{1em}{Registrar} &
\rot{90}{1em}{Generators} &
\rot{90}{1em}{General Public, Media \& NGOs} &
\rot{90}{1em}{Neighboring Businesses} &
\rot{90}{1em}{Insurers} &
\rot{90}{1em}{Emergency Response Services} &
\rot{90}{1em}{Industry Associations} \\ [0.5ex]
\hline\hline
1. Expect to work in a safe and healthy environment & X & & & & & & & & &
\end{tabular}%
}}