我们使用 XeLaTeX 和 longtable 包来可视化信息,其中一个报告必须有一个彩色单元格。单个单元格,而不是整行。
示例输出如下:
使用长表格时,有没有办法为单个单元格着色?
更新:示例代码:
\documentclass[10pt,a4paper,onside,article,notitlepage, landscape]{memoir}
\begin{document}
\vspace*{-4cm}
\section*{Leverlijst per week}
\begin{longtable}{p{2cm}p{4cm} p{2cm}p{2cm} p{4cm}p{4cm} p{2cm}p{3cm}}
Order ID & Referentie & Locatie & Klant & Tekeningnummer & Omschrijving & Leverdatum & Status \\ \hline
1234 & REFERENCE & Location & Client & Drawingnumber & Description & Deliveryday & Status
\end{longtable}
\end{document}
答案1
\documentclass[10pt,a4paper,onside,article,notitlepage, landscape]{memoir}
\usepackage[table]{xcolor}
\usepackage{longtable}
\begin{document}
\begin{longtable}{*8l}
\rowcolor{blue!80!red!40}
Order ID & Referentie & Locatie & Klant & Tekeningnummer & Omschrijving & Leverdatum & Status \\ \hline
1234 & REFERENCE & Location & Client & Drawingnumber & Description & Deliveryday &
\cellcolor{red}Status
\end{longtable}
\end{document}