
我正在嘗試添加此表格的邊框/邊界框線的右側,它似乎將其刪除,儘管其他表格不會發生這種情況,因為我沒有旋轉文字以適應其他表格。我想在“行業協會”之後加上兩行。我的理解是 ||
\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}
\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}%
}}