我目前正尝试用颜色填充长桌上的整整一排。
但是,列填充并未到达列的末尾:
有什么想法可以修复这个问题吗?下面我给出了代码。
非常感谢
\documentclass{article}
\usepackage{longtable}
\usepackage{lipsum}
\usepackage[table]{xcolor}
\title{A longtable example}
\begin{document}
\begin{center}
\begin{longtable}{p{8cm} p{3cm} p{1cm}}
\caption{Calculation of estimated revenues for the first year of sales.} \label{tab:long} \\
\hline \multicolumn{1}{l}{\textbf{Column}} & \multicolumn{1}{l}{\textbf{Calculation}} & \multicolumn{1}{l}{\textbf{Source/ Notes:}} \\ \hline
\endfirsthead
\multicolumn{3}{c}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\hline \multicolumn{1}{l}{\textbf{Column)}} & \multicolumn{1}{l}{\textbf{Calculation}} & \multicolumn{1}{l}{\textbf{Source/ Notes:}} \\ \hline
\endhead
\hline \multicolumn{3}{r}{{Continued on next page}} \\
\endfoot
\hline
\endlastfoot
\lipsum[3] & text text text & Link 1 \\ \hline \rowcolor[HTML]{efefef}
\lipsum[3] & text text text text & Link 2 \\ \hline
\lipsum[3] & text text & \\ \hline
\lipsum[3] & 220,675 devices & \\ \hline
\lipsum[3] & \\ \hline
\lipsum[3] & \\ \hline
\lipsum[3] & 15\% & \\ \hline
\textbf{Potential Market Volume:} \newline (Market volume = Number of devices purchased x Penetration rate) & 33 101 devices & \\ \hline
\lipsum[2] & \\
\end{longtable}
\end{center}
\end{document}