在表格中添加签名虚线

在表格中添加签名虚线

我需要在乳胶表中的 3 个单元格中添加虚线,并且线条能够根据单元格的宽度填充单元格。

表格如下

\documentclass{article}[10pt]

\usepackage{booktabs}
\usepackage{makecell}

\begin{document}

\begin{table}[h]
    \centering
    \begin{tabular}{l p{0.2\textwidth} p{0.15\textwidth} p{0.25\textwidth}}
         \toprule
            & \makecell[lt]{\textbf{Ort}} & \makecell[lt]{\textbf{Datum}} & \makecell[lt]{\textbf{Unterschrift} \\ \textbf{(Projektverantwortliche)}} \\
         \midrule 
         \textbf{Der Projektverfasser} &  &  &  \\
         \makecell[lt]{Address \\ 
         Address \\
         Address \\
         Address
         } & & & \\
         \textit{Projektleiter} & Dotted Line & Dotted Line & Dotted Line   \\
         \bottomrule 
    \end{tabular}
\end{table}

\end{document}

答案1

\dotfill做以下工作:

\documentclass{article}[10pt]

\usepackage{booktabs}
\usepackage{makecell}

\begin{document}

\begin{table}[h]
    \centering
    \begin{tabular}{l p{0.2\textwidth} p{0.15\textwidth} p{0.25\textwidth}}
         \toprule
            & \makecell[lt]{\textbf{Ort}} & \makecell[lt]{\textbf{Datum}} & \makecell[lt]{\textbf{Unterschrift} \\ \textbf{(Projektverantwortliche)}} \\
         \midrule
         \textbf{Der Projektverfasser} &  &  &  \\
         \makecell[lt]{Address \\
         Address \\
         Address \\
         Address
         } & & & \\
         \textit{Projektleiter} & \dotfill & \dotfill & \dotfill  \\
         \bottomrule
    \end{tabular}
\end{table}

\end{document}

相关内容